{"openapi":"3.1.0","info":{"title":"Selvia AI API","description":"Live, realistic 3D avatars for your product. One key lets your code, or your AI agent,\ncreate and set up avatar agents and run live sessions: everything the console does.\n\nAuthentication: send `Authorization: Bearer sk_live_...` from your server, never from a web page.\nCreate keys in the console (console.selviaai.com, Developers). A key carries permissions:\nread, setup, sessions, delete. A DELETE call also needs `?confirm=true`.\n\nErrors come back as JSON with a `detail` field (a sentence, or {\"code\", \"message\"}).","version":"1"},"servers":[{"url":"https://talk.selviaai.com"}],"paths":{"/v1/agent/create":{"post":{"tags":["agents"],"summary":"Create Agent","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/list":{"get":{"tags":["agents"],"summary":"List Agents","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentResponse"},"title":"Response List Agents V1 Agent List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/has-agents":{"get":{"tags":["agents"],"summary":"Check Has Agents","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HasAgentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}":{"get":{"tags":["agents"],"summary":"Get Agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/duplicate":{"post":{"tags":["agents"],"summary":"Duplicate Agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/set-default":{"post":{"tags":["agents"],"summary":"Set Default Agent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/embed":{"get":{"tags":["agents"],"summary":"Get Embed Config","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Embed Config","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/embed/regenerate":{"post":{"tags":["agents"],"summary":"Regenerate Embed Key","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/preview":{"post":{"tags":["agents"],"summary":"Open Preview","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/embed/apply-to-all":{"post":{"tags":["agents"],"summary":"Apply Embed To All","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/visitor-values":{"get":{"tags":["agents"],"summary":"Get Visitor Values","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorValuesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Visitor Values","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorValuesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorValuesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/visitor-values/secret":{"get":{"tags":["agents"],"summary":"Reveal Visitor Signing Secret","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agents"],"summary":"Rotate Visitor Signing Secret","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/visitor-values/preview":{"post":{"tags":["agents"],"summary":"Preview Visitor Values","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/extract-links":{"get":{"tags":["agents"],"summary":"Extract Links","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractLinksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/generate-brain":{"post":{"tags":["agents"],"summary":"Generate Brain","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateBrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/brain-status":{"get":{"tags":["agents"],"summary":"Get Brain Status","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/add-page":{"post":{"tags":["agents"],"summary":"Add Page","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/pages/list":{"get":{"tags":["agents"],"summary":"List Pages","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentPageResponse"},"title":"Response List Pages V1 Agent  Agent Id  Pages List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/pages/{page_id}":{"patch":{"tags":["agents"],"summary":"Edit Page","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Page","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/pages":{"delete":{"tags":["agents"],"summary":"Clear Pages","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"is_primary","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/kb-sections":{"get":{"tags":["agents"],"summary":"List Kb Sections","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agents"],"summary":"Add Kb Section","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/kb-sections/{topic}":{"patch":{"tags":["agents"],"summary":"Edit Kb Section","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"topic","in":"path","required":true,"schema":{"type":"string","title":"Topic"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Kb Section","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"topic","in":"path","required":true,"schema":{"type":"string","title":"Topic"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBSectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/probe":{"post":{"tags":["agents"],"summary":"Probe","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/schema/generate":{"post":{"tags":["agents"],"summary":"Generate Schema","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/extract":{"post":{"tags":["agents"],"summary":"Extract","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/brain":{"get":{"tags":["agents"],"summary":"Get Brain","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/completion":{"get":{"tags":["agents"],"summary":"Completion Status","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/recompile":{"post":{"tags":["agents"],"summary":"Recompile","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/answer":{"post":{"tags":["agents"],"summary":"Answer Question","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/knowledge/ops":{"post":{"tags":["agents"],"summary":"Knowledge Ops","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeOpsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeOpsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/questions/state":{"post":{"tags":["agents"],"summary":"Question State","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionStateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/review/resolve":{"post":{"tags":["agents"],"summary":"Review Resolve","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/consolidate":{"post":{"tags":["agents"],"summary":"Consolidate Now","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/correction":{"post":{"tags":["agents"],"summary":"Correction Preview","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/correction/apply":{"post":{"tags":["agents"],"summary":"Correction Apply","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionApplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/rules":{"get":{"tags":["agents"],"summary":"List Rules","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agents"],"summary":"Create Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/rules/{rule_id}":{"patch":{"tags":["agents"],"summary":"Update Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/gaps":{"get":{"tags":["agents"],"summary":"List Gaps","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GapsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/gaps/{gap_id}/answer":{"post":{"tags":["agents"],"summary":"Answer Gap","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"gap_id","in":"path","required":true,"schema":{"type":"integer","title":"Gap Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GapAnswerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/gaps/{gap_id}/dismiss":{"post":{"tags":["agents"],"summary":"Dismiss Gap","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"gap_id","in":"path","required":true,"schema":{"type":"integer","title":"Gap Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/behavior":{"get":{"tags":["agents"],"summary":"Get Behavior","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BehaviorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Behavior","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BehaviorUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BehaviorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/dynamic-instructions":{"get":{"tags":["agents"],"summary":"Get Dynamic Instructions","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Dynamic Instructions","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicInstructionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/dynamic-instructions/preview":{"post":{"tags":["agents"],"summary":"Preview Dynamic Instructions","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/orphans":{"get":{"tags":["agents"],"summary":"List Orphans","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agent/{agent_id}/v2/orphans/resolve":{"post":{"tags":["agents"],"summary":"Resolve Orphan","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrphanResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/voices/{provider}":{"get":{"tags":["voices"],"summary":"List Voices","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base ISO 639-1 code","title":"Language"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[fm]$"},{"type":"null"}],"title":"Gender"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/voices/{provider}/{voice_id}/preview":{"get":{"tags":["voices"],"summary":"Voice Preview","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage/summary":{"get":{"tags":["usage"],"summary":"Get Usage Summary","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/me":{"get":{"tags":["conversations"],"summary":"Reporting Me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/agents":{"get":{"tags":["conversations"],"summary":"Reporting Agents","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}},{"name":"visitor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"}},{"name":"min_duration_seconds","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Duration Seconds"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"notif_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notif Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/stats":{"get":{"tags":["conversations"],"summary":"Stats","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}},{"name":"visitor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"}},{"name":"min_duration_seconds","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Duration Seconds"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/export/conversations":{"get":{"tags":["conversations"],"summary":"Export Conversations","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}},{"name":"visitor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"}},{"name":"min_duration_seconds","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Duration Seconds"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/export/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"Export Transcript","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"Conversation Detail","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/summary":{"get":{"tags":["billing"],"summary":"Summary","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/by-agent":{"get":{"tags":["billing"],"summary":"By Agent","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/voice":{"get":{"tags":["billing"],"summary":"Voice","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/monthly":{"get":{"tags":["billing"],"summary":"Monthly","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":60,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/line-items":{"get":{"tags":["billing"],"summary":"Line Items","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/export/line-items":{"get":{"tags":["billing"],"summary":"Export Line Items","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/wallet":{"get":{"tags":["billing"],"summary":"Get Wallet","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/wallet/topup":{"post":{"tags":["billing"],"summary":"Wallet Topup","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/wallet/topup/confirm":{"get":{"tags":["billing"],"summary":"Wallet Topup Confirm","parameters":[{"name":"checkout_session_id","in":"query","required":true,"schema":{"type":"string","minLength":10,"maxLength":255,"title":"Checkout Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/wallet/portal":{"post":{"tags":["billing"],"summary":"Wallet Portal","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/plan":{"get":{"tags":["billing"],"summary":"Get Plan","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|unread)$","default":"all","title":"Status"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Count","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/read":{"post":{"tags":["notifications"],"summary":"Mark Read","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/prefs/{agent_id}":{"get":{"tags":["notifications"],"summary":"Get Prefs","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notifications"],"summary":"Update Prefs","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/rules/{agent_id}":{"get":{"tags":["notifications"],"summary":"List Rules","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Create Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/rules/{agent_id}/{rule_id}":{"put":{"tags":["notifications"],"summary":"Replace Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Delete Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/rules/{agent_id}/test-delivery":{"post":{"tags":["notifications"],"summary":"Test Rule Delivery","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/rules/{agent_id}/builder":{"post":{"tags":["notifications"],"summary":"Rule Builder Turn","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuilderTurn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/rules/{agent_id}/test":{"post":{"tags":["notifications"],"summary":"Test Rule","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations":{"get":{"tags":["notifications"],"summary":"List Destinations","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/telegram/connect":{"post":{"tags":["notifications"],"summary":"Connect Telegram Destination","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/telegram/connect/{token}":{"get":{"tags":["notifications"],"summary":"Telegram Destination Connect Status","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/webhook":{"post":{"tags":["notifications"],"summary":"Create Webhook Destination","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDestinationIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/{destination_id}":{"patch":{"tags":["notifications"],"summary":"Update Destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Delete Destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/{destination_id}/signing-secret":{"get":{"tags":["notifications"],"summary":"Reveal Signing Secret","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/{destination_id}/rotate-secret":{"post":{"tags":["notifications"],"summary":"Rotate Signing Secret","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/{destination_id}/deliveries":{"get":{"tags":["notifications"],"summary":"Webhook Deliveries","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/destinations/{destination_id}/test":{"post":{"tags":["notifications"],"summary":"Test Destination","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"integer","title":"Destination Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/telegram/connect/{agent_id}":{"post":{"tags":["notifications"],"summary":"Telegram Connect","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/telegram/disconnect/{agent_id}":{"post":{"tags":["notifications"],"summary":"Telegram Disconnect","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/agents":{"get":{"tags":["support"],"summary":"Support Agents","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/tickets":{"post":{"tags":["support"],"summary":"Create Ticket","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["support"],"summary":"List Tickets","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(open|answered|resolved|closed)$"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/unread-count":{"get":{"tags":["support"],"summary":"Unread Count","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/tickets/{ticket_id}":{"get":{"tags":["support"],"summary":"Get Ticket","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/tickets/{ticket_id}/reply":{"post":{"tags":["support"],"summary":"Reply Ticket","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketReply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/support/tickets/{ticket_id}/close":{"post":{"tags":["support"],"summary":"Close Ticket","parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"integer","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sessions":{"post":{"tags":["sessions"],"summary":"Create Session","description":"Start a session. Show `player_url` to the visitor (an iframe or a link).\nIn render mode, stream the avatar's speech to `ws_url` from your server.\nEnd it with POST /v1/sessions/{id}/stop: it runs, and is billed, until you\ndo (free accounts: 5 minutes at most). A session nobody watches for 90\nseconds is ended.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sessions"],"summary":"List Sessions","description":"The account's live sessions of every kind (API, website widget, console).","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sessions/{session_id}":{"get":{"tags":["sessions"],"summary":"Get Session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sessions/{session_id}/stop":{"post":{"tags":["sessions"],"summary":"Stop Session","description":"End a session. Stopping one that already ended answers the same way.","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sessions/{session_id}/stage":{"get":{"tags":["sessions"],"summary":"Get Stage","description":"The live stage (camera, whether it is held, backdrop) and what can be shown.","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["sessions"],"summary":"Change Stage","description":"Direct a live session: cut to a camera (held until you send auto, unless\nhold is false) or swap the backdrop. Works on every kind of session. The\nanswer is the stage once it is on screen.","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/faces":{"get":{"tags":["catalog"],"summary":"Catalog Faces","description":"Every face an agent can wear: id, gender, what it looks like, a still,\nand a still in each camera (far, mid, close).","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/catalog/backdrops":{"get":{"tags":["catalog"],"summary":"Catalog Backdrops","description":"Stock backdrops: id, words, and a picture. null as a backdrop = plain.","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/catalog/cameras":{"get":{"tags":["catalog"],"summary":"Catalog Cameras","description":"The three cameras. far and mid take turns while the avatar talks; close\nis used on strong sentences. A session can hold one (POST /v1/sessions/{id}/stage).","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddPageRequest":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url"},"is_primary":{"type":"boolean","title":"Is Primary","default":true}},"type":"object","required":["url"],"title":"AddPageRequest"},"AgentCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"title":"Name"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"website_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website Url"},"maps_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Maps Url"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"avatar_id":{"type":"string","maxLength":50,"title":"Avatar Id","default":"face01"},"voice_id":{"type":"string","maxLength":50,"title":"Voice Id","default":"af_bella"},"purpose":{"items":{"type":"string"},"type":"array","title":"Purpose"},"concurrency_limit":{"type":"integer","maximum":999.0,"minimum":1.0,"title":"Concurrency Limit","default":1},"tts_primary":{"type":"string","title":"Tts Primary","default":"kokoro"},"tts_fallback_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tts Fallback 1"},"tts_fallback_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tts Fallback 2"},"languages":{"anyOf":[{"$ref":"#/components/schemas/AudioLanguages"},{"type":"null"}]},"tts_voices":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Tts Voices"},"language_overrides":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Language Overrides"},"draft":{"type":"boolean","title":"Draft","default":false},"studio":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Studio"}},"type":"object","required":["name"],"title":"AgentCreateRequest"},"AgentPageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"agent_id":{"type":"integer","title":"Agent Id"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"page_key":{"type":"string","title":"Page Key"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"is_primary":{"type":"boolean","title":"Is Primary"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","agent_id","url","page_key","is_primary","created_at","updated_at"],"title":"AgentPageResponse"},"AgentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"client_id":{"type":"integer","title":"Client Id"},"name":{"type":"string","title":"Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"maps_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maps Url"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"avatar_id":{"type":"string","title":"Avatar Id"},"voice_id":{"type":"string","title":"Voice Id"},"status":{"type":"string","title":"Status"},"is_default":{"type":"boolean","title":"Is Default","default":false},"concurrency_limit":{"type":"integer","title":"Concurrency Limit"},"llm_model":{"type":"string","title":"Llm Model","default":"gpt-oss-120b"},"tts_primary":{"type":"string","title":"Tts Primary","default":"kokoro"},"tts_fallback_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tts Fallback 1"},"tts_fallback_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tts Fallback 2"},"tts_voices":{"type":"object","title":"Tts Voices"},"languages":{"$ref":"#/components/schemas/AudioLanguages"},"language_overrides":{"type":"object","title":"Language Overrides"},"validation":{"$ref":"#/components/schemas/ValidationSettings"},"fillers_enabled":{"type":"boolean","title":"Fillers Enabled","default":true},"welcome_message":{"type":"string","title":"Welcome Message","default":""},"studio":{"type":"object","title":"Studio"},"kb_sections":{"items":{"type":"object"},"type":"array","title":"Kb Sections"},"owner_notes":{"type":"string","title":"Owner Notes","default":""},"embed_enabled":{"type":"boolean","title":"Embed Enabled","default":false},"brain_status":{"type":"string","title":"Brain Status"},"has_brain":{"type":"boolean","title":"Has Brain","default":false},"brain_completion":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brain Completion"},"purpose":{"items":{"type":"string"},"type":"array","title":"Purpose"},"total_sessions":{"type":"integer","title":"Total Sessions"},"total_minutes":{"type":"number","title":"Total Minutes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","client_id","name","avatar_id","voice_id","status","concurrency_limit","brain_status","total_sessions","total_minutes","created_at","updated_at"],"title":"AgentResponse"},"AgentUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"category":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Category"},"website_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website Url"},"maps_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Maps Url"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"avatar_id":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Avatar Id"},"voice_id":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Voice Id"},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"},"purpose":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Purpose"},"concurrency_limit":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Concurrency Limit"},"llm_model":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Llm Model"},"tts_primary":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Tts Primary"},"tts_fallback_1":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Tts Fallback 1"},"tts_fallback_2":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Tts Fallback 2"},"tts_voices":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Tts Voices"},"languages":{"anyOf":[{"$ref":"#/components/schemas/AudioLanguages"},{"type":"null"}]},"language_overrides":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Language Overrides"},"owner_notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Owner Notes"},"validation_objects":{"anyOf":[{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Validation Objects"},"validation_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Validation Enabled"},"fillers_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fillers Enabled"},"welcome_message":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Welcome Message"},"studio":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Studio"}},"type":"object","title":"AgentUpdateRequest"},"AlertRuleIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"enabled":{"type":"boolean","title":"Enabled","default":true},"trigger_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Trigger Text"},"min_visitor_turns":{"type":"integer","maximum":200.0,"minimum":0.0,"title":"Min Visitor Turns","default":0},"data_items":{"items":{"$ref":"#/components/schemas/RuleDataItem"},"type":"array","maxItems":20,"title":"Data Items"},"deliveries":{"items":{"oneOf":[{"$ref":"#/components/schemas/ConsoleDelivery"},{"$ref":"#/components/schemas/TelegramDelivery"},{"$ref":"#/components/schemas/WebhookDelivery"}],"discriminator":{"propertyName":"type","mapping":{"console":"#/components/schemas/ConsoleDelivery","telegram":"#/components/schemas/TelegramDelivery","webhook":"#/components/schemas/WebhookDelivery"}}},"type":"array","maxItems":5,"minItems":1,"title":"Deliveries"}},"type":"object","required":["name","deliveries"],"title":"AlertRuleIn"},"AnswerRequest":{"properties":{"target":{"type":"string","maxLength":200,"title":"Target"},"value":{"title":"Value"}},"type":"object","required":["target","value"],"title":"AnswerRequest"},"AudioLanguages":{"properties":{"main":{"type":"string","title":"Main","default":"en"},"also":{"items":{"type":"string"},"type":"array","title":"Also"}},"type":"object","title":"AudioLanguages"},"BehaviorResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"role":{"type":"string","title":"Role"},"role_label":{"type":"string","title":"Role Label"},"universal_core":{"type":"string","title":"Universal Core"},"role_block":{"type":"string","title":"Role Block"},"role_block_default":{"type":"string","title":"Role Block Default"},"role_block_customized":{"type":"boolean","title":"Role Block Customized","default":false},"owner_behavior":{"type":"string","title":"Owner Behavior","default":""},"behavior_version":{"type":"string","title":"Behavior Version"}},"type":"object","required":["agent_id","role","role_label","universal_core","role_block","role_block_default","behavior_version"],"title":"BehaviorResponse"},"BehaviorUpdateRequest":{"properties":{"owner_behavior":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Owner Behavior"},"role_block":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Role Block"},"reset_role_block":{"type":"boolean","title":"Reset Role Block","default":false}},"type":"object","title":"BehaviorUpdateRequest"},"BrainStatusResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"brain_status":{"type":"string","title":"Brain Status"},"brain_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brain Job Id"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"}},"type":"object","required":["agent_id","brain_status"],"title":"BrainStatusResponse"},"BrainView":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"brain_status":{"type":"string","title":"Brain Status"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"agent_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Role"},"business_core":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Core"},"knowledge_schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Knowledge Schema"},"knowledge_data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Knowledge Data"},"knowledge_owner":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Knowledge Owner"},"business_rules":{"items":{"type":"object"},"type":"array","title":"Business Rules"},"completion":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Completion"},"pending_review":{"items":{"type":"object"},"type":"array","title":"Pending Review"}},"type":"object","required":["agent_id","brain_status"],"title":"BrainView"},"BuilderMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":4000,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"BuilderMessage"},"BuilderTurn":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/BuilderMessage"},"type":"array","maxItems":60,"title":"Messages"},"draft":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Draft"}},"type":"object","title":"BuilderTurn"},"CompletionResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"report":{"type":"object","title":"Report"}},"type":"object","required":["agent_id","report"],"title":"CompletionResponse"},"ConsoleDelivery":{"properties":{"dynamic_variables":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Dynamic Variables"},"type":{"type":"string","enum":["console"],"const":"console","title":"Type"},"template":{"type":"string","maxLength":4000,"minLength":1,"title":"Template"}},"type":"object","required":["type","template"],"title":"ConsoleDelivery"},"CorrectionApplyRequest":{"properties":{"ops":{"items":{"type":"object"},"type":"array","maxItems":50,"title":"Ops"},"rules":{"items":{"type":"object"},"type":"array","maxItems":10,"title":"Rules"}},"type":"object","title":"CorrectionApplyRequest"},"CorrectionApplyResponse":{"properties":{"applied":{"items":{"type":"object"},"type":"array","title":"Applied"},"skipped":{"items":{"type":"object"},"type":"array","title":"Skipped"},"rules_added":{"items":{"type":"object"},"type":"array","title":"Rules Added"},"completion":{"type":"object","title":"Completion"}},"type":"object","required":["applied","skipped","rules_added","completion"],"title":"CorrectionApplyResponse"},"CorrectionPreview":{"properties":{"ops":{"items":{"type":"object"},"type":"array","title":"Ops"},"rules":{"items":{"type":"object"},"type":"array","title":"Rules"},"unmatched":{"items":{"type":"string"},"type":"array","title":"Unmatched"},"diff":{"items":{"type":"object"},"type":"array","title":"Diff"}},"type":"object","required":["ops","rules","unmatched","diff"],"title":"CorrectionPreview"},"CorrectionRequest":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":2,"title":"Text"},"target_hint":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Target Hint"}},"type":"object","required":["text"],"title":"CorrectionRequest"},"DeliveryTest":{"properties":{"rule":{"$ref":"#/components/schemas/AlertRuleIn"},"delivery_index":{"type":"integer","exclusiveMaximum":5.0,"minimum":0.0,"title":"Delivery Index"},"values":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Values"}},"type":"object","required":["rule","delivery_index"],"title":"DeliveryTest"},"DestinationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Url"},"method":{"anyOf":[{"type":"string","enum":["GET","POST"]},{"type":"null"}],"title":"Method"},"headers":{"anyOf":[{"items":{"$ref":"#/components/schemas/WebhookHeader"},"type":"array","maxItems":20},{"type":"null"}],"title":"Headers"}},"type":"object","title":"DestinationUpdate"},"DynamicInstructionsResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"available":{"type":"boolean","title":"Available"},"text":{"type":"string","title":"Text","default":""},"header":{"type":"string","title":"Header"},"placeholders":{"items":{"$ref":"#/components/schemas/DynamicPlaceholder"},"type":"array","title":"Placeholders"},"names_used":{"items":{"type":"string"},"type":"array","title":"Names Used"},"built_in_names":{"items":{"type":"string"},"type":"array","title":"Built In Names"},"verified_only":{"items":{"type":"string"},"type":"array","title":"Verified Only"},"recent_names":{"additionalProperties":{"type":"integer"},"type":"object","title":"Recent Names"},"unused_recent_names":{"items":{"type":"string"},"type":"array","title":"Unused Recent Names"},"never_passed_names":{"items":{"type":"string"},"type":"array","title":"Never Passed Names"}},"type":"object","required":["agent_id","available","header","placeholders","names_used","built_in_names","verified_only","recent_names","unused_recent_names","never_passed_names"],"title":"DynamicInstructionsResponse"},"DynamicInstructionsUpdate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Text"},"verified_only":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Verified Only"}},"type":"object","title":"DynamicInstructionsUpdate"},"DynamicPlaceholder":{"properties":{"text":{"type":"string","title":"Text"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"names":{"items":{"type":"string"},"type":"array","title":"Names"}},"type":"object","required":["text"],"title":"DynamicPlaceholder"},"DynamicPreviewPlaceholder":{"properties":{"text":{"type":"string","title":"Text"},"output":{"type":"string","title":"Output"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"names":{"items":{"type":"string"},"type":"array","title":"Names"}},"type":"object","required":["text","output"],"title":"DynamicPreviewPlaceholder"},"DynamicPreviewRequest":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Text"},"vars":{"type":"object","title":"Vars"},"verified":{"type":"boolean","title":"Verified","default":false}},"type":"object","title":"DynamicPreviewRequest"},"DynamicPreviewResponse":{"properties":{"rendered":{"type":"string","title":"Rendered"},"placeholders":{"items":{"$ref":"#/components/schemas/DynamicPreviewPlaceholder"},"type":"array","title":"Placeholders"},"problems":{"items":{"type":"string"},"type":"array","title":"Problems"},"vars":{"type":"object","title":"Vars"}},"type":"object","required":["rendered","placeholders","problems","vars"],"title":"DynamicPreviewResponse"},"EditPageRequest":{"properties":{"summary":{"type":"string","title":"Summary"}},"type":"object","required":["summary"],"title":"EditPageRequest"},"EmbedConfigResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"embed_key":{"type":"string","title":"Embed Key"},"embed_enabled":{"type":"boolean","title":"Embed Enabled"},"embed_allowed_origins":{"items":{"type":"string"},"type":"array","title":"Embed Allowed Origins"},"embed_allowed_countries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Embed Allowed Countries"},"embed_schedule":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Embed Schedule"},"embed_daily_budget_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Embed Daily Budget Usd"},"embed_max_session_seconds":{"type":"integer","title":"Embed Max Session Seconds"},"embed_inactivity_timeout_seconds":{"type":"integer","title":"Embed Inactivity Timeout Seconds"}},"type":"object","required":["agent_id","embed_key","embed_enabled","embed_max_session_seconds","embed_inactivity_timeout_seconds"],"title":"EmbedConfigResponse"},"EmbedConfigUpdate":{"properties":{"embed_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embed Enabled"},"embed_allowed_origins":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Embed Allowed Origins"},"embed_allowed_countries":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":250},{"type":"null"}],"title":"Embed Allowed Countries"},"embed_schedule":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Embed Schedule"},"embed_daily_budget_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Embed Daily Budget Usd"},"embed_max_session_seconds":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":30.0},{"type":"null"}],"title":"Embed Max Session Seconds"},"embed_inactivity_timeout_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":15.0},{"type":"null"}],"title":"Embed Inactivity Timeout Seconds"}},"type":"object","title":"EmbedConfigUpdate"},"ExtractLinksResponse":{"properties":{"homepage_url":{"type":"string","title":"Homepage Url"},"links":{"items":{"$ref":"#/components/schemas/LinkItem"},"type":"array","title":"Links"},"total_found":{"type":"integer","title":"Total Found"}},"type":"object","required":["homepage_url","links","total_found"],"title":"ExtractLinksResponse"},"ExtractRequest":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/V2PageSelection"},"type":"array","maxItems":60,"minItems":1,"title":"Pages"}},"type":"object","required":["pages"],"title":"ExtractRequest"},"GapAnswerRequest":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"GapAnswerRequest"},"GapsResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"gaps":{"items":{"type":"object"},"type":"array","title":"Gaps"}},"type":"object","required":["agent_id","gaps"],"title":"GapsResponse"},"GenerateBrainRequest":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/PageSelection"},"type":"array","title":"Pages"}},"type":"object","required":["pages"],"title":"GenerateBrainRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HasAgentsResponse":{"properties":{"has_agents":{"type":"boolean","title":"Has Agents"}},"type":"object","required":["has_agents"],"title":"HasAgentsResponse"},"KBSection":{"properties":{"topic":{"type":"string","title":"Topic"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["topic","title","content"],"title":"KBSection"},"KBSectionCreate":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"title":{"type":"string","maxLength":60,"minLength":1,"title":"Title"},"content":{"type":"string","maxLength":1200,"minLength":1,"title":"Content"}},"type":"object","required":["title","content"],"title":"KBSectionCreate"},"KBSectionUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string","maxLength":1200,"minLength":1},{"type":"null"}],"title":"Content"}},"type":"object","title":"KBSectionUpdate"},"KBSectionsResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"sections":{"items":{"$ref":"#/components/schemas/KBSection"},"type":"array","title":"Sections"},"llm_model":{"type":"string","title":"Llm Model"}},"type":"object","required":["agent_id","sections","llm_model"],"title":"KBSectionsResponse"},"KnowledgeOpsRequest":{"properties":{"ops":{"items":{"type":"object"},"type":"array","maxItems":50,"minItems":1,"title":"Ops"}},"type":"object","required":["ops"],"title":"KnowledgeOpsRequest"},"KnowledgeOpsResponse":{"properties":{"applied":{"items":{"type":"object"},"type":"array","title":"Applied"},"skipped":{"items":{"type":"object"},"type":"array","title":"Skipped"},"completion":{"type":"object","title":"Completion"}},"type":"object","required":["applied","skipped","completion"],"title":"KnowledgeOpsResponse"},"LinkItem":{"properties":{"url":{"type":"string","title":"Url"},"path":{"type":"string","title":"Path"},"anchor":{"type":"string","title":"Anchor"},"score":{"type":"integer","title":"Score"},"source":{"type":"string","title":"Source","default":"homepage"},"duplicate_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Of"},"default_category":{"type":"string","title":"Default Category"}},"type":"object","required":["url","path","anchor","score","default_category"],"title":"LinkItem"},"MarkReadRequest":{"properties":{"ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ids"},"all":{"type":"boolean","title":"All","default":false}},"type":"object","title":"MarkReadRequest"},"OrphanResolveRequest":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index"},"action":{"type":"string","title":"Action"},"target":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Target"}},"type":"object","required":["index","action"],"title":"OrphanResolveRequest"},"PageSelection":{"properties":{"url":{"type":"string","title":"Url"},"is_primary":{"type":"boolean","title":"Is Primary"}},"type":"object","required":["url","is_primary"],"title":"PageSelection"},"PlaceholderReport":{"properties":{"text":{"type":"string","title":"Text"},"where":{"type":"string","enum":["prompt","knowledge"],"title":"Where"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"names":{"items":{"type":"string"},"type":"array","title":"Names"}},"type":"object","required":["text","where"],"title":"PlaceholderReport"},"PrefsUpdate":{"properties":{"console_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Console Enabled"},"telegram_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Telegram Enabled"},"webhook_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhook Enabled"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"email_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Enabled"},"email_addresses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Email Addresses"},"muted_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Muted Categories"}},"type":"object","title":"PrefsUpdate"},"PreviewPlaceholder":{"properties":{"text":{"type":"string","title":"Text"},"output":{"type":"string","title":"Output"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["text","output"],"title":"PreviewPlaceholder"},"PreviewRequest":{"properties":{"vars":{"type":"object","title":"Vars"},"verified":{"type":"boolean","title":"Verified","default":false}},"type":"object","title":"PreviewRequest"},"PreviewResponse":{"properties":{"placeholders":{"items":{"$ref":"#/components/schemas/PreviewPlaceholder"},"type":"array","title":"Placeholders"},"problems":{"items":{"type":"string"},"type":"array","title":"Problems"},"vars":{"type":"object","title":"Vars"}},"type":"object","required":["placeholders","problems","vars"],"title":"PreviewResponse"},"ProbeRequest":{"properties":{"industry":{"type":"string","maxLength":120,"minLength":2,"title":"Industry"},"role":{"type":"string","maxLength":300,"minLength":2,"title":"Role","default":"receptionist"}},"type":"object","required":["industry"],"title":"ProbeRequest"},"ProbeResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"business_core":{"type":"string","title":"Business Core"},"canonical_industry":{"type":"string","title":"Canonical Industry"},"industry_matches_site":{"type":"boolean","title":"Industry Matches Site"},"mismatch_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mismatch Note"}},"type":"object","required":["agent_id","business_core","canonical_industry","industry_matches_site"],"title":"ProbeResponse"},"QuestionStateRequest":{"properties":{"target":{"type":"string","maxLength":200,"title":"Target"},"action":{"type":"string","title":"Action"}},"type":"object","required":["target","action"],"title":"QuestionStateRequest"},"ReviewResolveRequest":{"properties":{"kind":{"type":"string","title":"Kind"},"key":{"type":"string","maxLength":120,"title":"Key"},"action":{"type":"string","title":"Action"}},"type":"object","required":["kind","key","action"],"title":"ReviewResolveRequest"},"RuleCreateRequest":{"properties":{"rule_text":{"type":"string","maxLength":1000,"minLength":3,"title":"Rule Text"},"name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Name"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["rule_text"],"title":"RuleCreateRequest"},"RuleCreateResponse":{"properties":{"rule":{"type":"object","title":"Rule"},"platform_conflicts":{"items":{"type":"string"},"type":"array","title":"Platform Conflicts"},"rule_tensions":{"items":{"type":"object"},"type":"array","title":"Rule Tensions"}},"type":"object","required":["rule","platform_conflicts","rule_tensions"],"title":"RuleCreateResponse"},"RuleDataItem":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","maxLength":60,"minLength":1,"title":"Label"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["key","label"],"title":"RuleDataItem"},"RuleTest":{"properties":{"rule":{"$ref":"#/components/schemas/AlertRuleIn"},"limit":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Limit","default":20}},"type":"object","required":["rule"],"title":"RuleTest"},"RuleUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Name"},"rule_text":{"anyOf":[{"type":"string","maxLength":1000,"minLength":3},{"type":"null"}],"title":"Rule Text"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"clear_expires":{"type":"boolean","title":"Clear Expires","default":false}},"type":"object","title":"RuleUpdateRequest"},"RulesResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"rules":{"items":{"type":"object"},"type":"array","title":"Rules"}},"type":"object","required":["agent_id","rules"],"title":"RulesResponse"},"SessionCreate":{"properties":{"agent_id":{"type":"integer","title":"Agent Id","description":"The agent to start (GET /v1/agent/list)."},"mode":{"type":"string","enum":["conversation","render"],"title":"Mode","description":"conversation: the agent talks with the visitor on its own (its prompt, knowledge and voice). render: your own agent does the talking; you stream its speech to ws_url and the avatar speaks it.","default":"conversation"},"avatar_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Id","description":"Another face for this session only (GET /v1/catalog/faces)."},"voice_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Voice Id","description":"Another voice for this session only (GET /v1/voices). Premium voices need a paid account."},"look":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Look","description":"Studio look for this session only, laid over the agent's: any of backdrop (GET /v1/catalog/backdrops, or null for plain), cameras (list of far/mid/close), camera (start on far/mid/close, or auto), face_light (0.5 to 1.5)."}},"additionalProperties":false,"type":"object","required":["agent_id"],"title":"SessionCreate"},"SigningSecretResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"signing_secret":{"type":"string","title":"Signing Secret"}},"type":"object","required":["agent_id","signing_secret"],"title":"SigningSecretResponse"},"StageChange":{"properties":{"camera":{"anyOf":[{"type":"string","enum":["far","mid","close","auto"]},{"type":"null"}],"title":"Camera","description":"Cut to this camera. auto hands the camera back to the automatic director."},"hold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hold","description":"Keep the camera until you send auto (default true)."},"backdrop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backdrop","description":"Swap the backdrop (GET /v1/catalog/backdrops)."}},"additionalProperties":false,"type":"object","title":"StageChange"},"TelegramDelivery":{"properties":{"dynamic_variables":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Dynamic Variables"},"type":{"type":"string","enum":["telegram"],"const":"telegram","title":"Type"},"destination_id":{"type":"integer","minimum":1.0,"title":"Destination Id"},"template":{"type":"string","maxLength":4000,"minLength":1,"title":"Template"}},"type":"object","required":["type","destination_id","template"],"title":"TelegramDelivery"},"TicketCreate":{"properties":{"category":{"type":"string","enum":["billing","support"],"title":"Category"},"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject"},"message":{"type":"string","minLength":1,"title":"Message"},"agent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Id"}},"type":"object","required":["category","subject","message"],"title":"TicketCreate"},"TicketReply":{"properties":{"body":{"type":"string","minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"TicketReply"},"TopupRequest":{"properties":{"amount":{"type":"integer","title":"Amount"}},"type":"object","required":["amount"],"title":"TopupRequest"},"UsageSummaryResponse":{"properties":{"current_spend":{"type":"number","title":"Current Spend"},"limit":{"type":"number","title":"Limit"},"sessions_count":{"type":"integer","title":"Sessions Count"}},"type":"object","required":["current_spend","limit","sessions_count"],"title":"UsageSummaryResponse"},"V2PageSelection":{"properties":{"url":{"type":"string","maxLength":500,"title":"Url"},"is_primary":{"type":"boolean","title":"Is Primary","default":false}},"type":"object","required":["url"],"title":"V2PageSelection"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"max_custom":{"type":"integer","title":"Max Custom","default":20},"objects":{"items":{"type":"object"},"type":"array","title":"Objects"}},"type":"object","title":"ValidationSettings"},"VisitorValuesResponse":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"verification":{"type":"string","enum":["optional","required"],"title":"Verification"},"has_signing_secret":{"type":"boolean","title":"Has Signing Secret"},"verified_only":{"items":{"type":"string"},"type":"array","title":"Verified Only"},"placeholders":{"items":{"$ref":"#/components/schemas/PlaceholderReport"},"type":"array","title":"Placeholders"},"names_used":{"items":{"type":"string"},"type":"array","title":"Names Used"},"recent_names":{"additionalProperties":{"type":"integer"},"type":"object","title":"Recent Names"},"unused_recent_names":{"items":{"type":"string"},"type":"array","title":"Unused Recent Names"},"never_passed_names":{"items":{"type":"string"},"type":"array","title":"Never Passed Names"}},"type":"object","required":["agent_id","verification","has_signing_secret","verified_only","placeholders","names_used","recent_names","unused_recent_names","never_passed_names"],"title":"VisitorValuesResponse"},"VisitorValuesUpdate":{"properties":{"verification":{"anyOf":[{"type":"string","enum":["optional","required"]},{"type":"null"}],"title":"Verification"},"verified_only":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Verified Only"}},"type":"object","title":"VisitorValuesUpdate"},"WebhookDelivery":{"properties":{"dynamic_variables":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Dynamic Variables"},"type":{"type":"string","enum":["webhook"],"const":"webhook","title":"Type"},"destination_id":{"type":"integer","minimum":1.0,"title":"Destination Id"},"format":{"type":"string","enum":["json","xml","text","form","query"],"title":"Format","default":"json"},"template":{"type":"string","maxLength":8000,"minLength":1,"title":"Template"}},"type":"object","required":["type","destination_id","template"],"title":"WebhookDelivery"},"WebhookDestinationIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url"},"method":{"type":"string","enum":["GET","POST"],"title":"Method","default":"POST"},"headers":{"items":{"$ref":"#/components/schemas/WebhookHeader"},"type":"array","maxItems":20,"title":"Headers"}},"type":"object","required":["name","url"],"title":"WebhookDestinationIn"},"WebhookHeader":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Value"}},"type":"object","required":["name"],"title":"WebhookHeader"}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"sk_live_... from the console"}}},"security":[{"apiKey":[]}]}