{ "openapi": "3.1.0", "info": { "title": "AGENA AI Agent SaaS", "version": "0.1.0" }, "paths": { "/auth/signup": { "post": { "tags": [ "auth" ], "summary": "Signup", "operationId": "signup_auth_signup_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignupRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "operationId": "login_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/auth/me": { "get": { "tags": [ "auth" ], "summary": "Me", "operationId": "me_auth_me_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MeResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/org/invite": { "post": { "tags": [ "organization" ], "summary": "Invite Member", "operationId": "invite_member_org_invite_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InviteRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InviteResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/org/invite/accept": { "post": { "tags": [ "organization" ], "summary": "Accept Invite", "operationId": "accept_invite_org_invite_accept_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcceptInviteRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Accept Invite Org Invite Accept Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/billing/status": { "get": { "tags": [ "billing" ], "summary": "Billing Status", "operationId": "billing_status_billing_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingStatusResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/billing/plan": { "post": { "tags": [ "billing" ], "summary": "Change Plan", "operationId": "change_plan_billing_plan_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanChangeRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BillingStatusResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/billing/stripe/checkout": { "post": { "tags": [ "billing" ], "summary": "Stripe Checkout", "operationId": "stripe_checkout_billing_stripe_checkout_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StripeCheckoutRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StripeCheckoutResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/billing/stripe/webhook": { "post": { "tags": [ "billing" ], "summary": "Stripe Webhook", "operationId": "stripe_webhook_billing_stripe_webhook_post", "parameters": [ { "name": "Stripe-Signature", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Stripe-Signature" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Stripe Webhook Billing Stripe Webhook Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/billing/iyzico/checkout": { "post": { "tags": [ "billing" ], "summary": "Iyzico Checkout", "operationId": "iyzico_checkout_billing_iyzico_checkout_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IyzicoCheckoutRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IyzicoCheckoutResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/billing/iyzico/webhook": { "post": { "tags": [ "billing" ], "summary": "Iyzico Webhook", "operationId": "iyzico_webhook_billing_iyzico_webhook_post", "parameters": [ { "name": "X-IYZICO-Signature", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "X-Iyzico-Signature" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Iyzico Webhook Billing Iyzico Webhook Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/integrations": { "get": { "tags": [ "integrations" ], "summary": "List Integrations", "operationId": "list_integrations_integrations_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/IntegrationConfigResponse" }, "type": "array", "title": "Response List Integrations Integrations Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/integrations/{provider}": { "get": { "tags": [ "integrations" ], "summary": "Get Integration", "operationId": "get_integration_integrations__provider__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "provider", "in": "path", "required": true, "schema": { "type": "string", "title": "Provider" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationConfigResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "integrations" ], "summary": "Upsert Integration", "operationId": "upsert_integration_integrations__provider__put", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "provider", "in": "path", "required": true, "schema": { "type": "string", "title": "Provider" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationConfigUpsertRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IntegrationConfigResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/integrations/playbook/content": { "get": { "tags": [ "integrations" ], "summary": "Get Playbook Content", "operationId": "get_playbook_content_integrations_playbook_content_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaybookContentResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/azure/projects": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure Projects", "operationId": "list_azure_projects_tasks_azure_projects_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Response List Azure Projects Tasks Azure Projects Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/azure/teams": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure Teams", "operationId": "list_azure_teams_tasks_azure_teams_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Azure Teams Tasks Azure Teams Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/azure/sprints": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure Sprints", "operationId": "list_azure_sprints_tasks_azure_sprints_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } }, { "name": "team", "in": "query", "required": true, "schema": { "type": "string", "title": "Team" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Azure Sprints Tasks Azure Sprints Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/azure/sprint/members": { "get": { "tags": [ "external-tasks" ], "summary": "List Sprint Members", "description": "Sprint'te gerçekten iş atanmış kişileri döndürür — fazladan üye gelmez.", "operationId": "list_sprint_members_tasks_azure_sprint_members_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } }, { "name": "team", "in": "query", "required": true, "schema": { "type": "string", "title": "Team" } }, { "name": "sprint_path", "in": "query", "required": true, "schema": { "type": "string", "title": "Sprint Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Sprint Members Tasks Azure Sprint Members Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/azure/members": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure Org Members", "description": "the configured Azure DevOps org genelindeki tüm kullanıcıları döndürür.", "operationId": "list_azure_org_members_tasks_azure_members_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Response List Azure Org Members Tasks Azure Members Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/azure/member/workitems": { "get": { "tags": [ "external-tasks" ], "summary": "List Member Workitems", "description": "Belirli bir kişiye atanmış sprint work item'larını getirir.", "operationId": "list_member_workitems_tasks_azure_member_workitems_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } }, { "name": "team", "in": "query", "required": true, "schema": { "type": "string", "title": "Team" } }, { "name": "sprint_path", "in": "query", "required": true, "schema": { "type": "string", "title": "Sprint Path" } }, { "name": "assigned_to", "in": "query", "required": true, "schema": { "type": "string", "title": "Assigned To" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Member Workitems Tasks Azure Member Workitems Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/azure/repos": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure Repos", "description": "Azure DevOps projesindeki git repolarını listeler.", "operationId": "list_azure_repos_tasks_azure_repos_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Azure Repos Tasks Azure Repos Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/azure/states": { "get": { "tags": [ "external-tasks" ], "summary": "List Azure States", "description": "Sprint'teki work item'lardan gerçek state listesini çeker — hardcode yok.", "operationId": "list_azure_states_tasks_azure_states_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": true, "schema": { "type": "string", "title": "Project" } }, { "name": "team", "in": "query", "required": true, "schema": { "type": "string", "title": "Team" } }, { "name": "sprint_path", "in": "query", "required": true, "schema": { "type": "string", "title": "Sprint Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "string" }, "title": "Response List Azure States Tasks Azure States Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/jira": { "get": { "tags": [ "external-tasks" ], "summary": "Get Jira Tasks", "operationId": "get_jira_tasks_tasks_jira_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/schemas__task__TaskListResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/azure": { "get": { "tags": [ "external-tasks" ], "summary": "Get Azure Tasks", "operationId": "get_azure_tasks_tasks_azure_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "project", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Project" } }, { "name": "team", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team" } }, { "name": "sprint_path", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sprint Path" } }, { "name": "state", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "New", "title": "State" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/schemas__task__TaskListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks": { "get": { "tags": [ "saas-tasks" ], "summary": "List Tasks", "operationId": "list_tasks_tasks_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TaskResponse" }, "type": "array", "title": "Response List Tasks Tasks Get" } } } } }, "security": [ { "HTTPBearer": [] } ] }, "post": { "tags": [ "saas-tasks" ], "summary": "Create Task", "operationId": "create_task_tasks_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskCreateRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/search": { "get": { "tags": [ "saas-tasks" ], "summary": "Search Tasks", "operationId": "search_tasks_tasks_search_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Status" } }, { "name": "q", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Q" } }, { "name": "created_from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created From" } }, { "name": "created_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created To" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 12, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/schemas__saas_task__TaskListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/queue": { "get": { "tags": [ "saas-tasks" ], "summary": "List Queue", "operationId": "list_queue_tasks_queue_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/QueueTaskItem" }, "type": "array", "title": "Response List Queue Tasks Queue Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/import/azure": { "post": { "tags": [ "saas-tasks" ], "summary": "Import Azure Tasks", "operationId": "import_azure_tasks_tasks_import_azure_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AzureImportRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImportTasksResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/import/jira": { "post": { "tags": [ "saas-tasks" ], "summary": "Import Jira Tasks", "operationId": "import_jira_tasks_tasks_import_jira_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImportTasksResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/tasks/{task_id}": { "get": { "tags": [ "saas-tasks" ], "summary": "Get Task", "operationId": "get_task_tasks__task_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/assign": { "post": { "tags": [ "saas-tasks" ], "summary": "Assign Task", "operationId": "assign_task_tasks__task_id__assign_post", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignTaskRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignTaskResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/cancel": { "post": { "tags": [ "saas-tasks" ], "summary": "Cancel Task", "operationId": "cancel_task_tasks__task_id__cancel_post", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/logs": { "get": { "tags": [ "saas-tasks" ], "summary": "Task Logs", "operationId": "task_logs_tasks__task_id__logs_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TaskLogItem" }, "title": "Response Task Logs Tasks Task Id Logs Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/logs/stream": { "get": { "tags": [ "saas-tasks" ], "summary": "Task Logs Stream", "operationId": "task_logs_stream_tasks__task_id__logs_stream_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } }, { "name": "since_id", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "default": 0, "title": "Since Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/usage-events": { "get": { "tags": [ "saas-tasks" ], "summary": "Task Usage Events", "operationId": "task_usage_events_tasks__task_id__usage_events_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/schemas__saas_task__UsageEventItem" }, "title": "Response Task Usage Events Tasks Task Id Usage Events Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/tasks/{task_id}/dependencies": { "get": { "tags": [ "saas-tasks" ], "summary": "Get Task Dependencies", "operationId": "get_task_dependencies_tasks__task_id__dependencies_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "integer" } }, "title": "Response Get Task Dependencies Tasks Task Id Dependencies Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "saas-tasks" ], "summary": "Set Task Dependencies", "operationId": "set_task_dependencies_tasks__task_id__dependencies_put", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskDependencyUpdateRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "integer" } }, "title": "Response Set Task Dependencies Tasks Task Id Dependencies Put" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/agents/run": { "post": { "tags": [ "agents" ], "summary": "Run Agents", "operationId": "run_agents_agents_run_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/flows/run": { "post": { "tags": [ "flows" ], "summary": "Run Flow Endpoint", "description": "Flow'u çalıştır.", "operationId": "run_flow_endpoint_flows_run_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunFlowRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/flows/runs": { "get": { "tags": [ "flows" ], "summary": "List Runs", "description": "Son flow run'larını listele.", "operationId": "list_runs_flows_runs_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "default": 20, "title": "Limit" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RunOut" }, "title": "Response List Runs Flows Runs Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/flows/runs/{run_id}": { "get": { "tags": [ "flows" ], "summary": "Get Run", "operationId": "get_run_flows_runs__run_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "run_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Run Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/flows/templates": { "get": { "tags": [ "flows" ], "summary": "List Templates", "operationId": "list_templates_flows_templates_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/FlowTemplateOut" }, "type": "array", "title": "Response List Templates Flows Templates Get" } } } } }, "security": [ { "HTTPBearer": [] } ] }, "post": { "tags": [ "flows" ], "summary": "Create Template", "operationId": "create_template_flows_templates_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowTemplateIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowTemplateOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/flows/templates/{template_id}": { "put": { "tags": [ "flows" ], "summary": "Update Template", "operationId": "update_template_flows_templates__template_id__put", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "template_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Template Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowTemplateIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowTemplateOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "flows" ], "summary": "Delete Template", "operationId": "delete_template_flows_templates__template_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "template_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Template Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "boolean" }, "title": "Response Delete Template Flows Templates Template Id Delete" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/flows/{flow_id}/versions": { "get": { "tags": [ "flows" ], "summary": "List Versions", "operationId": "list_versions_flows__flow_id__versions_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "flow_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Flow Id" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "default": 30, "title": "Limit" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FlowVersionOut" }, "title": "Response List Versions Flows Flow Id Versions Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "tags": [ "flows" ], "summary": "Create Version", "operationId": "create_version_flows__flow_id__versions_post", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "flow_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Flow Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowVersionIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowVersionOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/flows/{flow_id}/versions/{version_id}": { "get": { "tags": [ "flows" ], "summary": "Get Version", "operationId": "get_version_flows__flow_id__versions__version_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "flow_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Flow Id" } }, { "name": "version_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Version Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlowVersionOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/flows/analytics/agents": { "get": { "tags": [ "flows" ], "summary": "Get Agent Analytics", "operationId": "get_agent_analytics_flows_analytics_agents_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "persist", "in": "query", "required": false, "schema": { "type": "boolean", "default": true, "title": "Persist" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentAnalyticsOut" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/github/pr": { "post": { "tags": [ "github" ], "summary": "Create Pr", "operationId": "create_pr_github_pr_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePRRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePRResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/preferences": { "get": { "tags": [ "preferences" ], "summary": "Get Preferences", "operationId": "get_preferences_preferences_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferenceResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] }, "put": { "tags": [ "preferences" ], "summary": "Save Preferences", "operationId": "save_preferences_preferences_put", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferencePayload" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreferenceResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/preferences/repo-profile/scan": { "post": { "tags": [ "preferences" ], "summary": "Scan Repo Profile", "operationId": "scan_repo_profile_preferences_repo_profile_scan_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepoProfileScanRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepoProfileScanResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/preferences/repo-profile/agents/{mapping_id}": { "get": { "tags": [ "preferences" ], "summary": "Get Repo Agents Doc", "operationId": "get_repo_agents_doc_preferences_repo_profile_agents__mapping_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "mapping_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Mapping Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepoAgentsDocResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "preferences" ], "summary": "Save Repo Agents Doc", "operationId": "save_repo_agents_doc_preferences_repo_profile_agents__mapping_id__put", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "mapping_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Mapping Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepoAgentsDocUpdateRequest" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepoAgentsDocResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/notifications": { "get": { "tags": [ "notifications" ], "summary": "List Notifications", "operationId": "list_notifications_notifications_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 15, "title": "Limit" } }, { "name": "only_unread", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Only Unread" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Page Size" } }, { "name": "event_type", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Event Type" } }, { "name": "read_status", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Read Status" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "notifications" ], "summary": "Clear Notifications", "operationId": "clear_notifications_notifications_delete", "security": [ { "HTTPBearer": [] } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "integer" }, "title": "Response Clear Notifications Notifications Delete" } } } } } } }, "/notifications/event": { "post": { "tags": [ "notifications" ], "summary": "Create Notification Event", "operationId": "create_notification_event_notifications_event_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationEventPayload" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "boolean" }, "type": "object", "title": "Response Create Notification Event Notifications Event Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/notifications/{notification_id}/read": { "post": { "tags": [ "notifications" ], "summary": "Mark Notification Read", "operationId": "mark_notification_read_notifications__notification_id__read_post", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "notification_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Notification Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "boolean" }, "title": "Response Mark Notification Read Notifications Notification Id Read Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/notifications/read-all": { "post": { "tags": [ "notifications" ], "summary": "Mark All Notifications Read", "operationId": "mark_all_notifications_read_notifications_read_all_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "integer" }, "type": "object", "title": "Response Mark All Notifications Read Notifications Read All Post" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/usage-events": { "get": { "tags": [ "usage-events" ], "summary": "List Usage Events", "operationId": "list_usage_events_usage_events_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "operation_type", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Operation Type" } }, { "name": "provider", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Provider" } }, { "name": "status", "in": "query", "required": false, "schema": { "type": "string", "default": "all", "title": "Status" } }, { "name": "task_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Task Id" } }, { "name": "created_from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created From" } }, { "name": "created_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created To" } }, { "name": "mine_only", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Mine Only" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 20, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UsageEventListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/memory/status": { "get": { "tags": [ "memory" ], "summary": "Memory backend status", "description": "Shows Qdrant vector memory backend status used by the fetch_context stage. Useful to verify whether memory is enabled, which collection is used, and current vector counts.", "operationId": "memory_status_memory_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryStatusResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/memory/schema": { "get": { "tags": [ "memory" ], "summary": "Memory payload schema and usage", "description": "Documents what is stored in Qdrant memory payloads, how retrieval is performed, and where memory is injected into orchestration prompts.", "operationId": "memory_schema_memory_schema_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemorySchemaResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/health": { "get": { "summary": "Health", "operationId": "health_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Health Health Get" } } } } } } } }, "components": { "schemas": { "AcceptInviteRequest": { "properties": { "token": { "type": "string", "title": "Token" } }, "type": "object", "required": [ "token" ], "title": "AcceptInviteRequest" }, "AgentAnalyticsOut": { "properties": { "snapshot_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Snapshot Id" }, "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "data": { "additionalProperties": true, "type": "object", "title": "Data" } }, "type": "object", "required": [ "snapshot_id", "created_at", "data" ], "title": "AgentAnalyticsOut" }, "AgentRunRequest": { "properties": { "task": { "$ref": "#/components/schemas/ExternalTask" }, "create_pr": { "type": "boolean", "title": "Create Pr", "default": true }, "async_mode": { "type": "boolean", "title": "Async Mode", "default": true } }, "type": "object", "required": [ "task" ], "title": "AgentRunRequest" }, "AgentRunResponse": { "properties": { "status": { "type": "string", "title": "Status" }, "queue_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Queue Key" }, "result": { "anyOf": [ { "$ref": "#/components/schemas/AgentRunResult" }, { "type": "null" } ] } }, "type": "object", "required": [ "status" ], "title": "AgentRunResponse" }, "AgentRunResult": { "properties": { "task_id": { "type": "string", "title": "Task Id" }, "spec": { "additionalProperties": true, "type": "object", "title": "Spec" }, "generated_code": { "type": "string", "title": "Generated Code" }, "reviewed_code": { "type": "string", "title": "Reviewed Code" }, "usage": { "$ref": "#/components/schemas/UsageStats" }, "pr_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pr Url" } }, "type": "object", "required": [ "task_id", "spec", "generated_code", "reviewed_code", "usage" ], "title": "AgentRunResult" }, "AssignTaskRequest": { "properties": { "create_pr": { "type": "boolean", "title": "Create Pr", "default": true } }, "type": "object", "title": "AssignTaskRequest" }, "AssignTaskResponse": { "properties": { "queued": { "type": "boolean", "title": "Queued" }, "queue_key": { "type": "string", "title": "Queue Key" } }, "type": "object", "required": [ "queued", "queue_key" ], "title": "AssignTaskResponse" }, "AuthResponse": { "properties": { "access_token": { "type": "string", "title": "Access Token" }, "token_type": { "type": "string", "title": "Token Type", "default": "bearer" }, "user_id": { "type": "integer", "title": "User Id" }, "organization_id": { "type": "integer", "title": "Organization Id" }, "full_name": { "type": "string", "title": "Full Name", "default": "" }, "email": { "type": "string", "title": "Email", "default": "" } }, "type": "object", "required": [ "access_token", "user_id", "organization_id" ], "title": "AuthResponse" }, "AzureImportRequest": { "properties": { "project": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Project" }, "team": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team" }, "sprint_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sprint Path" }, "state": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "State", "default": "New" } }, "type": "object", "title": "AzureImportRequest" }, "BillingStatusResponse": { "properties": { "plan_name": { "type": "string", "title": "Plan Name" }, "status": { "type": "string", "title": "Status" }, "tasks_used": { "type": "integer", "title": "Tasks Used" }, "tokens_used": { "type": "integer", "title": "Tokens Used" } }, "type": "object", "required": [ "plan_name", "status", "tasks_used", "tokens_used" ], "title": "BillingStatusResponse" }, "CreatePRRequest": { "properties": { "branch_name": { "type": "string", "title": "Branch Name" }, "title": { "type": "string", "title": "Title" }, "body": { "type": "string", "title": "Body" }, "base_branch": { "type": "string", "title": "Base Branch", "default": "main" }, "commit_message": { "type": "string", "title": "Commit Message", "default": "feat: add generated code" }, "files": { "items": { "$ref": "#/components/schemas/GitHubFileChange" }, "type": "array", "title": "Files" } }, "type": "object", "required": [ "branch_name", "title", "body" ], "title": "CreatePRRequest" }, "CreatePRResponse": { "properties": { "pr_url": { "type": "string", "title": "Pr Url" }, "branch_name": { "type": "string", "title": "Branch Name" } }, "type": "object", "required": [ "pr_url", "branch_name" ], "title": "CreatePRResponse" }, "ExternalTask": { "properties": { "id": { "type": "string", "title": "Id" }, "title": { "type": "string", "title": "Title" }, "description": { "type": "string", "title": "Description", "default": "" }, "source": { "type": "string", "title": "Source" }, "assigned_to": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Assigned To" }, "created_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created Date" }, "activated_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Activated Date" } }, "type": "object", "required": [ "id", "title", "source" ], "title": "ExternalTask" }, "FlowTemplateIn": { "properties": { "name": { "type": "string", "title": "Name" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "flow": { "additionalProperties": true, "type": "object", "title": "Flow" } }, "type": "object", "required": [ "name", "flow" ], "title": "FlowTemplateIn" }, "FlowTemplateOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "flow": { "additionalProperties": true, "type": "object", "title": "Flow" }, "created_at": { "type": "string", "title": "Created At" }, "updated_at": { "type": "string", "title": "Updated At" } }, "type": "object", "required": [ "id", "name", "description", "flow", "created_at", "updated_at" ], "title": "FlowTemplateOut" }, "FlowVersionIn": { "properties": { "flow_name": { "type": "string", "title": "Flow Name" }, "label": { "type": "string", "title": "Label" }, "flow": { "additionalProperties": true, "type": "object", "title": "Flow" } }, "type": "object", "required": [ "flow_name", "label", "flow" ], "title": "FlowVersionIn" }, "FlowVersionOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "flow_id": { "type": "string", "title": "Flow Id" }, "flow_name": { "type": "string", "title": "Flow Name" }, "label": { "type": "string", "title": "Label" }, "flow": { "additionalProperties": true, "type": "object", "title": "Flow" }, "created_at": { "type": "string", "title": "Created At" } }, "type": "object", "required": [ "id", "flow_id", "flow_name", "label", "flow", "created_at" ], "title": "FlowVersionOut" }, "GitHubFileChange": { "properties": { "path": { "type": "string", "title": "Path" }, "content": { "type": "string", "title": "Content" } }, "type": "object", "required": [ "path", "content" ], "title": "GitHubFileChange" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "ImportTasksResponse": { "properties": { "imported": { "type": "integer", "title": "Imported" }, "skipped": { "type": "integer", "title": "Skipped" } }, "type": "object", "required": [ "imported", "skipped" ], "title": "ImportTasksResponse" }, "IntegrationConfigResponse": { "properties": { "provider": { "type": "string", "title": "Provider" }, "base_url": { "type": "string", "title": "Base Url" }, "project": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Project" }, "username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Username" }, "has_secret": { "type": "boolean", "title": "Has Secret" }, "secret_preview": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Secret Preview" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" } }, "type": "object", "required": [ "provider", "base_url", "has_secret", "updated_at" ], "title": "IntegrationConfigResponse" }, "IntegrationConfigUpsertRequest": { "properties": { "base_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Base Url" }, "project": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Project" }, "username": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Username" }, "secret": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Secret" } }, "type": "object", "title": "IntegrationConfigUpsertRequest" }, "InviteRequest": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" } }, "type": "object", "required": [ "email" ], "title": "InviteRequest" }, "InviteResponse": { "properties": { "invite_token": { "type": "string", "title": "Invite Token" }, "status": { "type": "string", "title": "Status" } }, "type": "object", "required": [ "invite_token", "status" ], "title": "InviteResponse" }, "IyzicoCheckoutRequest": { "properties": { "plan_name": { "type": "string", "title": "Plan Name", "default": "pro" }, "callback_url": { "type": "string", "title": "Callback Url" } }, "type": "object", "required": [ "callback_url" ], "title": "IyzicoCheckoutRequest" }, "IyzicoCheckoutResponse": { "properties": { "checkout_form_content": { "type": "string", "title": "Checkout Form Content" } }, "type": "object", "required": [ "checkout_form_content" ], "title": "IyzicoCheckoutResponse" }, "LoginRequest": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "title": "Password" } }, "type": "object", "required": [ "email", "password" ], "title": "LoginRequest" }, "MeResponse": { "properties": { "user_id": { "type": "integer", "title": "User Id" }, "email": { "type": "string", "title": "Email" }, "full_name": { "type": "string", "title": "Full Name" }, "organization_id": { "type": "integer", "title": "Organization Id" } }, "type": "object", "required": [ "user_id", "email", "full_name", "organization_id" ], "title": "MeResponse" }, "MemorySchemaResponse": { "properties": { "purpose": { "type": "string", "title": "Purpose" }, "what_is_stored": { "additionalProperties": { "type": "string" }, "type": "object", "title": "What Is Stored" }, "retrieval_flow": { "items": { "type": "string" }, "type": "array", "title": "Retrieval Flow" }, "constraints": { "items": { "type": "string" }, "type": "array", "title": "Constraints" }, "privacy_scope": { "type": "string", "title": "Privacy Scope" } }, "type": "object", "required": [ "purpose", "what_is_stored", "retrieval_flow", "constraints", "privacy_scope" ], "title": "MemorySchemaResponse" }, "MemoryStatusResponse": { "properties": { "enabled": { "type": "boolean", "title": "Enabled" }, "backend": { "type": "string", "title": "Backend" }, "collection": { "type": "string", "title": "Collection" }, "embedding_mode": { "type": "string", "title": "Embedding Mode" }, "vector_size": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Vector Size" }, "distance": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Distance" }, "tenant_filtering": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Tenant Filtering" }, "points_count": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Points Count" }, "vectors_count": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Vectors Count" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Url" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" } }, "type": "object", "required": [ "enabled", "backend", "collection", "embedding_mode" ], "title": "MemoryStatusResponse" }, "NotificationEventPayload": { "properties": { "event_type": { "type": "string", "title": "Event Type" }, "title": { "type": "string", "title": "Title" }, "message": { "type": "string", "title": "Message" }, "severity": { "type": "string", "title": "Severity", "default": "info" }, "task_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Task Id" } }, "type": "object", "required": [ "event_type", "title", "message" ], "title": "NotificationEventPayload" }, "NotificationItem": { "properties": { "id": { "type": "integer", "title": "Id" }, "task_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Task Id" }, "event_type": { "type": "string", "title": "Event Type" }, "title": { "type": "string", "title": "Title" }, "message": { "type": "string", "title": "Message" }, "severity": { "type": "string", "title": "Severity" }, "is_read": { "type": "boolean", "title": "Is Read" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "task_id", "event_type", "title", "message", "severity", "is_read", "created_at" ], "title": "NotificationItem" }, "NotificationListResponse": { "properties": { "unread_count": { "type": "integer", "title": "Unread Count" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "page_size": { "type": "integer", "title": "Page Size" }, "items": { "items": { "$ref": "#/components/schemas/NotificationItem" }, "type": "array", "title": "Items" } }, "type": "object", "required": [ "unread_count", "total", "page", "page_size", "items" ], "title": "NotificationListResponse" }, "PlanChangeRequest": { "properties": { "plan_name": { "type": "string", "title": "Plan Name" } }, "type": "object", "required": [ "plan_name" ], "title": "PlanChangeRequest" }, "PlaybookContentResponse": { "properties": { "content": { "type": "string", "title": "Content" } }, "type": "object", "required": [ "content" ], "title": "PlaybookContentResponse" }, "PreferencePayload": { "properties": { "azure_project": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Project" }, "azure_team": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Team" }, "azure_sprint_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Sprint Path" }, "my_team": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "My Team" }, "agents": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "Agents" }, "flows": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "Flows" }, "repo_mappings": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "Repo Mappings" }, "profile_settings": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Profile Settings" } }, "type": "object", "title": "PreferencePayload" }, "PreferenceResponse": { "properties": { "azure_project": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Project" }, "azure_team": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Team" }, "azure_sprint_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Sprint Path" }, "my_team": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "My Team" }, "agents": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Agents" }, "flows": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Flows" }, "repo_mappings": { "items": { "additionalProperties": true, "type": "object" }, "type": "array", "title": "Repo Mappings" }, "profile_settings": { "additionalProperties": true, "type": "object", "title": "Profile Settings" } }, "type": "object", "required": [ "azure_project", "azure_team", "azure_sprint_path", "my_team", "agents", "flows", "repo_mappings", "profile_settings" ], "title": "PreferenceResponse" }, "QueueTaskItem": { "properties": { "task_id": { "type": "integer", "title": "Task Id" }, "title": { "type": "string", "title": "Title" }, "status": { "type": "string", "title": "Status" }, "position": { "type": "integer", "title": "Position" }, "create_pr": { "type": "boolean", "title": "Create Pr" }, "source": { "type": "string", "title": "Source" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "task_id", "title", "status", "position", "create_pr", "source", "created_at" ], "title": "QueueTaskItem" }, "RepoAgentsDocResponse": { "properties": { "mapping_id": { "type": "string", "title": "Mapping Id" }, "agents_md_path": { "type": "string", "title": "Agents Md Path" }, "content": { "type": "string", "title": "Content" } }, "type": "object", "required": [ "mapping_id", "agents_md_path", "content" ], "title": "RepoAgentsDocResponse" }, "RepoAgentsDocUpdateRequest": { "properties": { "content": { "type": "string", "title": "Content" } }, "type": "object", "required": [ "content" ], "title": "RepoAgentsDocUpdateRequest" }, "RepoProfileScanRequest": { "properties": { "mapping_id": { "type": "string", "title": "Mapping Id" }, "mapping_name": { "type": "string", "title": "Mapping Name" }, "local_path": { "type": "string", "title": "Local Path" }, "azure_repo_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Azure Repo Name" }, "preferred_provider": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Preferred Provider" } }, "type": "object", "required": [ "mapping_id", "mapping_name", "local_path" ], "title": "RepoProfileScanRequest" }, "RepoProfileScanResponse": { "properties": { "mapping_id": { "type": "string", "title": "Mapping Id" }, "profile": { "additionalProperties": true, "type": "object", "title": "Profile" } }, "type": "object", "required": [ "mapping_id", "profile" ], "title": "RepoProfileScanResponse" }, "RunFlowRequest": { "properties": { "flow_id": { "type": "string", "title": "Flow Id" }, "task": { "additionalProperties": true, "type": "object", "title": "Task" } }, "type": "object", "required": [ "flow_id", "task" ], "title": "RunFlowRequest" }, "RunOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "flow_id": { "type": "string", "title": "Flow Id" }, "flow_name": { "type": "string", "title": "Flow Name" }, "task_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Task Id" }, "task_title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Task Title" }, "status": { "type": "string", "title": "Status" }, "started_at": { "type": "string", "title": "Started At" }, "finished_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Finished At" }, "steps": { "items": { "$ref": "#/components/schemas/StepOut" }, "type": "array", "title": "Steps" } }, "type": "object", "required": [ "id", "flow_id", "flow_name", "task_id", "task_title", "status", "started_at", "finished_at", "steps" ], "title": "RunOut" }, "SignupRequest": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "full_name": { "type": "string", "title": "Full Name" }, "password": { "type": "string", "title": "Password" }, "organization_name": { "type": "string", "title": "Organization Name" } }, "type": "object", "required": [ "email", "full_name", "password", "organization_name" ], "title": "SignupRequest" }, "StepOut": { "properties": { "id": { "type": "integer", "title": "Id" }, "node_id": { "type": "string", "title": "Node Id" }, "node_type": { "type": "string", "title": "Node Type" }, "node_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Node Label" }, "status": { "type": "string", "title": "Status" }, "output": { "title": "Output" }, "error_msg": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Msg" }, "started_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Started At" }, "finished_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Finished At" } }, "type": "object", "required": [ "id", "node_id", "node_type", "node_label", "status", "output", "error_msg", "started_at", "finished_at" ], "title": "StepOut" }, "StripeCheckoutRequest": { "properties": { "success_url": { "type": "string", "title": "Success Url" }, "cancel_url": { "type": "string", "title": "Cancel Url" } }, "type": "object", "required": [ "success_url", "cancel_url" ], "title": "StripeCheckoutRequest" }, "StripeCheckoutResponse": { "properties": { "checkout_url": { "type": "string", "title": "Checkout Url" } }, "type": "object", "required": [ "checkout_url" ], "title": "StripeCheckoutResponse" }, "TaskCreateRequest": { "properties": { "title": { "type": "string", "title": "Title" }, "description": { "type": "string", "title": "Description" }, "story_context": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Story Context" }, "acceptance_criteria": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Acceptance Criteria" }, "edge_cases": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Edge Cases" }, "max_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Max Tokens" }, "max_cost_usd": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Max Cost Usd" } }, "type": "object", "required": [ "title", "description" ], "title": "TaskCreateRequest" }, "TaskDependencyUpdateRequest": { "properties": { "depends_on_task_ids": { "items": { "type": "integer" }, "type": "array", "title": "Depends On Task Ids" } }, "type": "object", "required": [ "depends_on_task_ids" ], "title": "TaskDependencyUpdateRequest" }, "TaskLogItem": { "properties": { "id": { "type": "integer", "title": "Id" }, "stage": { "type": "string", "title": "Stage" }, "message": { "type": "string", "title": "Message" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "stage", "message", "created_at" ], "title": "TaskLogItem" }, "TaskResponse": { "properties": { "id": { "type": "integer", "title": "Id" }, "title": { "type": "string", "title": "Title" }, "description": { "type": "string", "title": "Description" }, "story_context": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Story Context" }, "acceptance_criteria": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Acceptance Criteria" }, "edge_cases": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Edge Cases" }, "max_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Max Tokens" }, "max_cost_usd": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Max Cost Usd" }, "source": { "type": "string", "title": "Source" }, "status": { "type": "string", "title": "Status" }, "pr_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pr Url" }, "branch_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Branch Name" }, "failure_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Failure Reason" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "duration_sec": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Duration Sec" }, "run_duration_sec": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Run Duration Sec" }, "queue_wait_sec": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Queue Wait Sec" }, "retry_count": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Retry Count" }, "queue_position": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Queue Position" }, "estimated_start_sec": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Estimated Start Sec" }, "lock_scope": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lock Scope" }, "blocked_by_task_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Blocked By Task Id" }, "blocked_by_task_title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Blocked By Task Title" }, "dependency_blockers": { "items": { "type": "integer" }, "type": "array", "title": "Dependency Blockers" }, "dependent_task_ids": { "items": { "type": "integer" }, "type": "array", "title": "Dependent Task Ids" }, "pr_risk_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Pr Risk Score" }, "pr_risk_level": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pr Risk Level" }, "pr_risk_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pr Risk Reason" }, "total_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Total Tokens" } }, "type": "object", "required": [ "id", "title", "description", "source", "status", "created_at" ], "title": "TaskResponse" }, "UsageEventListResponse": { "properties": { "page": { "type": "integer", "title": "Page" }, "page_size": { "type": "integer", "title": "Page Size" }, "total": { "type": "integer", "title": "Total" }, "summary": { "$ref": "#/components/schemas/UsageSummary" }, "items": { "items": { "$ref": "#/components/schemas/api__routes__usage_events__UsageEventItem" }, "type": "array", "title": "Items" } }, "type": "object", "required": [ "page", "page_size", "total", "summary", "items" ], "title": "UsageEventListResponse" }, "UsageStats": { "properties": { "prompt_tokens": { "type": "integer", "title": "Prompt Tokens", "default": 0 }, "completion_tokens": { "type": "integer", "title": "Completion Tokens", "default": 0 }, "total_tokens": { "type": "integer", "title": "Total Tokens", "default": 0 } }, "type": "object", "title": "UsageStats" }, "UsageSummary": { "properties": { "count": { "type": "integer", "title": "Count" }, "prompt_tokens": { "type": "integer", "title": "Prompt Tokens" }, "completion_tokens": { "type": "integer", "title": "Completion Tokens" }, "total_tokens": { "type": "integer", "title": "Total Tokens" }, "cost_usd": { "type": "number", "title": "Cost Usd" }, "avg_duration_ms": { "type": "integer", "title": "Avg Duration Ms" } }, "type": "object", "required": [ "count", "prompt_tokens", "completion_tokens", "total_tokens", "cost_usd", "avg_duration_ms" ], "title": "UsageSummary" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "api__routes__usage_events__UsageEventItem": { "properties": { "id": { "type": "integer", "title": "Id" }, "operation_type": { "type": "string", "title": "Operation Type" }, "provider": { "type": "string", "title": "Provider" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model" }, "status": { "type": "string", "title": "Status" }, "task_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Task Id" }, "prompt_tokens": { "type": "integer", "title": "Prompt Tokens" }, "completion_tokens": { "type": "integer", "title": "Completion Tokens" }, "total_tokens": { "type": "integer", "title": "Total Tokens" }, "cost_usd": { "type": "number", "title": "Cost Usd" }, "duration_ms": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Duration Ms" }, "cache_hit": { "type": "boolean", "title": "Cache Hit" }, "local_repo_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Local Repo Path" }, "profile_version": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Profile Version" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Message" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "operation_type", "provider", "status", "prompt_tokens", "completion_tokens", "total_tokens", "cost_usd", "cache_hit", "created_at" ], "title": "UsageEventItem" }, "schemas__saas_task__TaskListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/TaskResponse" }, "type": "array", "title": "Items" }, "total": { "type": "integer", "title": "Total" }, "page": { "type": "integer", "title": "Page" }, "page_size": { "type": "integer", "title": "Page Size" } }, "type": "object", "required": [ "items", "total", "page", "page_size" ], "title": "TaskListResponse" }, "schemas__saas_task__UsageEventItem": { "properties": { "id": { "type": "integer", "title": "Id" }, "operation_type": { "type": "string", "title": "Operation Type" }, "provider": { "type": "string", "title": "Provider" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model" }, "status": { "type": "string", "title": "Status" }, "prompt_tokens": { "type": "integer", "title": "Prompt Tokens" }, "completion_tokens": { "type": "integer", "title": "Completion Tokens" }, "total_tokens": { "type": "integer", "title": "Total Tokens" }, "cost_usd": { "type": "number", "title": "Cost Usd" }, "duration_ms": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Duration Ms" }, "cache_hit": { "type": "boolean", "title": "Cache Hit", "default": false }, "local_repo_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Local Repo Path" }, "profile_version": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Profile Version" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Message" }, "started_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Started At" }, "ended_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Ended At" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "operation_type", "provider", "status", "prompt_tokens", "completion_tokens", "total_tokens", "cost_usd", "created_at" ], "title": "UsageEventItem" }, "schemas__task__TaskListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ExternalTask" }, "type": "array", "title": "Items" } }, "type": "object", "title": "TaskListResponse" } }, "securitySchemes": { "HTTPBearer": { "type": "http", "scheme": "bearer" } } } }