patchwise-agent-studio / web /src /api /openapi.json
EnergyVenom's picture
Astra 0598704: 26D AP/AR/GL fixes verified live, payments, subledger accounting, edge cases, learned navigation, consultant step import (059870495533)
2d71dc3 verified
Raw History Blame Contribute Delete
268 kB
{ "components": { "schemas": { "AckIn": { "properties": { "delivery_ids": { "items": { "type": "string" }, "maxItems": 50, "minItems": 1, "title": "Delivery Ids", "type": "array" } }, "required": [ "delivery_ids" ], "title": "AckIn", "type": "object" }, "ApprovalIn": { "properties": { "approved_by": { "description": "who decided, in Fusion", "maxLength": 120, "minLength": 1, "title": "Approved By", "type": "string" }, "comment": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Comment" }, "decision": { "enum": [ "approve", "reject" ], "title": "Decision", "type": "string" }, "scenario_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "approve only these; all scenarios otherwise", "title": "Scenario Ids" } }, "required": [ "decision", "approved_by" ], "title": "ApprovalIn", "type": "object" }, "ApproveCasesIn": { "additionalProperties": false, "properties": { "approved": { "items": { "type": "string" }, "title": "Approved", "type": "array" }, "comments": { "additionalProperties": { "type": "string" }, "title": "Comments", "type": "object" }, "rejected": { "items": { "type": "string" }, "title": "Rejected", "type": "array" } }, "title": "ApproveCasesIn", "type": "object" }, "AskAstraIn": { "properties": { "keys": { "anyOf": [ { "items": { "type": "string" }, "maxItems": 50, "type": "array" }, { "type": "null" } ], "title": "Keys" } }, "title": "AskAstraIn", "type": "object" }, "AskIn": { "additionalProperties": false, "properties": { "conversation_id": { "anyOf": [ { "maxLength": 80, "type": "string" }, { "type": "null" } ], "title": "Conversation Id" }, "question": { "maxLength": 2000, "minLength": 1, "title": "Question", "type": "string" } }, "required": [ "question" ], "title": "AskIn", "type": "object" }, "AskOut": { "properties": { "answer": { "title": "Answer", "type": "string" }, "conversation_id": { "title": "Conversation Id", "type": "string" }, "model": { "title": "Model", "type": "string" } }, "required": [ "answer", "conversation_id", "model" ], "title": "AskOut", "type": "object" }, "AssistantStatus": { "properties": { "configured": { "title": "Configured", "type": "boolean" }, "enabled": { "title": "Enabled", "type": "boolean" }, "reachable": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Reachable" } }, "required": [ "enabled", "configured" ], "title": "AssistantStatus", "type": "object" }, "AutonomyIn": { "additionalProperties": false, "properties": { "level": { "enum": [ "L0", "L1", "L2" ], "title": "Level", "type": "string" } }, "required": [ "level" ], "title": "AutonomyIn", "type": "object" }, "BatchView": { "properties": { "cases": { "items": { "$ref": "#/components/schemas/CustomCaseOut" }, "title": "Cases", "type": "array" }, "created_by": { "title": "Created By", "type": "string" }, "expires_at": { "title": "Expires At", "type": "string" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "pod": { "anyOf": [ { "$ref": "#/components/schemas/PodRef" }, { "type": "null" } ] }, "run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "source": { "title": "Source", "type": "string" }, "status": { "enum": [ "parsed", "mapping", "building", "built", "failed" ], "title": "Status", "type": "string" } }, "required": [ "status", "source", "created_by", "expires_at", "cases" ], "title": "BatchView", "type": "object" }, "BuildIn": { "properties": { "pod_id": { "title": "Pod Id", "type": "integer" } }, "required": [ "pod_id" ], "title": "BuildIn", "type": "object" }, "CancelIn": { "additionalProperties": false, "properties": { "reason": { "default": "", "maxLength": 500, "title": "Reason", "type": "string" } }, "title": "CancelIn", "type": "object" }, "CaseStepOut": { "properties": { "action": { "title": "Action", "type": "string" }, "expected": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Expected" } }, "required": [ "action" ], "title": "CaseStepOut", "type": "object" }, "ChannelLink": { "properties": { "linked": { "title": "Linked", "type": "boolean" }, "linked_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Linked At" }, "username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Username" } }, "required": [ "linked" ], "title": "ChannelLink", "type": "object" }, "ChatContext": { "additionalProperties": false, "description": "The context chip: what the user is looking at. It narrows read tools; it is never an instruction.", "properties": { "module": { "anyOf": [ { "pattern": "^[A-Z][A-Z0-9]{1,5}$", "type": "string" }, { "type": "null" } ], "title": "Module" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "run_id": { "anyOf": [ { "maxLength": 80, "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "tz_offset": { "anyOf": [ { "maximum": 840.0, "minimum": -840.0, "type": "integer" }, { "type": "null" } ], "title": "Tz Offset" } }, "title": "ChatContext", "type": "object" }, "ClaimIn": { "properties": { "cycle_id": { "anyOf": [ { "maxLength": 40, "type": "string" }, { "type": "null" } ], "description": "only this cycle's events", "title": "Cycle Id" }, "max": { "default": 5, "description": "at most this many events", "maximum": 20.0, "minimum": 1.0, "title": "Max", "type": "integer" } }, "title": "ClaimIn", "type": "object" }, "ClientIn": { "properties": { "callback_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Callback Url" }, "name": { "maxLength": 80, "minLength": 1, "title": "Name", "type": "string" }, "release_watch_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Release Watch Url" } }, "required": [ "name" ], "title": "ClientIn", "type": "object" }, "ClientPatch": { "properties": { "callback_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Callback Url" }, "release_watch_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Release Watch Url" } }, "title": "ClientPatch", "type": "object" }, "ConversationIn": { "additionalProperties": false, "properties": { "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "run_id": { "anyOf": [ { "maxLength": 80, "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, "title": "ConversationIn", "type": "object" }, "Converted": { "properties": { "ai": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Ai" }, "dropped": { "items": { "$ref": "#/components/schemas/Reported" }, "title": "Dropped", "type": "array" }, "flagged": { "items": { "$ref": "#/components/schemas/Reported" }, "title": "Flagged", "type": "array" }, "steps": { "items": { "$ref": "#/components/schemas/StepOut" }, "title": "Steps", "type": "array" }, "test_values": { "additionalProperties": { "type": "string" }, "default": {}, "title": "Test Values", "type": "object" }, "text": { "items": { "type": "string" }, "title": "Text", "type": "array" }, "unparsed": { "items": { "$ref": "#/components/schemas/Unparsed" }, "title": "Unparsed", "type": "array" } }, "required": [ "steps", "text", "dropped", "flagged", "unparsed" ], "title": "Converted", "type": "object" }, "CustomCaseOut": { "properties": { "area": { "title": "Area", "type": "string" }, "case_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Id" }, "decided_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Decided By" }, "failed_step": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Failed Step" }, "key": { "title": "Key", "type": "string" }, "mapping": { "default": [], "items": { "$ref": "#/components/schemas/StepRowOut" }, "title": "Mapping", "type": "array" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "needs_review": { "default": false, "title": "Needs Review", "type": "boolean" }, "priority": { "title": "Priority", "type": "string" }, "reviewed": { "default": false, "title": "Reviewed", "type": "boolean" }, "script_preview": { "default": [], "items": { "type": "string" }, "title": "Script Preview", "type": "array" }, "simulated": { "default": false, "title": "Simulated", "type": "boolean" }, "state": { "enum": [ "parsed", "scripting", "not_scriptable", "dry_run_passed", "dry_run_failed", "approved", "rejected" ], "title": "State", "type": "string" }, "steps": { "items": { "$ref": "#/components/schemas/CaseStepOut" }, "title": "Steps", "type": "array" }, "title": { "title": "Title", "type": "string" }, "warnings": { "items": { "type": "string" }, "title": "Warnings", "type": "array" } }, "required": [ "key", "title", "area", "priority", "steps", "warnings", "state" ], "title": "CustomCaseOut", "type": "object" }, "CycleIn": { "properties": { "areas": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "business areas to test (AP, PO, AR, GL ...); the test data's areas otherwise", "title": "Areas" }, "callback_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "where Patchwise reports back; the client's callback address otherwise", "title": "Callback Url" }, "correlation_id": { "anyOf": [ { "maxLength": 120, "type": "string" }, { "type": "null" } ], "description": "the Fusion workflow's own id, echoed in every callback", "title": "Correlation Id" }, "data_approved_by": { "description": "who approved the test data in Fusion", "maxLength": 120, "minLength": 1, "title": "Data Approved By", "type": "string" }, "depth": { "anyOf": [ { "maxLength": 20, "type": "string" }, { "type": "null" } ], "description": "regression (default: every scenario and an end-to-end flow per business process), standard or smoke", "title": "Depth" }, "environment": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "the Patchwise test environment's name; the default Fusion one otherwise", "title": "Environment" }, "generated_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Generated By" }, "masked": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Masked" }, "module_space": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Module Space" }, "package": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "the approved test data package (V3.6 workflows): kept with the cycle", "title": "Package" }, "release": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "the quarterly update under test, e.g. 26B", "title": "Release" }, "test_data": { "additionalProperties": { "additionalProperties": true, "type": "object" }, "description": "{AREA: {key: value or [values]}}: SYNTHETIC values only", "title": "Test Data", "type": "object" }, "validated": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Validated" } }, "required": [ "test_data", "data_approved_by" ], "title": "CycleIn", "type": "object" }, "DecisionIn": { "additionalProperties": false, "properties": { "decision": { "enum": [ "approve", "reject" ], "title": "Decision", "type": "string" }, "note": { "anyOf": [ { "maxLength": 1000, "type": "string" }, { "type": "null" } ], "title": "Note" } }, "required": [ "decision" ], "title": "DecisionIn", "type": "object" }, "DeliveryIn": { "properties": { "fusion": { "anyOf": [ { "$ref": "#/components/schemas/FusionDeliveryIn" }, { "type": "null" } ] }, "mode": { "enum": [ "url", "fusion", "pull" ], "title": "Mode", "type": "string" } }, "required": [ "mode" ], "title": "DeliveryIn", "type": "object" }, "DraftOut": { "properties": { "ai": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Ai" }, "draft_id": { "title": "Draft Id", "type": "string" }, "dropped": { "items": { "$ref": "#/components/schemas/Reported" }, "title": "Dropped", "type": "array" }, "flagged": { "items": { "$ref": "#/components/schemas/Reported" }, "title": "Flagged", "type": "array" }, "key": { "title": "Key", "type": "string" }, "steps": { "items": { "$ref": "#/components/schemas/StepOut" }, "title": "Steps", "type": "array" }, "test_values": { "additionalProperties": { "type": "string" }, "default": {}, "title": "Test Values", "type": "object" }, "text": { "items": { "type": "string" }, "title": "Text", "type": "array" }, "unparsed": { "items": { "$ref": "#/components/schemas/Unparsed" }, "title": "Unparsed", "type": "array" } }, "required": [ "steps", "text", "dropped", "flagged", "unparsed", "draft_id", "key" ], "title": "DraftOut", "type": "object" }, "EvalIn": { "additionalProperties": false, "properties": { "target": { "description": "stub, local or external", "title": "Target", "type": "string" }, "tasks": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Tasks" } }, "required": [ "target" ], "title": "EvalIn", "type": "object" }, "FeatureIn": { "additionalProperties": false, "properties": { "on": { "title": "On", "type": "boolean" } }, "required": [ "on" ], "title": "FeatureIn", "type": "object" }, "ForgotIn": { "additionalProperties": false, "properties": { "email": { "maxLength": 254, "minLength": 5, "title": "Email", "type": "string" } }, "required": [ "email" ], "title": "ForgotIn", "type": "object" }, "FusionDeliveryIn": { "properties": { "base_url": { "description": "https://<pod host>", "maxLength": 300, "minLength": 8, "title": "Base Url", "type": "string" }, "client_id": { "description": "the confidential app allowed to call invokeAsync", "maxLength": 200, "minLength": 1, "title": "Client Id", "type": "string" }, "client_secret": { "anyOf": [ { "maxLength": 400, "type": "string" }, { "type": "null" } ], "description": "write-only: kept in the vault", "title": "Client Secret" }, "conversational": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Conversational" }, "invocation_mode": { "anyOf": [ { "enum": [ "END_USER", "ADMIN" ], "type": "string" }, { "type": "null" } ], "title": "Invocation Mode" }, "scope": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Scope" }, "token_url": { "description": "the OCI IAM token address of the identity domain", "maxLength": 400, "minLength": 8, "title": "Token Url", "type": "string" }, "workflow_code": { "anyOf": [ { "maxLength": 80, "type": "string" }, { "type": "null" } ], "description": "default PATCH_TEST_CALLBACK_V3_7", "title": "Workflow Code" }, "workflow_status": { "anyOf": [ { "enum": [ "PUBLISHED", "DRAFT" ], "type": "string" }, { "type": "null" } ], "title": "Workflow Status" } }, "required": [ "base_url", "token_url", "client_id" ], "title": "FusionDeliveryIn", "type": "object" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "Detail", "type": "array" } }, "title": "HTTPValidationError", "type": "object" }, "Health": { "properties": { "frontier_configured": { "title": "Frontier Configured", "type": "boolean" }, "kill_engaged": { "title": "Kill Engaged", "type": "boolean" }, "mock_up": { "title": "Mock Up", "type": "boolean" }, "ollama_up": { "title": "Ollama Up", "type": "boolean" }, "status": { "title": "Status", "type": "string" }, "target": { "title": "Target", "type": "string" }, "version": { "title": "Version", "type": "string" } }, "required": [ "status", "mock_up", "ollama_up", "frontier_configured", "kill_engaged", "version", "target" ], "title": "Health", "type": "object" }, "HumanReviewIn": { "additionalProperties": false, "properties": { "review": { "additionalProperties": { "$ref": "#/components/schemas/ReviewAnswer" }, "title": "Review", "type": "object" } }, "required": [ "review" ], "title": "HumanReviewIn", "type": "object" }, "IntegrationState": { "properties": { "configured": { "title": "Configured", "type": "boolean" }, "host": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Host" }, "last_delivery": { "anyOf": [ { "$ref": "#/components/schemas/LastDelivery" }, { "type": "null" } ] } }, "required": [ "configured" ], "title": "IntegrationState", "type": "object" }, "IntegrationsView": { "properties": { "discord": { "$ref": "#/components/schemas/IntegrationState" }, "google_chat": { "$ref": "#/components/schemas/IntegrationState" }, "slack": { "$ref": "#/components/schemas/IntegrationState" }, "teams": { "$ref": "#/components/schemas/IntegrationState" } }, "required": [ "slack", "teams", "google_chat", "discord" ], "title": "IntegrationsView", "type": "object" }, "KeyIn": { "additionalProperties": false, "properties": { "api_key": { "maxLength": 400, "minLength": 8, "title": "Api Key", "type": "string" } }, "required": [ "api_key" ], "title": "KeyIn", "type": "object" }, "KeysIn": { "properties": { "keys": { "items": { "type": "string" }, "maxItems": 50, "minItems": 1, "title": "Keys", "type": "array" } }, "required": [ "keys" ], "title": "KeysIn", "type": "object" }, "KillIn": { "additionalProperties": false, "properties": { "engaged": { "title": "Engaged", "type": "boolean" }, "reason": { "default": "", "maxLength": 500, "title": "Reason", "type": "string" } }, "required": [ "engaged" ], "title": "KillIn", "type": "object" }, "LLMKeyIn": { "additionalProperties": false, "properties": { "api_key": { "maxLength": 400, "minLength": 8, "title": "Api Key", "type": "string" } }, "required": [ "api_key" ], "title": "LLMKeyIn", "type": "object" }, "LLMSettingsIn": { "additionalProperties": false, "properties": { "frontier_base_url": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Frontier Base Url" }, "frontier_model": { "anyOf": [ { "maxLength": 120, "type": "string" }, { "type": "null" } ], "title": "Frontier Model" }, "llm_frontier": { "anyOf": [ { "enum": [ "off", "frontier" ], "type": "string" }, { "type": "null" } ], "title": "Llm Frontier" }, "llm_local": { "anyOf": [ { "enum": [ "stub", "ollama" ], "type": "string" }, { "type": "null" } ], "title": "Llm Local" }, "ollama_model": { "anyOf": [ { "maxLength": 120, "type": "string" }, { "type": "null" } ], "title": "Ollama Model" }, "ollama_url": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Ollama Url" } }, "title": "LLMSettingsIn", "type": "object" }, "LLMTestIn": { "additionalProperties": false, "properties": { "target": { "enum": [ "local", "external" ], "title": "Target", "type": "string" } }, "required": [ "target" ], "title": "LLMTestIn", "type": "object" }, "LangSmithIn": { "additionalProperties": false, "properties": { "enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Enabled" }, "endpoint": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Endpoint" }, "project": { "anyOf": [ { "maxLength": 120, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Project" }, "send_content": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Send Content" } }, "title": "LangSmithIn", "type": "object" }, "LastDelivery": { "properties": { "at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "At" }, "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "ok": { "title": "Ok", "type": "boolean" }, "status": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Status" } }, "required": [ "ok" ], "title": "LastDelivery", "type": "object" }, "LeftDecisionIn": { "additionalProperties": false, "properties": { "decision": { "enum": [ "done", "dismiss", "reopen" ], "title": "Decision", "type": "string" }, "note": { "anyOf": [ { "maxLength": 1000, "type": "string" }, { "type": "null" } ], "title": "Note" } }, "required": [ "decision" ], "title": "LeftDecisionIn", "type": "object" }, "LeftOnPodRow": { "properties": { "check_detail": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Check Detail" }, "check_state": { "anyOf": [ { "enum": [ "still_on_pod", "looks_resolved", "unknown" ], "type": "string" }, { "type": "null" } ], "title": "Check State" }, "checked_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Checked At" }, "created_at": { "title": "Created At", "type": "string" }, "decided_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Decided At" }, "decided_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Decided By" }, "id": { "title": "Id", "type": "integer" }, "kind": { "title": "Kind", "type": "string" }, "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Note" }, "pod_id": { "title": "Pod Id", "type": "integer" }, "pod_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod Name" }, "recorded_at": { "title": "Recorded At", "type": "string" }, "reference": { "title": "Reference", "type": "string" }, "run_id": { "title": "Run Id", "type": "string" }, "scenario": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Scenario" }, "status": { "enum": [ "open", "done", "dismissed" ], "title": "Status", "type": "string" }, "todo": { "title": "Todo", "type": "string" }, "why": { "title": "Why", "type": "string" } }, "required": [ "id", "pod_id", "run_id", "kind", "reference", "why", "todo", "created_at", "recorded_at", "status" ], "title": "LeftOnPodRow", "type": "object" }, "LeftTestData": { "properties": { "number": { "title": "Number", "type": "string" }, "test": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Test" }, "why": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Why" } }, "required": [ "number" ], "title": "LeftTestData", "type": "object" }, "LinkCode": { "properties": { "bot_username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Bot Username" }, "code": { "title": "Code", "type": "string" }, "expires_at": { "title": "Expires At", "type": "string" } }, "required": [ "code", "expires_at" ], "title": "LinkCode", "type": "object" }, "LoginIn": { "additionalProperties": false, "properties": { "password": { "maxLength": 256, "minLength": 1, "title": "Password", "type": "string" }, "remember": { "default": false, "title": "Remember", "type": "boolean" }, "username": { "maxLength": 254, "minLength": 1, "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "LoginIn", "type": "object" }, "LoginOut": { "properties": { "csrf_token": { "title": "Csrf Token", "type": "string" }, "user": { "$ref": "#/components/schemas/UserOut" } }, "required": [ "user", "csrf_token" ], "title": "LoginOut", "type": "object" }, "MessageIn": { "additionalProperties": false, "properties": { "context": { "anyOf": [ { "$ref": "#/components/schemas/ChatContext" }, { "type": "null" } ] }, "text": { "maxLength": 2000, "minLength": 1, "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "MessageIn", "type": "object" }, "MyChannels": { "properties": { "telegram": { "$ref": "#/components/schemas/ChannelLink" } }, "required": [ "telegram" ], "title": "MyChannels", "type": "object" }, "NoteIn": { "additionalProperties": false, "properties": { "note": { "anyOf": [ { "maxLength": 1000, "type": "string" }, { "type": "null" } ], "title": "Note" } }, "title": "NoteIn", "type": "object" }, "NotificationList": { "properties": { "items": { "items": { "$ref": "#/components/schemas/NotificationRow" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "NotificationList", "type": "object" }, "NotificationRow": { "properties": { "body": { "title": "Body", "type": "string" }, "coworker": { "title": "Coworker", "type": "string" }, "created_at": { "title": "Created At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "kind": { "title": "Kind", "type": "string" }, "link": { "title": "Link", "type": "string" }, "run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "title": { "title": "Title", "type": "string" } }, "required": [ "id", "kind", "title", "body", "coworker", "link", "created_at" ], "title": "NotificationRow", "type": "object" }, "NotificationSettings": { "properties": { "last_delivery": { "anyOf": [ { "$ref": "#/components/schemas/LastDelivery" }, { "type": "null" } ] }, "pending": { "title": "Pending", "type": "integer" }, "signing": { "title": "Signing", "type": "boolean" }, "telegram": { "$ref": "#/components/schemas/TelegramSettings" }, "webhook_configured": { "title": "Webhook Configured", "type": "boolean" }, "webhook_host": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Webhook Host" } }, "required": [ "webhook_configured", "signing", "pending", "telegram" ], "title": "NotificationSettings", "type": "object" }, "Page_LeftOnPodRow_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/LeftOnPodRow" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[LeftOnPodRow]", "type": "object" }, "Page_RunSummary_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RunSummary" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[RunSummary]", "type": "object" }, "Page_dict_": { "properties": { "items": { "items": { "additionalProperties": true, "type": "object" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[dict]", "type": "object" }, "ParsedBatch": { "properties": { "batch_id": { "title": "Batch Id", "type": "string" }, "cases": { "items": { "$ref": "#/components/schemas/CustomCaseOut" }, "title": "Cases", "type": "array" }, "created_by": { "title": "Created By", "type": "string" }, "errors": { "items": { "type": "string" }, "title": "Errors", "type": "array" }, "expires_at": { "title": "Expires At", "type": "string" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "pod": { "anyOf": [ { "$ref": "#/components/schemas/PodRef" }, { "type": "null" } ] }, "run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "source": { "title": "Source", "type": "string" }, "status": { "enum": [ "parsed", "mapping", "building", "built", "failed" ], "title": "Status", "type": "string" } }, "required": [ "status", "source", "created_by", "expires_at", "cases", "batch_id", "errors" ], "title": "ParsedBatch", "type": "object" }, "PasswordChangeIn": { "additionalProperties": false, "properties": { "current_password": { "maxLength": 256, "minLength": 1, "title": "Current Password", "type": "string" }, "new_password": { "maxLength": 256, "minLength": 12, "title": "New Password", "type": "string" } }, "required": [ "current_password", "new_password" ], "title": "PasswordChangeIn", "type": "object" }, "PatchWatchIn": { "additionalProperties": false, "properties": { "autostart": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Autostart" }, "enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Enabled" }, "interval_s": { "anyOf": [ { "maximum": 86400.0, "minimum": 30.0, "type": "integer" }, { "type": "null" } ], "title": "Interval S" }, "modules": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Modules" } }, "title": "PatchWatchIn", "type": "object" }, "PodCheck": { "properties": { "detail": { "title": "Detail", "type": "string" }, "name": { "enum": [ "address", "reachable", "sign_in" ], "title": "Name", "type": "string" }, "ok": { "title": "Ok", "type": "boolean" } }, "required": [ "name", "ok", "detail" ], "title": "PodCheck", "type": "object" }, "PodCoverage": { "description": "The used variants against the scenario library, weighted by volume (platform/usage.py coverage).", "properties": { "areas": { "items": { "additionalProperties": true, "type": "object" }, "title": "Areas", "type": "array" }, "covered_share": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Covered Share" }, "gaps": { "items": { "additionalProperties": true, "type": "object" }, "title": "Gaps", "type": "array" }, "pod_id": { "title": "Pod Id", "type": "integer" }, "read_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Read At" }, "scenarios": { "default": 0, "title": "Scenarios", "type": "integer" }, "variants": { "items": { "additionalProperties": true, "type": "object" }, "title": "Variants", "type": "array" } }, "required": [ "pod_id" ], "title": "PodCoverage", "type": "object" }, "PodCredentialIn": { "additionalProperties": false, "properties": { "module": { "maxLength": 10, "minLength": 2, "title": "Module", "type": "string" }, "password": { "maxLength": 300, "minLength": 1, "title": "Password", "type": "string" }, "username": { "maxLength": 120, "minLength": 1, "title": "Username", "type": "string" } }, "required": [ "module", "username", "password" ], "title": "PodCredentialIn", "type": "object" }, "PodCredentialRow": { "properties": { "module": { "title": "Module", "type": "string" }, "set_at": { "title": "Set At", "type": "string" }, "set_by": { "title": "Set By", "type": "string" } }, "required": [ "module", "set_by", "set_at" ], "title": "PodCredentialRow", "type": "object" }, "PodIn": { "additionalProperties": false, "properties": { "base_url": { "maxLength": 300, "minLength": 8, "title": "Base Url", "type": "string" }, "environment": { "default": "test", "enum": [ "test", "uat", "dev", "sit" ], "title": "Environment", "type": "string" }, "kind": { "default": "fusion", "enum": [ "mock", "fusion" ], "title": "Kind", "type": "string" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "name": { "maxLength": 60, "minLength": 2, "title": "Name", "type": "string" }, "notes": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "title": "Notes" }, "sign_in_mode": { "default": "password", "enum": [ "password", "assisted" ], "title": "Sign In Mode", "type": "string" } }, "required": [ "name", "base_url" ], "title": "PodIn", "type": "object" }, "PodNavLinks": { "properties": { "links": { "additionalProperties": { "type": "string" }, "title": "Links", "type": "object" }, "pod_id": { "title": "Pod Id", "type": "integer" } }, "required": [ "pod_id" ], "title": "PodNavLinks", "type": "object" }, "PodNavLinksIn": { "additionalProperties": false, "properties": { "links": { "additionalProperties": { "type": "string" }, "title": "Links", "type": "object" } }, "title": "PodNavLinksIn", "type": "object" }, "PodRef": { "properties": { "id": { "title": "Id", "type": "integer" }, "kind": { "title": "Kind", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "id", "name", "kind" ], "title": "PodRef", "type": "object" }, "PodRow": { "properties": { "allow_imports": { "default": false, "title": "Allow Imports", "type": "boolean" }, "base_url": { "title": "Base Url", "type": "string" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created By" }, "credentials": { "items": { "$ref": "#/components/schemas/PodCredentialRow" }, "title": "Credentials", "type": "array" }, "discovered_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Discovered At" }, "discovery": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Discovery" }, "enabled": { "title": "Enabled", "type": "boolean" }, "environment": { "title": "Environment", "type": "string" }, "from_server_settings": { "default": false, "title": "From Server Settings", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "is_default": { "title": "Is Default", "type": "boolean" }, "kind": { "title": "Kind", "type": "string" }, "last_check_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Check At" }, "last_check_detail": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Check Detail" }, "last_check_ok": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Last Check Ok" }, "left_open": { "default": 0, "title": "Left Open", "type": "integer" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "name": { "title": "Name", "type": "string" }, "nav_links": { "additionalProperties": { "type": "string" }, "title": "Nav Links", "type": "object" }, "not_runnable_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Not Runnable Reason" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "release": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Release" }, "run_areas": { "items": { "type": "string" }, "title": "Run Areas", "type": "array" }, "runnable": { "title": "Runnable", "type": "boolean" }, "screens": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Screens" }, "sign_in_mode": { "default": "password", "enum": [ "password", "assisted" ], "title": "Sign In Mode", "type": "string" }, "test_data": { "additionalProperties": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "Test Data", "type": "object" }, "test_data_overrides": { "additionalProperties": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "Test Data Overrides", "type": "object" }, "usage_read_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Usage Read At" } }, "required": [ "id", "name", "kind", "base_url", "environment", "modules", "enabled", "is_default", "credentials", "runnable" ], "title": "PodRow", "type": "object" }, "PodScreensIn": { "additionalProperties": false, "properties": { "areas": { "items": { "type": "string" }, "maxItems": 20, "title": "Areas", "type": "array" }, "max_tasks": { "anyOf": [ { "maximum": 12.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Max Tasks" } }, "title": "PodScreensIn", "type": "object" }, "PodTestDataIn": { "additionalProperties": false, "properties": { "overrides": { "additionalProperties": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "type": "object" }, "title": "Overrides", "type": "object" } }, "title": "PodTestDataIn", "type": "object" }, "PodTestResult": { "properties": { "checks": { "items": { "$ref": "#/components/schemas/PodCheck" }, "title": "Checks", "type": "array" }, "detail": { "title": "Detail", "type": "string" }, "ok": { "title": "Ok", "type": "boolean" }, "pod": { "$ref": "#/components/schemas/PodRow" } }, "required": [ "ok", "detail", "pod" ], "title": "PodTestResult", "type": "object" }, "PodUpdate": { "additionalProperties": false, "properties": { "allow_imports": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Allow Imports" }, "base_url": { "anyOf": [ { "maxLength": 300, "minLength": 8, "type": "string" }, { "type": "null" } ], "title": "Base Url" }, "enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Enabled" }, "environment": { "anyOf": [ { "enum": [ "test", "uat", "dev", "sit" ], "type": "string" }, { "type": "null" } ], "title": "Environment" }, "kind": { "anyOf": [ { "enum": [ "mock", "fusion" ], "type": "string" }, { "type": "null" } ], "title": "Kind" }, "modules": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Modules" }, "name": { "anyOf": [ { "maxLength": 60, "minLength": 2, "type": "string" }, { "type": "null" } ], "title": "Name" }, "notes": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "title": "Notes" }, "release": { "anyOf": [ { "maxLength": 3, "type": "string" }, { "type": "null" } ], "title": "Release" }, "sign_in_mode": { "anyOf": [ { "enum": [ "password", "assisted" ], "type": "string" }, { "type": "null" } ], "title": "Sign In Mode" } }, "title": "PodUpdate", "type": "object" }, "PodUsage": { "description": "How the client uses each business area of the pod (platform/usage.py). Category values are the client's own.", "properties": { "areas": { "items": { "additionalProperties": true, "type": "object" }, "title": "Areas", "type": "array" }, "days": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Days" }, "pod_id": { "title": "Pod Id", "type": "integer" }, "read_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Read At" }, "since": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Since" } }, "required": [ "pod_id" ], "title": "PodUsage", "type": "object" }, "PodUsageIn": { "additionalProperties": false, "properties": { "days": { "default": 90, "maximum": 365.0, "minimum": 7.0, "title": "Days", "type": "integer" } }, "title": "PodUsageIn", "type": "object" }, "ReadinessItem": { "properties": { "detail": { "title": "Detail", "type": "string" }, "fix": { "title": "Fix", "type": "string" }, "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "ok": { "title": "Ok", "type": "boolean" } }, "required": [ "key", "label", "ok", "detail", "fix" ], "title": "ReadinessItem", "type": "object" }, "ReadinessOut": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ReadinessItem" }, "title": "Items", "type": "array" }, "ok": { "title": "Ok", "type": "boolean" } }, "required": [ "ok", "items" ], "title": "ReadinessOut", "type": "object" }, "RecordingIn": { "properties": { "ai_tidy": { "default": false, "description": "Let the AI model tidy the steps into business actions (masked values only).", "title": "Ai Tidy", "type": "boolean" }, "module": { "description": "Business-area code of the draft: AP, PO, GL ...", "maxLength": 6, "minLength": 2, "title": "Module", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "Match recorded values to this pod's test data ({{pod.<area>.<key>}}).", "title": "Pod Id" }, "text": { "description": "The recording: the .ts file `npx playwright codegen` saved (or its JSON-lines target); at most 200 KB.", "title": "Text", "type": "string" }, "title": { "default": "", "maxLength": 200, "title": "Title", "type": "string" } }, "required": [ "module", "text" ], "title": "RecordingIn", "type": "object" }, "RegisterIn": { "additionalProperties": false, "properties": { "email": { "maxLength": 254, "minLength": 5, "title": "Email", "type": "string" }, "password": { "maxLength": 256, "minLength": 10, "title": "Password", "type": "string" } }, "required": [ "email", "password" ], "title": "RegisterIn", "type": "object" }, "Reported": { "properties": { "line": { "title": "Line", "type": "integer" }, "what": { "title": "What", "type": "string" }, "why": { "title": "Why", "type": "string" } }, "required": [ "line", "what", "why" ], "title": "Reported", "type": "object" }, "ResetIn": { "additionalProperties": false, "properties": { "access_token": { "maxLength": 4096, "minLength": 20, "title": "Access Token", "type": "string" }, "password": { "maxLength": 256, "minLength": 10, "title": "Password", "type": "string" } }, "required": [ "access_token", "password" ], "title": "ResetIn", "type": "object" }, "RetireIn": { "additionalProperties": false, "properties": { "reason": { "description": "why it leaves the regression pack, kept in its history", "maxLength": 300, "minLength": 3, "title": "Reason", "type": "string" } }, "required": [ "reason" ], "title": "RetireIn", "type": "object" }, "ReviewAnswer": { "additionalProperties": false, "properties": { "confirmed": { "anyOf": [ { "enum": [ "real_defect", "not_defect" ], "type": "string" }, { "type": "null" } ], "title": "Confirmed" }, "note": { "anyOf": [ { "maxLength": 1000, "type": "string" }, { "type": "null" } ], "title": "Note" }, "owner": { "anyOf": [ { "maxLength": 100, "type": "string" }, { "type": "null" } ], "title": "Owner" }, "waiver": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "title": "Waiver" } }, "title": "ReviewAnswer", "type": "object" }, "RunCreate": { "additionalProperties": false, "properties": { "case_ids": { "items": { "type": "string" }, "maxItems": 500, "title": "Case Ids", "type": "array" }, "depth": { "anyOf": [ { "enum": [ "smoke", "standard", "full" ], "type": "string" }, { "type": "null" } ], "title": "Depth" }, "include_p2": { "default": false, "title": "Include P2", "type": "boolean" }, "live_view": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Live View" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "patch_id": { "anyOf": [ { "maxLength": 40, "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "playwright_mode": { "default": "live", "enum": [ "live", "stub" ], "title": "Playwright Mode", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "stub_knobs": { "anyOf": [ { "$ref": "#/components/schemas/StubKnobs" }, { "type": "null" } ] } }, "title": "RunCreate", "type": "object" }, "RunCreated": { "properties": { "run_id": { "title": "Run Id", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "run_id", "status" ], "title": "RunCreated", "type": "object" }, "RunDetail": { "properties": { "attention": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Attention" }, "counts": { "additionalProperties": true, "default": {}, "title": "Counts", "type": "object" }, "created_at": { "title": "Created At", "type": "string" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created By" }, "current_node": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Node" }, "decision": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Decision" }, "decisions": { "additionalProperties": { "type": "string" }, "default": {}, "title": "Decisions", "type": "object" }, "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "errors": { "default": [], "items": {}, "title": "Errors", "type": "array" }, "include_p2": { "default": false, "title": "Include P2", "type": "boolean" }, "live_view": { "default": false, "title": "Live View", "type": "boolean" }, "llm_calls": { "default": [], "items": {}, "title": "Llm Calls", "type": "array" }, "llm_calls_count": { "default": 0, "title": "Llm Calls Count", "type": "integer" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "orchestrator": { "default": "langgraph", "title": "Orchestrator", "type": "string" }, "patch_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "pending_gate": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pending Gate" }, "playwright_mode": { "title": "Playwright Mode", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "pod_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod Name" }, "report_paths": { "additionalProperties": true, "default": {}, "title": "Report Paths", "type": "object" }, "retry_count": { "default": 0, "title": "Retry Count", "type": "integer" }, "run_id": { "title": "Run Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "target": { "default": "Mock app, not Oracle Fusion", "title": "Target", "type": "string" }, "test_data": { "anyOf": [ { "$ref": "#/components/schemas/TestDataCleanup" }, { "type": "null" } ] }, "trigger": { "title": "Trigger", "type": "string" } }, "required": [ "run_id", "created_at", "trigger", "modules", "playwright_mode", "status" ], "title": "RunDetail", "type": "object" }, "RunEvent": { "properties": { "kind": { "title": "Kind", "type": "string" }, "node": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Node" }, "seq": { "title": "Seq", "type": "integer" }, "summary": { "additionalProperties": true, "default": {}, "title": "Summary", "type": "object" }, "ts": { "title": "Ts", "type": "string" } }, "required": [ "seq", "ts", "kind" ], "title": "RunEvent", "type": "object" }, "RunIn": { "properties": { "keys": { "items": { "type": "string" }, "maxItems": 50, "minItems": 1, "title": "Keys", "type": "array" }, "mode": { "default": "quick", "enum": [ "quick", "browser" ], "title": "Mode", "type": "string" } }, "required": [ "keys" ], "title": "RunIn", "type": "object" }, "RunNoteIn": { "additionalProperties": false, "properties": { "text": { "maxLength": 2000, "minLength": 1, "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "RunNoteIn", "type": "object" }, "RunStarted": { "properties": { "run_id": { "title": "Run Id", "type": "string" } }, "required": [ "run_id" ], "title": "RunStarted", "type": "object" }, "RunSummary": { "properties": { "attention": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Attention" }, "counts": { "additionalProperties": { "type": "integer" }, "default": {}, "title": "Counts", "type": "object" }, "created_at": { "title": "Created At", "type": "string" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created By" }, "current_node": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Node" }, "decision": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Decision" }, "decisions": { "additionalProperties": { "type": "string" }, "default": {}, "title": "Decisions", "type": "object" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "orchestrator": { "default": "langgraph", "title": "Orchestrator", "type": "string" }, "patch_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "pending_gate": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pending Gate" }, "playwright_mode": { "title": "Playwright Mode", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "pod_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod Name" }, "run_id": { "title": "Run Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "trigger": { "title": "Trigger", "type": "string" } }, "required": [ "run_id", "created_at", "trigger", "modules", "playwright_mode", "status" ], "title": "RunSummary", "type": "object" }, "ScheduleIn": { "additionalProperties": false, "properties": { "at": { "anyOf": [ { "pattern": "^\\d{2}:\\d{2}$", "type": "string" }, { "type": "null" } ], "title": "At" }, "day": { "anyOf": [ { "maximum": 28.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Day" }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "every_minutes": { "anyOf": [ { "maximum": 10080.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Every Minutes" }, "include_p2": { "default": false, "title": "Include P2", "type": "boolean" }, "kind": { "enum": [ "interval", "daily", "monthly", "quarterly" ], "title": "Kind", "type": "string" }, "modules": { "items": { "type": "string" }, "title": "Modules", "type": "array" }, "month": { "anyOf": [ { "maximum": 12.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Month" }, "patch_id": { "anyOf": [ { "maxLength": 40, "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "playwright_mode": { "default": "live", "enum": [ "live", "stub" ], "title": "Playwright Mode", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "timezone": { "anyOf": [ { "maxLength": 64, "type": "string" }, { "type": "null" } ], "title": "Timezone" } }, "required": [ "kind" ], "title": "ScheduleIn", "type": "object" }, "ScheduleRow": { "properties": { "at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "At" }, "created_at": { "title": "Created At", "type": "string" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created By" }, "day": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Day" }, "enabled": { "title": "Enabled", "type": "boolean" }, "every_minutes": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Every Minutes" }, "fail_count": { "default": 0, "title": "Fail Count", "type": "integer" }, "id": { "title": "Id", "type": "integer" }, "include_p2": { "default": false, "title": "Include P2", "type": "boolean" }, "kind": { "title": "Kind", "type": "string" }, "last_attempt_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Attempt At" }, "last_error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Error" }, "last_run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Run Id" }, "modules": { "default": [], "items": { "type": "string" }, "title": "Modules", "type": "array" }, "month": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Month" }, "next_run_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Run At" }, "patch_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "playwright_mode": { "title": "Playwright Mode", "type": "string" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "timezone": { "title": "Timezone", "type": "string" } }, "required": [ "id", "kind", "playwright_mode", "enabled", "timezone", "created_at" ], "title": "ScheduleRow", "type": "object" }, "ScheduleUpdate": { "additionalProperties": false, "description": "PATCH /api/schedules/{id}: only the fields given change. enabled=false pauses it, true turns it on again.", "properties": { "at": { "anyOf": [ { "pattern": "^\\d{2}:\\d{2}$", "type": "string" }, { "type": "null" } ], "title": "At" }, "day": { "anyOf": [ { "maximum": 28.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Day" }, "enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Enabled" }, "every_minutes": { "anyOf": [ { "maximum": 10080.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Every Minutes" }, "include_p2": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Include P2" }, "kind": { "anyOf": [ { "enum": [ "interval", "daily", "monthly", "quarterly" ], "type": "string" }, { "type": "null" } ], "title": "Kind" }, "modules": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Modules" }, "month": { "anyOf": [ { "maximum": 12.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Month" }, "patch_id": { "anyOf": [ { "maxLength": 40, "type": "string" }, { "type": "null" } ], "title": "Patch Id" }, "playwright_mode": { "anyOf": [ { "enum": [ "live", "stub" ], "type": "string" }, { "type": "null" } ], "title": "Playwright Mode" }, "pod_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" }, "timezone": { "anyOf": [ { "maxLength": 64, "type": "string" }, { "type": "null" } ], "title": "Timezone" } }, "title": "ScheduleUpdate", "type": "object" }, "ScreenCaptureIn": { "additionalProperties": false, "properties": { "task": { "description": "\"Area > Page > Task\", e.g. \"Payables > Invoices > Create Invoice\"", "maxLength": 250, "minLength": 5, "title": "Task", "type": "string" } }, "required": [ "task" ], "title": "ScreenCaptureIn", "type": "object" }, "ScreenField": { "properties": { "kind": { "enum": [ "text", "list", "lov", "date", "number", "checkbox", "textarea" ], "title": "Kind", "type": "string" }, "label": { "title": "Label", "type": "string" }, "required": { "title": "Required", "type": "boolean" }, "section": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Section" } }, "required": [ "label", "kind", "required" ], "title": "ScreenField", "type": "object" }, "ScreenInventory": { "properties": { "buttons": { "items": { "type": "string" }, "title": "Buttons", "type": "array" }, "captured_at": { "title": "Captured At", "type": "string" }, "fields": { "items": { "$ref": "#/components/schemas/ScreenField" }, "title": "Fields", "type": "array" }, "line_fields": { "default": [], "items": { "$ref": "#/components/schemas/ScreenLineField" }, "title": "Line Fields", "type": "array" }, "menus": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "title": "Menus", "type": "object" }, "pod_host": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod Host" }, "sections": { "items": { "type": "string" }, "title": "Sections", "type": "array" }, "source": { "title": "Source", "type": "string" }, "tables": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "default": {}, "title": "Tables", "type": "object" }, "task": { "title": "Task", "type": "string" } }, "required": [ "task", "captured_at", "source", "sections", "fields", "buttons", "menus" ], "title": "ScreenInventory", "type": "object" }, "ScreenLineField": { "properties": { "kind": { "enum": [ "text", "list", "lov", "date", "number", "checkbox", "textarea" ], "title": "Kind", "type": "string" }, "label": { "title": "Label", "type": "string" }, "required": { "title": "Required", "type": "boolean" } }, "required": [ "label", "kind", "required" ], "title": "ScreenLineField", "type": "object" }, "ScreenSummary": { "properties": { "buttons": { "title": "Buttons", "type": "integer" }, "captured_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Captured At" }, "fields": { "title": "Fields", "type": "integer" }, "line_fields": { "title": "Line Fields", "type": "integer" }, "menus": { "title": "Menus", "type": "integer" }, "pod_host": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod Host" }, "slug": { "title": "Slug", "type": "string" }, "source": { "title": "Source", "type": "string" }, "task": { "title": "Task", "type": "string" } }, "required": [ "slug", "task", "source", "fields", "line_fields", "buttons", "menus" ], "title": "ScreenSummary", "type": "object" }, "SessionRow": { "properties": { "created_at": { "title": "Created At", "type": "string" }, "current": { "title": "Current", "type": "boolean" }, "expires_at": { "title": "Expires At", "type": "string" }, "id": { "title": "Id", "type": "string" }, "kind": { "title": "Kind", "type": "string" } }, "required": [ "id", "kind", "created_at", "expires_at", "current" ], "title": "SessionRow", "type": "object" }, "SignInAccepted": { "properties": { "accepted": { "title": "Accepted", "type": "integer" } }, "required": [ "accepted" ], "title": "SignInAccepted", "type": "object" }, "SignInEvent": { "additionalProperties": false, "description": "One thing the person did in the sign-in browser: a click (in the browser's 1280x800 pixels), text, a key, a scroll.", "properties": { "dy": { "anyOf": [ { "maximum": 2000.0, "minimum": -2000.0, "type": "number" }, { "type": "null" } ], "title": "Dy" }, "key": { "anyOf": [ { "maxLength": 40, "type": "string" }, { "type": "null" } ], "title": "Key" }, "text": { "anyOf": [ { "maxLength": 500, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Text" }, "type": { "enum": [ "click", "type", "press", "scroll" ], "title": "Type", "type": "string" }, "x": { "anyOf": [ { "maximum": 1280.0, "minimum": 0.0, "type": "number" }, { "type": "null" } ], "title": "X" }, "y": { "anyOf": [ { "maximum": 800.0, "minimum": 0.0, "type": "number" }, { "type": "null" } ], "title": "Y" } }, "required": [ "type" ], "title": "SignInEvent", "type": "object" }, "SignInGate": { "properties": { "base_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Base Url" }, "pod": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pod" }, "reason": { "default": "start", "enum": [ "start", "expired" ], "title": "Reason", "type": "string" }, "remaining": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Remaining" } }, "title": "SignInGate", "type": "object" }, "SignInInputIn": { "additionalProperties": false, "properties": { "events": { "items": { "$ref": "#/components/schemas/SignInEvent" }, "maxItems": 50, "minItems": 1, "title": "Events", "type": "array" }, "session_id": { "maxLength": 80, "minLength": 10, "title": "Session Id", "type": "string" } }, "required": [ "session_id", "events" ], "title": "SignInInputIn", "type": "object" }, "SignInSessionIn": { "additionalProperties": false, "properties": { "session_id": { "maxLength": 80, "minLength": 10, "title": "Session Id", "type": "string" } }, "required": [ "session_id" ], "title": "SignInSessionIn", "type": "object" }, "SignInStatusOut": { "properties": { "active": { "default": false, "title": "Active", "type": "boolean" }, "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "gate": { "anyOf": [ { "$ref": "#/components/schemas/SignInGate" }, { "type": "null" } ] }, "idle_left_s": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Idle Left S" }, "mine": { "default": false, "title": "Mine", "type": "boolean" }, "owner": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Owner" }, "page": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Page" }, "session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Session Id" }, "started_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Started At" }, "state": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "State" }, "waiting": { "title": "Waiting", "type": "boolean" } }, "required": [ "waiting" ], "title": "SignInStatusOut", "type": "object" }, "SignOffIn": { "additionalProperties": false, "properties": { "comment": { "anyOf": [ { "maxLength": 1000, "type": "string" }, { "type": "null" } ], "title": "Comment" } }, "title": "SignOffIn", "type": "object" }, "StatusOut": { "properties": { "commit_sha": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Commit Sha" }, "status": { "title": "Status", "type": "string" } }, "required": [ "status" ], "title": "StatusOut", "type": "object" }, "StepEditIn": { "properties": { "action": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "title": "Action" }, "expected": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "title": "Expected" }, "remove": { "default": false, "title": "Remove", "type": "boolean" } }, "title": "StepEditIn", "type": "object" }, "StepOut": { "properties": { "action": { "title": "Action", "type": "string" }, "expected": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Expected" }, "field": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Field" }, "fields": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Fields" }, "lines": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Lines" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "price": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Price" }, "quantity": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Quantity" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Value" } }, "required": [ "action" ], "title": "StepOut", "type": "object" }, "StepRowOut": { "description": "One step as the consultant wrote it, next to what Astra will do and how that was worked out.", "properties": { "does": { "default": [], "items": { "type": "string" }, "title": "Does", "type": "array" }, "expected": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Expected" }, "n": { "title": "N", "type": "integer" }, "origin": { "enum": [ "rule", "model", "unmapped" ], "title": "Origin", "type": "string" }, "original": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Original" }, "text": { "title": "Text", "type": "string" }, "why": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Why" } }, "required": [ "n", "text", "origin" ], "title": "StepRowOut", "type": "object" }, "StubKnobs": { "additionalProperties": false, "properties": { "STUB_DEFECT": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Stub Defect" }, "STUB_FAIL": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Stub Fail" }, "STUB_FLAKY": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Stub Flaky" }, "STUB_UI": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Stub Ui" } }, "title": "StubKnobs", "type": "object" }, "TelegramBotStatus": { "properties": { "bot_username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Bot Username" }, "last_update_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Update At" }, "linked_users": { "title": "Linked Users", "type": "integer" }, "polling": { "title": "Polling", "type": "boolean" }, "token_set": { "title": "Token Set", "type": "boolean" } }, "required": [ "token_set", "polling", "linked_users" ], "title": "TelegramBotStatus", "type": "object" }, "TelegramChat": { "properties": { "chat_id": { "title": "Chat Id", "type": "string" }, "title": { "title": "Title", "type": "string" } }, "required": [ "chat_id", "title" ], "title": "TelegramChat", "type": "object" }, "TelegramChatIn": { "properties": { "chat_id": { "maxLength": 64, "minLength": 1, "pattern": "^-?[0-9]+$|^@[A-Za-z0-9_]{4,64}$", "title": "Chat Id", "type": "string" }, "title": { "anyOf": [ { "maxLength": 120, "type": "string" }, { "type": "null" } ], "title": "Title" } }, "required": [ "chat_id" ], "title": "TelegramChatIn", "type": "object" }, "TelegramFound": { "properties": { "chats": { "items": { "$ref": "#/components/schemas/TelegramFoundChat" }, "title": "Chats", "type": "array" } }, "required": [ "chats" ], "title": "TelegramFound", "type": "object" }, "TelegramFoundChat": { "properties": { "chat_id": { "title": "Chat Id", "type": "string" }, "title": { "title": "Title", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "chat_id", "title", "type" ], "title": "TelegramFoundChat", "type": "object" }, "TelegramSettings": { "properties": { "chat": { "anyOf": [ { "$ref": "#/components/schemas/TelegramChat" }, { "type": "null" } ] }, "last_delivery": { "anyOf": [ { "$ref": "#/components/schemas/LastDelivery" }, { "type": "null" } ] }, "token_set": { "title": "Token Set", "type": "boolean" } }, "required": [ "token_set" ], "title": "TelegramSettings", "type": "object" }, "TestDataCleanup": { "properties": { "cleaned": { "default": 0, "title": "Cleaned", "type": "integer" }, "created": { "default": 0, "title": "Created", "type": "integer" }, "left": { "default": [], "items": { "$ref": "#/components/schemas/LeftTestData" }, "title": "Left", "type": "array" }, "summary": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Summary" }, "swept_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Swept At" } }, "title": "TestDataCleanup", "type": "object" }, "TestQueued": { "properties": { "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Id" }, "queued": { "title": "Queued", "type": "boolean" } }, "required": [ "queued" ], "title": "TestQueued", "type": "object" }, "TokenAdminView": { "properties": { "created_at": { "title": "Created At", "type": "string" }, "expires_at": { "title": "Expires At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "last4": { "title": "Last4", "type": "string" }, "last_used_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Used At" }, "name": { "title": "Name", "type": "string" }, "revoked_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Revoked At" }, "scopes": { "title": "Scopes", "type": "string" }, "state": { "enum": [ "active", "expired", "revoked" ], "title": "State", "type": "string" }, "username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Username" } }, "required": [ "id", "name", "last4", "scopes", "created_at", "expires_at", "state" ], "title": "TokenAdminView", "type": "object" }, "TokenCreated": { "properties": { "expires_at": { "title": "Expires At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "scopes": { "title": "Scopes", "type": "string" }, "token": { "description": "Shown once. Store it in your MCP client; Patchwise keeps only its hash.", "title": "Token", "type": "string" } }, "required": [ "id", "token", "name", "scopes", "expires_at" ], "title": "TokenCreated", "type": "object" }, "TokenIn": { "properties": { "days": { "default": 90, "maximum": 365.0, "minimum": 1.0, "title": "Days", "type": "integer" }, "name": { "maxLength": 80, "minLength": 1, "title": "Name", "type": "string" }, "scopes": { "default": "read", "enum": [ "read", "read,act" ], "title": "Scopes", "type": "string" } }, "required": [ "name" ], "title": "TokenIn", "type": "object" }, "TokenOut": { "properties": { "access_token": { "title": "Access Token", "type": "string" }, "expires_in": { "title": "Expires In", "type": "integer" }, "token_type": { "const": "bearer", "default": "bearer", "title": "Token Type", "type": "string" }, "user": { "$ref": "#/components/schemas/UserOut" } }, "required": [ "access_token", "expires_in", "user" ], "title": "TokenOut", "type": "object" }, "TokenView": { "properties": { "created_at": { "title": "Created At", "type": "string" }, "expires_at": { "title": "Expires At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "last4": { "title": "Last4", "type": "string" }, "last_used_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Used At" }, "name": { "title": "Name", "type": "string" }, "revoked_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Revoked At" }, "scopes": { "title": "Scopes", "type": "string" }, "state": { "enum": [ "active", "expired", "revoked" ], "title": "State", "type": "string" } }, "required": [ "id", "name", "last4", "scopes", "created_at", "expires_at", "state" ], "title": "TokenView", "type": "object" }, "Unparsed": { "properties": { "line": { "title": "Line", "type": "integer" }, "why": { "title": "Why", "type": "string" } }, "required": [ "line", "why" ], "title": "Unparsed", "type": "object" }, "UserCreate": { "additionalProperties": false, "properties": { "password": { "maxLength": 256, "minLength": 12, "title": "Password", "type": "string" }, "role": { "enum": [ "viewer", "consultant", "qa_approver", "admin" ], "title": "Role", "type": "string" }, "username": { "maxLength": 64, "minLength": 2, "pattern": "^[A-Za-z0-9._-]+$", "title": "Username", "type": "string" } }, "required": [ "username", "password", "role" ], "title": "UserCreate", "type": "object" }, "UserOut": { "properties": { "id": { "title": "Id", "type": "integer" }, "permissions": { "default": [], "items": { "type": "string" }, "title": "Permissions", "type": "array" }, "role": { "enum": [ "viewer", "consultant", "qa_approver", "admin" ], "title": "Role", "type": "string" }, "username": { "title": "Username", "type": "string" }, "via": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Via" } }, "required": [ "id", "username", "role" ], "title": "UserOut", "type": "object" }, "UserRow": { "properties": { "created_at": { "title": "Created At", "type": "string" }, "created_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created By" }, "disabled": { "title": "Disabled", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "last_login_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Login At" }, "role": { "title": "Role", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "username", "role", "disabled", "created_at" ], "title": "UserRow", "type": "object" }, "UserUpdate": { "additionalProperties": false, "properties": { "disabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Disabled" }, "password": { "anyOf": [ { "maxLength": 256, "minLength": 12, "type": "string" }, { "type": "null" } ], "title": "Password" }, "role": { "anyOf": [ { "enum": [ "viewer", "consultant", "qa_approver", "admin" ], "type": "string" }, { "type": "null" } ], "title": "Role" } }, "title": "UserUpdate", "type": "object" }, "ValidationError": { "properties": { "ctx": { "title": "Context", "type": "object" }, "input": { "title": "Input" }, "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "Location", "type": "array" }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "ValidationError", "type": "object" }, "WebhookIn": { "properties": { "webhook_url": { "maxLength": 2048, "minLength": 12, "title": "Webhook Url", "type": "string" } }, "required": [ "webhook_url" ], "title": "WebhookIn", "type": "object" } } }, "info": { "description": "Pilot backend. Runs against the local mock app or a registered Oracle Fusion TEST pod (never production); every run and report names its target.", "title": "Astra API", "version": "1.0.0-pilot" }, "openapi": "3.1.0", "paths": { "/api/admin/features": { "get": { "operationId": "get_features_api_admin_features_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Get Features", "tags": [ "admin" ] } }, "/api/admin/features/{key}": { "put": { "operationId": "put_feature_api_admin_features__key__put", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "Key", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeatureIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Put Feature", "tags": [ "admin" ] } }, "/api/admin/readiness": { "get": { "description": "A read-only checklist of what a run needs (runner, pod, canary, usage, runs, model). Writes nothing.", "operationId": "readiness_api_admin_readiness_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReadinessOut" } } }, "description": "Successful Response" } }, "summary": "Readiness", "tags": [ "admin" ] } }, "/api/admin/tokens": { "get": { "operationId": "all_tokens_api_admin_tokens_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TokenAdminView" }, "title": "Response All Tokens Api Admin Tokens Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "All Tokens", "tags": [ "tokens" ] } }, "/api/admin/tokens/{token_id}": { "delete": { "operationId": "admin_revoke_token_api_admin_tokens__token_id__delete", "parameters": [ { "in": "path", "name": "token_id", "required": true, "schema": { "title": "Token Id", "type": "integer" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Admin Revoke Token", "tags": [ "tokens" ] } }, "/api/agent-studio/clients": { "get": { "operationId": "list_clients_api_agent_studio_clients_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "List Clients", "tags": [ "agent-studio" ] }, "post": { "operationId": "create_client_api_agent_studio_clients_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create Client", "tags": [ "agent-studio" ] } }, "/api/agent-studio/clients/{client_id}": { "delete": { "operationId": "revoke_client_api_agent_studio_clients__client_id__delete", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Revoke Client", "tags": [ "agent-studio" ] }, "patch": { "operationId": "update_client_api_agent_studio_clients__client_id__patch", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientPatch" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Update Client", "tags": [ "agent-studio" ] } }, "/api/agent-studio/clients/{client_id}/delivery": { "put": { "description": "Where this client's events go: signed POSTs to its callback address, straight to Oracle Fusion (invokeAsync), or\nnowhere until the Fusion workflow picks them up (pull).", "operationId": "set_delivery_api_agent_studio_clients__client_id__delivery_put", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliveryIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Set Delivery", "tags": [ "agent-studio" ] } }, "/api/agent-studio/clients/{client_id}/delivery/test": { "post": { "description": "Signs in to the Oracle identity domain with the saved app (no workflow is started).", "operationId": "test_delivery_api_agent_studio_clients__client_id__delivery_test_post", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Test Delivery", "tags": [ "agent-studio" ] } }, "/api/agent-studio/cycles": { "get": { "operationId": "list_cycles_api_agent_studio_cycles_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "List Cycles", "tags": [ "agent-studio" ] } }, "/api/agent-studio/cycles/{cycle_id}/package": { "get": { "description": "The test data package the Fusion side approved for this cycle.", "operationId": "cycle_package_api_agent_studio_cycles__cycle_id__package_get", "parameters": [ { "in": "path", "name": "cycle_id", "required": true, "schema": { "title": "Cycle Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Cycle Package", "tags": [ "agent-studio" ] } }, "/api/agent-studio/deliveries": { "get": { "description": "The callbacks, newest first, each with its state (queued, picked_up, retrying, delivered, superseded, dead).\n?state=dead lists the dead letters only: events that ran out of tries; send one again with .../requeue.", "operationId": "list_deliveries_api_agent_studio_deliveries_get", "parameters": [ { "in": "query", "name": "state", "required": false, "schema": { "anyOf": [ { "const": "dead", "type": "string" }, { "type": "null" } ], "title": "State" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "List Deliveries", "tags": [ "agent-studio" ] } }, "/api/agent-studio/deliveries/{delivery_id}/requeue": { "post": { "description": "Send a dead letter (or an event still retrying) again: its tries start over, with the same delivery_id.", "operationId": "requeue_delivery_api_agent_studio_deliveries__delivery_id__requeue_post", "parameters": [ { "in": "path", "name": "delivery_id", "required": true, "schema": { "title": "Delivery Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Requeue Delivery", "tags": [ "agent-studio" ] } }, "/api/agent-studio/release-watch": { "get": { "operationId": "release_watch_api_agent_studio_release_watch_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Release Watch", "tags": [ "agent-studio" ] } }, "/api/agent-studio/release-watch/check": { "post": { "operationId": "release_watch_now_api_agent_studio_release_watch_check_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Release Watch Now", "tags": [ "agent-studio" ] } }, "/api/agent-studio/standin/inbox": { "get": { "operationId": "standin_messages_api_agent_studio_standin_inbox_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Standin Messages", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/cycles": { "post": { "description": "Safe to send again: with the same Idempotency-Key header (optional), or the same correlation_id while that cycle\nis still going, it starts nothing and answers with the cycle the first call made (202, same body; the header\nIdempotent-Replayed: true says so).", "operationId": "start_cycle_api_agent_studio_v1_cycles_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CycleIn" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Start a test cycle with approved synthetic test data", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/cycles/{cycle_id}": { "get": { "operationId": "get_cycle_api_agent_studio_v1_cycles__cycle_id__get", "parameters": [ { "in": "path", "name": "cycle_id", "required": true, "schema": { "title": "Cycle Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Where a test cycle is", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/cycles/{cycle_id}/approval": { "post": { "operationId": "approval_api_agent_studio_v1_cycles__cycle_id__approval_post", "parameters": [ { "in": "path", "name": "cycle_id", "required": true, "schema": { "title": "Cycle Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApprovalIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "The person's start-testing decision, made in Fusion", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/events/ack": { "post": { "operationId": "ack_events_api_agent_studio_v1_events_ack_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AckIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Confirm picked-up events", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/events/claim": { "post": { "description": "The events Astra would have sent (scripts_ready, failures_need_review, results, stopped, paused, patch_update), oldest\nfirst. Confirm each with /events/ack; one not confirmed within confirm_within_s is handed out again (at least once:\nthe same event keeps its delivery_id).", "operationId": "claim_events_api_agent_studio_v1_events_claim_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClaimIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Pick up waiting events (delivery mode pull)", "tags": [ "agent-studio" ] } }, "/api/agent-studio/v1/test-data/check": { "post": { "description": "Also picks up and confirms events for delivery mode pull: {\"pickup\": {\"max\": 1, \"cycle_id\"?}} answers as\n/events/claim, {\"confirm\": [\"dlv_...\"]} as /events/ack. The Fusion tool's checkTestData function then serves the\ncallback workflow too, so the workflow needs no new tool functions.", "operationId": "check_test_data_api_agent_studio_v1_test_data_check_post", "requestBody": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Body", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Check test data before sending it (synthetic, well formed)", "tags": [ "agent-studio" ] } }, "/api/ai/calls": { "get": { "operationId": "calls_api_ai_calls_get", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "task", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Task" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Calls", "tags": [ "ai-monitoring" ] } }, "/api/ai/evals": { "get": { "operationId": "eval_history_api_ai_evals_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Eval History", "tags": [ "ai-monitoring" ] }, "post": { "operationId": "eval_start_api_ai_evals_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EvalIn" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Eval Start", "tags": [ "ai-monitoring" ] } }, "/api/ai/evals/datasets": { "get": { "operationId": "eval_datasets_api_ai_evals_datasets_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Eval Datasets", "tags": [ "ai-monitoring" ] } }, "/api/ai/evals/{eval_id}": { "get": { "operationId": "eval_get_api_ai_evals__eval_id__get", "parameters": [ { "in": "path", "name": "eval_id", "required": true, "schema": { "title": "Eval Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Eval Get", "tags": [ "ai-monitoring" ] } }, "/api/ai/langsmith": { "get": { "operationId": "langsmith_view_api_ai_langsmith_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Langsmith View", "tags": [ "ai-monitoring" ] }, "put": { "operationId": "langsmith_save_api_ai_langsmith_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LangSmithIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Langsmith Save", "tags": [ "ai-monitoring" ] } }, "/api/ai/langsmith/key": { "delete": { "operationId": "langsmith_key_delete_api_ai_langsmith_key_delete", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Langsmith Key Delete", "tags": [ "ai-monitoring" ] }, "post": { "operationId": "langsmith_key_api_ai_langsmith_key_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KeyIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Langsmith Key", "tags": [ "ai-monitoring" ] } }, "/api/ai/langsmith/test": { "post": { "operationId": "langsmith_test_api_ai_langsmith_test_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Langsmith Test", "tags": [ "ai-monitoring" ] } }, "/api/ai/monitoring": { "get": { "operationId": "monitoring_api_ai_monitoring_get", "parameters": [ { "in": "query", "name": "days", "required": false, "schema": { "default": 7, "maximum": 90, "minimum": 1, "title": "Days", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Monitoring", "tags": [ "ai-monitoring" ] } }, "/api/assistant/ask": { "post": { "description": "Ask Hermes one question. Pass the returned conversation_id to continue the same conversation.\nErrors: 409 HERMES_OFF, 503 HERMES_NOT_CONFIGURED, 502 HERMES_UNREACHABLE / HERMES_KEY_REJECTED / HERMES_ERROR,\n504 HERMES_TIMEOUT, 429 RATE_LIMITED, 404 NOT_FOUND (unknown or someone else's conversation).", "operationId": "ask_api_assistant_ask_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AskIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AskOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Ask", "tags": [ "assistant" ] } }, "/api/assistant/status": { "get": { "description": "Whether the Hermes assistant is on, configured (URL and key present) and reachable (checked at most once a minute).", "operationId": "status_api_assistant_status_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssistantStatus" } } }, "description": "Successful Response" } }, "summary": "Status", "tags": [ "assistant" ] } }, "/api/audit": { "get": { "operationId": "audit_api_audit_get", "parameters": [ { "in": "query", "name": "after", "required": false, "schema": { "default": 0, "title": "After", "type": "integer" } }, { "in": "query", "name": "kind", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Kind" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 200, "maximum": 1000, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Audit", "tags": [ "admin" ] } }, "/api/audit/verify": { "get": { "operationId": "audit_verify_api_audit_verify_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Audit Verify", "tags": [ "admin" ] } }, "/api/auth/config": { "get": { "description": "Public: how people sign in here, and whether they can create their own account.", "operationId": "auth_config_api_auth_config_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Auth Config", "tags": [ "auth" ] } }, "/api/auth/csrf": { "get": { "description": "Re-read the CSRF token for the current cookie session (e.g. after a page reload).", "operationId": "csrf_api_auth_csrf_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Csrf", "tags": [ "auth" ] } }, "/api/auth/forgot": { "post": { "description": "E-mail a password-reset link (Supabase accounts). Same answer whether or not the address has an account.", "operationId": "forgot_api_auth_forgot_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Forgot", "tags": [ "auth" ] } }, "/api/auth/login": { "post": { "operationId": "login_api_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Login", "tags": [ "auth" ] } }, "/api/auth/logout": { "post": { "operationId": "logout_api_auth_logout_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Logout", "tags": [ "auth" ] } }, "/api/auth/me": { "get": { "operationId": "me_api_auth_me_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserOut" } } }, "description": "Successful Response" } }, "summary": "Me", "tags": [ "auth" ] } }, "/api/auth/oidc/login": { "get": { "description": "OIDC hook (STUB). Production: the client's IdP with PKCE; IdP groups mapped to roles.", "operationId": "oidc_login_api_auth_oidc_login_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Oidc Login", "tags": [ "auth" ] } }, "/api/auth/password": { "post": { "description": "Change your own password (accounts of this app). Other sessions are signed out; this one stays.", "operationId": "change_password_api_auth_password_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordChangeIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Change Password", "tags": [ "auth" ] } }, "/api/auth/register": { "post": { "description": "Create an account through the identity provider. New accounts get the configured starting role (never admin,\nunless the address is on the administrator list). Supabase may ask the person to confirm the address first.", "operationId": "register_api_auth_register_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Register", "tags": [ "auth" ] } }, "/api/auth/reset": { "post": { "description": "Set a new password with the token from the reset link. The person then signs in as usual.", "operationId": "reset_api_auth_reset_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Reset", "tags": [ "auth" ] } }, "/api/auth/sessions": { "get": { "description": "Where this account is signed in (browsers and API tokens), newest first.", "operationId": "my_sessions_api_auth_sessions_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/SessionRow" }, "title": "Response My Sessions Api Auth Sessions Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "My Sessions", "tags": [ "auth" ] } }, "/api/auth/sessions/end-others": { "post": { "description": "Sign out everywhere else (other browsers, API tokens); this session stays.", "operationId": "end_other_sessions_api_auth_sessions_end_others_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "End Other Sessions", "tags": [ "auth" ] } }, "/api/auth/token": { "post": { "description": "Bearer token for the desktop app / API clients (no cookies, CSRF-exempt).", "operationId": "token_api_auth_token_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Token", "tags": [ "auth" ] } }, "/api/autonomy": { "get": { "operationId": "autonomy_get_api_autonomy_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Autonomy Get", "tags": [ "admin" ] } }, "/api/autonomy/{module}": { "put": { "operationId": "autonomy_set_api_autonomy__module__put", "parameters": [ { "in": "path", "name": "module", "required": true, "schema": { "title": "Module", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AutonomyIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Autonomy Set", "tags": [ "admin" ] } }, "/api/cases/{case_id}/yaml": { "get": { "description": "Read-only YAML of a library case (tests/cases), for the approval screen's preview.", "operationId": "case_yaml_api_cases__case_id__yaml_get", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Case Yaml", "tags": [ "runs" ] } }, "/api/channels/me": { "get": { "operationId": "my_channels_api_channels_me_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MyChannels" } } }, "description": "Successful Response" } }, "summary": "My Channels", "tags": [ "channels" ] } }, "/api/channels/telegram/link": { "delete": { "operationId": "telegram_unlink_api_channels_telegram_link_delete", "responses": { "204": { "description": "Successful Response" } }, "summary": "Telegram Unlink", "tags": [ "channels" ] } }, "/api/channels/telegram/link-code": { "post": { "description": "A one-time code (10 minutes) for this person to send to the bot as /link CODE.", "operationId": "telegram_link_code_api_channels_telegram_link_code_post", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkCode" } } }, "description": "Successful Response" } }, "summary": "Telegram Link Code", "tags": [ "channels" ] } }, "/api/channels/telegram/status": { "get": { "operationId": "telegram_status_api_channels_telegram_status_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramBotStatus" } } }, "description": "Successful Response" } }, "summary": "Telegram Status", "tags": [ "channels" ] } }, "/api/chat/actions/{action_id}/cancel": { "post": { "operationId": "cancel_action_api_chat_actions__action_id__cancel_post", "parameters": [ { "in": "path", "name": "action_id", "required": true, "schema": { "title": "Action Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Cancel Action", "tags": [ "chat" ] } }, "/api/chat/actions/{action_id}/confirm": { "post": { "description": "Executes the stored payload of a proposed action: owner only, single use, not expired, and the tool's own\npermission is re-checked here. Calls the same service function as the REST route.", "operationId": "confirm_action_api_chat_actions__action_id__confirm_post", "parameters": [ { "in": "path", "name": "action_id", "required": true, "schema": { "title": "Action Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Confirm Action", "tags": [ "chat" ] } }, "/api/chat/conversations": { "get": { "operationId": "list_conversations_api_chat_conversations_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "List Conversations", "tags": [ "chat" ] }, "post": { "operationId": "create_conversation_api_chat_conversations_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create Conversation", "tags": [ "chat" ] } }, "/api/chat/conversations/{conv_id}": { "delete": { "operationId": "delete_conversation_api_chat_conversations__conv_id__delete", "parameters": [ { "in": "path", "name": "conv_id", "required": true, "schema": { "title": "Conv Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Delete Conversation", "tags": [ "chat" ] }, "get": { "operationId": "get_conversation_api_chat_conversations__conv_id__get", "parameters": [ { "in": "path", "name": "conv_id", "required": true, "schema": { "title": "Conv Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Conversation", "tags": [ "chat" ] } }, "/api/chat/conversations/{conv_id}/messages": { "post": { "description": "Server-Sent Events for ONE turn: intent {tool,args} \u00b7 tool {name,ok,summary} \u00b7 delta {text} \u00b7 result {cards,links,\nsources} \u00b7 action {action_id,...} (a proposal, never an execution) \u00b7 done {message_id}.", "operationId": "post_message_api_chat_conversations__conv_id__messages_post", "parameters": [ { "in": "path", "name": "conv_id", "required": true, "schema": { "title": "Conv Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Post Message", "tags": [ "chat" ] } }, "/api/config": { "get": { "operationId": "config_api_config_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Config", "tags": [ "admin" ] } }, "/api/custom-cases/parse": { "post": { "description": "An Excel workbook, a Word file or a CSV (multipart field `file`, optional field `area`), plain text ({text}) or JSON\ncases ({cases}). Nothing runs and nothing is added to the script library. Steps the fixed rules can't map are left for\nPOST /custom-cases/{id}/ask-astra.", "operationId": "parse_api_custom_cases_parse_post", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "properties": { "area": { "type": "string" }, "text": { "type": "string" } }, "required": [ "text" ], "type": "object" }, { "properties": { "cases": { "items": { "type": "object" }, "type": "array" } }, "required": [ "cases" ], "type": "object" } ] } }, "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "type": "string" } }, "required": [ "file" ], "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ParsedBatch" } } }, "description": "Successful Response" } }, "summary": "Parse", "tags": [ "custom-cases" ] } }, "/api/custom-cases/template.xlsx": { "get": { "operationId": "template_api_custom_cases_template_xlsx_get", "responses": { "200": { "content": { "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { "schema": { "format": "binary", "type": "string" } } }, "description": "Successful Response" } }, "summary": "Template", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}": { "get": { "operationId": "batch_api_custom_cases__batch_id__get", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Batch", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/accept": { "post": { "description": "The consultant has looked at the steps Astra's model worked out. Needed before such a scenario is built; it is not an approval.", "operationId": "accept_api_custom_cases__batch_id__accept_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KeysIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Accept", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/approve": { "post": { "operationId": "approve_api_custom_cases__batch_id__approve_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KeysIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Approve", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/ask-astra": { "post": { "description": "Map the steps the fixed rules couldn't with the app's own model (background: poll GET /custom-cases/{id}; `status` is\n\"mapping\" meanwhile). The consultant's values are replaced by placeholders before anything is sent; where no model may\nbe used the steps stay unmapped, with the reason in each row's `why`. Never approves or builds anything.", "operationId": "ask_astra_api_custom_cases__batch_id__ask_astra_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AskAstraIn" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Ask Astra", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/build": { "post": { "description": "Script each scenario as a staged draft and dry-run it on the pod (in the background: poll GET /custom-cases/{id}).", "operationId": "build_api_custom_cases__batch_id__build_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BuildIn" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Build", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/reject": { "post": { "operationId": "reject_api_custom_cases__batch_id__reject_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KeysIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Reject", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/run": { "post": { "description": "A normal test run of approved scenarios (only approved ones: approval is never bypassed).", "operationId": "run_api_custom_cases__batch_id__run_post", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunStarted" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run", "tags": [ "custom-cases" ] } }, "/api/custom-cases/{batch_id}/{key}/steps/{n}": { "patch": { "description": "Reword a step (the original wording is kept) or leave it out; the step is mapped again by the rules.", "operationId": "edit_step_api_custom_cases__batch_id___key__steps__n__patch", "parameters": [ { "in": "path", "name": "batch_id", "required": true, "schema": { "title": "Batch Id", "type": "string" } }, { "in": "path", "name": "key", "required": true, "schema": { "title": "Key", "type": "string" } }, { "in": "path", "name": "n", "required": true, "schema": { "title": "N", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StepEditIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchView" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Edit Step", "tags": [ "custom-cases" ] } }, "/api/drafts": { "get": { "operationId": "drafts_list_api_drafts_get", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Drafts List", "tags": [ "review" ] } }, "/api/drafts/{did}": { "get": { "operationId": "draft_get_api_drafts__did__get", "parameters": [ { "in": "path", "name": "did", "required": true, "schema": { "title": "Did", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Draft Get", "tags": [ "review" ] } }, "/api/drafts/{did}/discard": { "post": { "operationId": "draft_discard_api_drafts__did__discard_post", "parameters": [ { "in": "path", "name": "did", "required": true, "schema": { "title": "Did", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Draft Discard", "tags": [ "review" ] } }, "/api/drafts/{did}/promote": { "post": { "operationId": "draft_promote_api_drafts__did__promote_post", "parameters": [ { "in": "path", "name": "did", "required": true, "schema": { "title": "Did", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Draft Promote", "tags": [ "review" ] } }, "/api/egress": { "get": { "operationId": "egress_api_egress_get", "parameters": [ { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 500, "maximum": 2000, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Egress", "tags": [ "admin" ] } }, "/api/evidence/{evidence_id}": { "get": { "operationId": "evidence_file_api_evidence__evidence_id__get", "parameters": [ { "in": "path", "name": "evidence_id", "required": true, "schema": { "title": "Evidence Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Evidence File", "tags": [ "runs" ] } }, "/api/graph": { "get": { "operationId": "graph_spec_api_graph_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Graph Spec", "tags": [ "runs" ] } }, "/api/heal-proposals": { "get": { "operationId": "heal_list_api_heal_proposals_get", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Heal List", "tags": [ "review" ] } }, "/api/heal-proposals/{pid}/decision": { "post": { "operationId": "heal_decide_api_heal_proposals__pid__decision_post", "parameters": [ { "in": "path", "name": "pid", "required": true, "schema": { "title": "Pid", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecisionIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Heal Decide", "tags": [ "review" ] } }, "/api/heals": { "get": { "operationId": "heals_list_api_heals_get", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "pod_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Heals List", "tags": [ "heals" ] } }, "/api/heals/{hid}/decision": { "post": { "operationId": "heal_decide_api_heals__hid__decision_post", "parameters": [ { "in": "path", "name": "hid", "required": true, "schema": { "title": "Hid", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecisionIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Heal Decide", "tags": [ "heals" ] } }, "/api/health": { "get": { "operationId": "health_api_health_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Health" } } }, "description": "Successful Response" } }, "summary": "Health", "tags": [ "admin" ] } }, "/api/integrations": { "get": { "operationId": "integrations_api_integrations_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationsView" } } }, "description": "Successful Response" } }, "summary": "Integrations", "tags": [ "integrations" ] } }, "/api/integrations/{key}": { "delete": { "operationId": "disconnect_api_integrations__key__delete", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "enum": [ "slack", "teams", "google_chat", "discord" ], "title": "Key", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Disconnect", "tags": [ "integrations" ] }, "put": { "operationId": "connect_api_integrations__key__put", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "enum": [ "slack", "teams", "google_chat", "discord" ], "title": "Key", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookIn" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Connect", "tags": [ "integrations" ] } }, "/api/integrations/{key}/test": { "post": { "operationId": "test_api_integrations__key__test_post", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "enum": [ "slack", "teams", "google_chat", "discord" ], "title": "Key", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestQueued" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Test", "tags": [ "integrations" ] } }, "/api/kill-switch": { "get": { "operationId": "kill_get_api_kill_switch_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Kill Get", "tags": [ "admin" ] }, "post": { "operationId": "kill_set_api_kill_switch_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/KillIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Kill Set", "tags": [ "admin" ] } }, "/api/learner/history": { "get": { "operationId": "learner_history_api_learner_history_get", "parameters": [ { "in": "query", "name": "module", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Module" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Learner History", "tags": [ "review" ] } }, "/api/learner/metrics": { "get": { "operationId": "learner_metrics_api_learner_metrics_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Learner Metrics", "tags": [ "review" ] } }, "/api/learner/patterns": { "get": { "operationId": "learner_patterns_api_learner_patterns_get", "parameters": [ { "in": "query", "name": "module", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Module" } }, { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Learner Patterns", "tags": [ "review" ] } }, "/api/left-on-pod": { "get": { "operationId": "left_list_api_left_on_pod_get", "parameters": [ { "in": "query", "name": "pod_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" } }, { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "pattern": "^(open|done|dismissed)$", "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "kind", "required": false, "schema": { "anyOf": [ { "pattern": "^(ap_invoice|ap_payment|ap_approval|po_requisition|po_order|po_receipt|gl_journal|ar_transaction|ar_receipt)$", "type": "string" }, { "type": "null" } ], "title": "Kind" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_LeftOnPodRow_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Left List", "tags": [ "left-on-pod" ] } }, "/api/left-on-pod/{row_id}/decision": { "post": { "operationId": "left_decide_api_left_on_pod__row_id__decision_post", "parameters": [ { "in": "path", "name": "row_id", "required": true, "schema": { "title": "Row Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeftDecisionIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeftOnPodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Left Decide", "tags": [ "left-on-pod" ] } }, "/api/left-on-pod/{row_id}/recheck": { "post": { "description": "Look at the pod again with GET requests only: still there, or looks resolved. Changes nothing on the pod.", "operationId": "left_recheck_api_left_on_pod__row_id__recheck_post", "parameters": [ { "in": "path", "name": "row_id", "required": true, "schema": { "title": "Row Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeftOnPodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Left Recheck", "tags": [ "left-on-pod" ] } }, "/api/library/log": { "get": { "operationId": "library_log_api_library_log_get", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 500, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Library Log", "tags": [ "review" ] } }, "/api/llm/key": { "delete": { "operationId": "delete_key_api_llm_key_delete", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Delete Key", "tags": [ "settings" ] }, "post": { "operationId": "set_key_api_llm_key_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LLMKeyIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Set Key", "tags": [ "settings" ] } }, "/api/llm/settings": { "get": { "operationId": "get_settings__api_llm_settings_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Get Settings ", "tags": [ "settings" ] }, "put": { "operationId": "put_settings_api_llm_settings_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LLMSettingsIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Put Settings", "tags": [ "settings" ] } }, "/api/llm/test": { "post": { "description": "One small real call. For the external model the payload is a few made-up counts (never client data).", "operationId": "test_model_api_llm_test_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LLMTestIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Test Model", "tags": [ "settings" ] } }, "/api/metrics": { "get": { "description": "Counts for monitoring. Readable by an admin session or with `Authorization: Bearer <FPT_METRICS_TOKEN>`\n(a secret, for a scraper). No names, addresses or run content.", "operationId": "metrics_api_metrics_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Metrics", "tags": [ "admin" ] } }, "/api/notifications": { "get": { "operationId": "notifications_api_notifications_get", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 30, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationList" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Notifications", "tags": [ "notifications" ] } }, "/api/notifications/settings": { "get": { "operationId": "notification_settings_api_notifications_settings_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationSettings" } } }, "description": "Successful Response" } }, "summary": "Notification Settings", "tags": [ "notifications" ] } }, "/api/notifications/telegram/chat": { "delete": { "operationId": "telegram_disconnect_api_notifications_telegram_chat_delete", "responses": { "204": { "description": "Successful Response" } }, "summary": "Telegram Disconnect", "tags": [ "notifications" ] }, "post": { "operationId": "telegram_connect_api_notifications_telegram_chat_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramChatIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestQueued" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Telegram Connect", "tags": [ "notifications" ] } }, "/api/notifications/telegram/discover": { "post": { "description": "The chats that wrote to the bot in the last 24 hours (send /start to the bot first).", "operationId": "telegram_discover_api_notifications_telegram_discover_post", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TelegramFound" } } }, "description": "Successful Response" } }, "summary": "Telegram Discover", "tags": [ "notifications" ] } }, "/api/notifications/test": { "post": { "operationId": "notification_test_api_notifications_test_post", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestQueued" } } }, "description": "Successful Response" } }, "summary": "Notification Test", "tags": [ "notifications" ] } }, "/api/patch-watch": { "get": { "operationId": "patch_watch_api_patch_watch_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Patch Watch", "tags": [ "admin" ] }, "put": { "operationId": "patch_watch_set_api_patch_watch_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchWatchIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Patch Watch Set", "tags": [ "admin" ] } }, "/api/patch-watch/check": { "post": { "operationId": "patch_watch_check_api_patch_watch_check_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Patch Watch Check", "tags": [ "admin" ] } }, "/api/pod/profile": { "get": { "operationId": "pod_profile_api_pod_profile_get", "parameters": [ { "in": "query", "name": "refresh", "required": false, "schema": { "default": false, "title": "Refresh", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Pod Profile", "tags": [ "runs" ] } }, "/api/pods": { "get": { "operationId": "list_pods_api_pods_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/PodRow" }, "title": "Response List Pods Api Pods Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "List Pods", "tags": [ "pods" ] }, "post": { "operationId": "create_pod_api_pods_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create Pod", "tags": [ "pods" ] } }, "/api/pods/{pod_id}": { "delete": { "operationId": "delete_pod_api_pods__pod_id__delete", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Delete Pod", "tags": [ "pods" ] }, "patch": { "operationId": "update_pod_api_pods__pod_id__patch", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Update Pod", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/coverage": { "get": { "description": "The variants the client uses against the scenario library: covered, practice only or not covered, by volume.", "operationId": "get_coverage_api_pods__pod_id__coverage_get", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodCoverage" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Coverage", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/credentials": { "post": { "operationId": "set_credential_api_pods__pod_id__credentials_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodCredentialIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Set Credential", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/discover": { "post": { "description": "Read which business areas the Fusion pod uses and the test data its records offer (read-only GETs).", "operationId": "discover_pod_api_pods__pod_id__discover_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Discover Pod", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/nav-links": { "get": { "operationId": "get_nav_links_api_pods__pod_id__nav_links_get", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodNavLinks" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Nav Links", "tags": [ "pods" ] }, "put": { "description": "Work areas a consultant opened by hand in Fusion and pasted here; a run opens them by address when the menus do not\nshow them. Same host as the pod only.", "operationId": "set_nav_links_api_pods__pod_id__nav_links_put", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodNavLinksIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodNavLinks" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Set Nav Links", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/screens/capture": { "post": { "operationId": "capture_screen_api_pods__pod_id__screens_capture_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenCaptureIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenInventory" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Capture Screen", "tags": [ "screens" ] } }, "/api/pods/{pod_id}/screens/read": { "post": { "description": "Read the screens of the pod's business areas in a real browser (labels only, nothing saved on the pod). Runs in the\nbackground for many minutes; the pod's `screens` shows progress and the result.", "operationId": "read_screens_api_pods__pod_id__screens_read_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodScreensIn" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Read Screens", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/test": { "post": { "operationId": "test_pod_api_pods__pod_id__test_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodTestResult" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Test Pod", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/test-data": { "put": { "operationId": "set_test_data_api_pods__pod_id__test_data_put", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodTestDataIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Set Test Data", "tags": [ "pods" ] } }, "/api/pods/{pod_id}/usage": { "get": { "operationId": "get_usage_api_pods__pod_id__usage_get", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodUsage" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Usage", "tags": [ "pods" ] }, "post": { "description": "Read how the client uses each business area of the Fusion pod: the records of the last `days` days counted by\ninvoice type, payment method, journal source ... (read-only GETs; platform/usage.py).", "operationId": "read_usage_api_pods__pod_id__usage_post", "parameters": [ { "in": "path", "name": "pod_id", "required": true, "schema": { "title": "Pod Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/PodUsageIn" }, { "type": "null" } ], "title": "Body" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PodUsage" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Read Usage", "tags": [ "pods" ] } }, "/api/readiness": { "get": { "description": "Patch readiness per business process for a pod (+ patch): latest test run per module, or the baseline\n(process steps + what the patch changes, labelled UNVERIFIED) when nothing has run yet.", "operationId": "readiness_api_readiness_get", "parameters": [ { "in": "query", "name": "pod_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pod Id" } }, { "in": "query", "name": "patch_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Patch Id" } }, { "in": "query", "name": "modules", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Modules" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Readiness", "tags": [ "consultant" ] } }, "/api/ready": { "get": { "description": "Readiness: DB migrated, run worker alive, vault key present; 503 otherwise (the desktop app waits on this).\nneeds_bootstrap=true means no user exists yet (create one with `fpt.cmd create-user`).", "operationId": "ready_api_ready_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Ready", "tags": [ "admin" ] } }, "/api/recordings": { "post": { "description": "Convert a recording and create a draft scenario from it: not approved, not in the script library. It then goes the\nnormal custom scenario way (build = dry run on a pod, then a person approves).", "operationId": "create_api_recordings_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DraftOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create", "tags": [ "recordings" ] } }, "/api/recordings/preview": { "post": { "description": "What a recording converts to, with what was dropped and flagged. Nothing is created.", "operationId": "preview_api_recordings_preview_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Converted" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Preview", "tags": [ "recordings" ] } }, "/api/runs": { "get": { "operationId": "list_runs_api_runs_get", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 500, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_RunSummary_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "List Runs", "tags": [ "runs" ] }, "post": { "operationId": "start_run_api_runs_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunCreate" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunCreated" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Start Run", "tags": [ "runs" ] } }, "/api/runs.csv": { "get": { "description": "Every test run as a CSV file (newest first) for spreadsheets and status reports. No evidence or credentials.", "operationId": "export_runs_api_runs_csv_get", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Export Runs", "tags": [ "runs" ] } }, "/api/runs/{run_id}": { "get": { "operationId": "run_detail_api_runs__run_id__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunDetail" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Detail", "tags": [ "runs" ] } }, "/api/runs/{run_id}/cancel": { "post": { "operationId": "cancel_run_api_runs__run_id__cancel_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancelIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Cancel Run", "tags": [ "runs" ] } }, "/api/runs/{run_id}/cases": { "get": { "operationId": "run_cases_api_runs__run_id__cases_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Cases", "tags": [ "runs" ] } }, "/api/runs/{run_id}/data-plan": { "get": { "operationId": "run_data_api_runs__run_id__data_plan_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Data", "tags": [ "runs" ] } }, "/api/runs/{run_id}/events": { "get": { "operationId": "run_events_api_runs__run_id__events_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "query", "name": "after", "required": false, "schema": { "default": 0, "title": "After", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/RunEvent" }, "title": "Response Run Events Api Runs Run Id Events Get", "type": "array" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Events", "tags": [ "runs" ] } }, "/api/runs/{run_id}/evidence": { "delete": { "description": "Administrator: remove all screenshots, videos and traces of one run now. Cannot be undone.", "operationId": "delete_run_evidence_api_runs__run_id__evidence_delete", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Delete Run Evidence", "tags": [ "runs" ] }, "get": { "operationId": "run_evidence_api_runs__run_id__evidence_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Evidence", "tags": [ "runs" ] } }, "/api/runs/{run_id}/failures": { "get": { "description": "Failed or flaky scenarios in business words: process step, expected vs actual, screenshot ids, suggestion.", "operationId": "run_failures_api_runs__run_id__failures_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Failures", "tags": [ "consultant" ] } }, "/api/runs/{run_id}/gate": { "get": { "operationId": "run_gate_api_runs__run_id__gate_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Gate", "tags": [ "runs" ] } }, "/api/runs/{run_id}/gates/approve_cases": { "post": { "operationId": "approve_cases_api_runs__run_id__gates_approve_cases_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveCasesIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Approve Cases", "tags": [ "gates" ] } }, "/api/runs/{run_id}/gates/human_review": { "post": { "operationId": "human_review_api_runs__run_id__gates_human_review_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanReviewIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Human Review", "tags": [ "gates" ] } }, "/api/runs/{run_id}/heals": { "get": { "description": "What a run healed (steps that found their control under a new name) and the controls it could not find.", "operationId": "run_heals_api_runs__run_id__heals_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Heals", "tags": [ "heals" ] } }, "/api/runs/{run_id}/live": { "get": { "operationId": "live_status_api_runs__run_id__live_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Live Status", "tags": [ "live" ] } }, "/api/runs/{run_id}/live/failed": { "get": { "operationId": "live_failed_frame_api_runs__run_id__live_failed_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Live Failed Frame", "tags": [ "live" ] } }, "/api/runs/{run_id}/live/stream": { "get": { "operationId": "live_stream_api_runs__run_id__live_stream_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Live Stream", "tags": [ "live" ] } }, "/api/runs/{run_id}/notes": { "post": { "description": "A human note on a run: stored in the append-only audit log and shown in the run's activity feed (run event).", "operationId": "run_note_api_runs__run_id__notes_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunNoteIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Note", "tags": [ "runs" ] } }, "/api/runs/{run_id}/readiness": { "get": { "operationId": "run_readiness_api_runs__run_id__readiness_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Readiness", "tags": [ "consultant" ] } }, "/api/runs/{run_id}/report": { "get": { "operationId": "run_report_api_runs__run_id__report_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Report", "tags": [ "runs" ] } }, "/api/runs/{run_id}/report/{module}/{fmt}": { "get": { "operationId": "run_report_file_api_runs__run_id__report__module___fmt__get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "path", "name": "module", "required": true, "schema": { "title": "Module", "type": "string" } }, { "in": "path", "name": "fmt", "required": true, "schema": { "title": "Fmt", "type": "string" } }, { "in": "query", "name": "download", "required": false, "schema": { "default": false, "title": "Download", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Report File", "tags": [ "runs" ] } }, "/api/runs/{run_id}/research": { "get": { "operationId": "run_research_api_runs__run_id__research_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Research", "tags": [ "runs" ] } }, "/api/runs/{run_id}/results": { "get": { "operationId": "run_results_api_runs__run_id__results_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Results", "tags": [ "runs" ] } }, "/api/runs/{run_id}/resume": { "post": { "operationId": "resume_run_api_runs__run_id__resume_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Resume Run", "tags": [ "runs" ] } }, "/api/runs/{run_id}/scenarios": { "get": { "description": "Every scenario of the test run in plain language (steps, role, test data, expected result, why it is included).", "operationId": "run_scenarios_api_runs__run_id__scenarios_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Scenarios", "tags": [ "consultant" ] } }, "/api/runs/{run_id}/scripts": { "get": { "operationId": "run_scripts_api_runs__run_id__scripts_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Scripts", "tags": [ "runs" ] } }, "/api/runs/{run_id}/sign-in": { "get": { "operationId": "sign_in_status_api_runs__run_id__sign_in_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInStatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Sign In Status", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/sign-in/cancel": { "post": { "operationId": "session_cancel_api_runs__run_id__sign_in_cancel_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInSessionIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInStatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Session Cancel", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/sign-in/finish": { "post": { "operationId": "session_finish_api_runs__run_id__sign_in_finish_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInSessionIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInStatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Session Finish", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/sign-in/frame": { "get": { "operationId": "session_frame_api_runs__run_id__sign_in_frame_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Session Frame", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/sign-in/input": { "post": { "operationId": "session_input_api_runs__run_id__sign_in_input_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInInputIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInAccepted" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Session Input", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/sign-in/session": { "post": { "operationId": "open_session_api_runs__run_id__sign_in_session_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignInStatusOut" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Open Session", "tags": [ "sign-in" ] } }, "/api/runs/{run_id}/signoff": { "get": { "operationId": "get_signoff_api_runs__run_id__signoff_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Signoff", "tags": [ "consultant" ] }, "post": { "description": "Records that a QA approver signed off the finished test run. It does NOT change the decision (that stays the QA\nrule's result in generate_report.py); it is an audit entry and a run note.", "operationId": "signoff_api_runs__run_id__signoff_post", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignOffIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Signoff", "tags": [ "consultant" ] } }, "/api/runs/{run_id}/stream": { "get": { "description": "Server-Sent Events: every run event (node started/finished/interrupted/error, status changes). Ends when the run\nreaches a terminal status. Clients fall back to polling /events.", "operationId": "run_stream_api_runs__run_id__stream_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "query", "name": "after", "required": false, "schema": { "default": 0, "title": "After", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Stream", "tags": [ "runs" ] } }, "/api/runs/{run_id}/temporal": { "get": { "description": "Admin: the run's Temporal workflow (status, query result, Temporal Web UI link).", "operationId": "run_temporal_api_runs__run_id__temporal_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Temporal", "tags": [ "runs" ] } }, "/api/runs/{run_id}/test-script.xlsx": { "get": { "operationId": "run_test_script_api_runs__run_id__test_script_xlsx_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Run Test Script", "tags": [ "consultant" ] } }, "/api/scenarios": { "get": { "description": "The scenario library by business process: filter by module, process step, priority or text.", "operationId": "scenarios_api_scenarios_get", "parameters": [ { "in": "query", "name": "module", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Module" } }, { "in": "query", "name": "step", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Step" } }, { "in": "query", "name": "priority", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Priority" } }, { "in": "query", "name": "q", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Q" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 500, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Scenarios", "tags": [ "consultant" ] } }, "/api/scenarios/{case_id}": { "get": { "operationId": "scenario_api_scenarios__case_id__get", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "string" } }, { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Scenario", "tags": [ "consultant" ] } }, "/api/scenarios/{case_id}/reinstate": { "post": { "description": "Put a retired scenario back into the regression pack.", "operationId": "reinstate_scenario_api_scenarios__case_id__reinstate_post", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Reinstate Scenario", "tags": [ "consultant" ] } }, "/api/scenarios/{case_id}/retire": { "post": { "description": "Take an approved scenario out of the regression pack, with the reason (a person decides; runs skip it).", "operationId": "retire_scenario_api_scenarios__case_id__retire_post", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RetireIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Retire Scenario", "tags": [ "consultant" ] } }, "/api/schedules": { "get": { "operationId": "schedules_api_schedules_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ScheduleRow" }, "title": "Response Schedules Api Schedules Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "Schedules", "tags": [ "admin" ] }, "post": { "operationId": "schedule_create_api_schedules_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScheduleIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScheduleRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Schedule Create", "tags": [ "admin" ] } }, "/api/schedules/{sid}": { "delete": { "operationId": "schedule_delete_api_schedules__sid__delete", "parameters": [ { "in": "path", "name": "sid", "required": true, "schema": { "title": "Sid", "type": "integer" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Schedule Delete", "tags": [ "admin" ] }, "patch": { "description": "Edit a schedule, or pause / resume it with {\"enabled\": false|true}. Only the fields sent change.", "operationId": "schedule_update_api_schedules__sid__patch", "parameters": [ { "in": "path", "name": "sid", "required": true, "schema": { "title": "Sid", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScheduleUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScheduleRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Schedule Update", "tags": [ "admin" ] } }, "/api/screens": { "get": { "operationId": "list_screens_api_screens_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ScreenSummary" }, "title": "Response List Screens Api Screens Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "List Screens", "tags": [ "screens" ] } }, "/api/screens/{slug}": { "get": { "operationId": "get_screen_api_screens__slug__get", "parameters": [ { "in": "path", "name": "slug", "required": true, "schema": { "title": "Slug", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenInventory" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Screen", "tags": [ "screens" ] } }, "/api/share/runs/{run_id}/test-script.xlsx": { "get": { "description": "The same workbook from a signed link (platform/links.py) in an e-mail Oracle Fusion sends: no login, this run only,\nread-only, until the link expires.", "operationId": "shared_test_script_api_share_runs__run_id__test_script_xlsx_get", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "query", "name": "exp", "required": true, "schema": { "title": "Exp", "type": "integer" } }, { "in": "query", "name": "sig", "required": true, "schema": { "maxLength": 80, "title": "Sig", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Shared Test Script", "tags": [ "consultant" ] } }, "/api/storage": { "get": { "description": "Administrator: what the saved state holds and how the last save went (with the error text), the retention\nsettings and the last clean-up.", "operationId": "storage_api_storage_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Storage", "tags": [ "admin" ] } }, "/api/storage/save": { "post": { "description": "Administrator: save the state now and answer when it is saved. Call it before a restart or a deploy, so nothing\nsince the last periodic save is lost (409 when this server does not save its state).", "operationId": "save_storage_now_api_storage_save_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Save Storage Now", "tags": [ "admin" ] } }, "/api/tickets": { "get": { "operationId": "tickets_list_api_tickets_get", "parameters": [ { "in": "query", "name": "run_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Tickets List", "tags": [ "review" ] } }, "/api/tickets/{ticket_id}": { "get": { "operationId": "ticket_get_api_tickets__ticket_id__get", "parameters": [ { "in": "path", "name": "ticket_id", "required": true, "schema": { "title": "Ticket Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Ticket Get", "tags": [ "review" ] } }, "/api/tokens": { "get": { "operationId": "my_tokens_api_tokens_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TokenView" }, "title": "Response My Tokens Api Tokens Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "My Tokens", "tags": [ "tokens" ] }, "post": { "operationId": "create_token_api_tokens_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenIn" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenCreated" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create Token", "tags": [ "tokens" ] } }, "/api/tokens/{token_id}": { "delete": { "operationId": "revoke_token_api_tokens__token_id__delete", "parameters": [ { "in": "path", "name": "token_id", "required": true, "schema": { "title": "Token Id", "type": "integer" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Revoke Token", "tags": [ "tokens" ] } }, "/api/users": { "get": { "operationId": "users_api_users_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/UserRow" }, "title": "Response Users Api Users Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "Users", "tags": [ "admin" ] }, "post": { "operationId": "user_create_api_users_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserCreate" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "User Create", "tags": [ "admin" ] } }, "/api/users/{uid}": { "patch": { "operationId": "user_update_api_users__uid__patch", "parameters": [ { "in": "path", "name": "uid", "required": true, "schema": { "title": "Uid", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserRow" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "User Update", "tags": [ "admin" ] } }, "/oauth/token": { "post": { "description": "Form (application/x-www-form-urlencoded) or JSON: grant_type=client_credentials, client_id, client_secret\n(or HTTP Basic), scope=patchwise.invoke (optional).", "operationId": "token_oauth_token_post", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "OAuth 2.0 token (client credentials, scope patchwise.invoke)", "tags": [ "agent-studio" ] } } } }
{
"components": {
"schemas": {
"AckIn": {
"properties": {
"delivery_ids": {
"items": {
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"title": "Delivery Ids",
"type": "array"
}
},
"required": [
"delivery_ids"
],
"title": "AckIn",
"type": "object"
},
"ApprovalIn": {
"properties": {
"approved_by": {
"description": "who decided, in Fusion",
"maxLength": 120,
"minLength": 1,
"title": "Approved By",
"type": "string"
},
"comment": {
"anyOf": [
{
"maxLength": 300,
"type": "string"
},
{
"type": "null"
}
],
"title": "Comment"
},
"decision": {
"enum": [
"approve",
"reject"
],
"title": "Decision",
"type": "string"
},
"scenario_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "approve only these; all scenarios otherwise",
"title": "Scenario Ids"
}
},
"required": [
"decision",
"approved_by"
],
"title": "ApprovalIn",
"type": "object"
},
"ApproveCasesIn": {
"additionalProperties": false,
"properties": {
"approved": {
"items": {
"type": "string"
},
"title": "Approved",
"type": "array"
},
"comments": {
"additionalProperties": {
"type": "string"
},
"title": "Comments",
"type": "object"
},
"rejected": {
"items": {
"type": "string"
},
"title": "Rejected",
"type": "array"
}
},
"title": "ApproveCasesIn",
"type": "object"