{"components":{"responses":{},"schemas":{"BrainSuggestionListResponse":{"additionalProperties":false,"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/BrainSuggestion"},"type":"array"}},"required":["suggestions"],"title":"BrainSuggestionListResponse","type":"object"},"BrainObjectTypesResponse":{"additionalProperties":false,"properties":{"types":{"items":{"type":"string"},"type":"array"}},"required":["types"],"title":"BrainObjectTypesResponse","type":"object"},"AIGatewayCredentialPoolEntry":{"additionalProperties":false,"properties":{"account_id":{"nullable":true,"type":"string"},"auth_type":{"nullable":true,"type":"string"},"credential_present":{"type":"boolean"},"disabled_at":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"last_error_code":{"nullable":true,"type":"string"},"last_error_message":{"nullable":true,"type":"string"},"last_error_reason":{"nullable":true,"type":"string"},"last_refresh":{"nullable":true,"type":"string"},"last_selected_at":{"nullable":true,"type":"string"},"plan_type":{"nullable":true,"type":"string"},"priority":{"type":"integer"},"provider_status":{"nullable":true,"type":"integer"},"rate_limits":{"additionalProperties":true,"type":"object"},"reauth_required":{"type":"boolean"},"request_count":{"type":"integer"},"retry_at":{"nullable":true,"type":"string"},"source":{"type":"string"},"status":{"enum":["ok","exhausted","dead","disabled"],"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["id","label","source","priority","disabled_at","credential_present","status","request_count","rate_limits","usage","last_selected_at"],"title":"AIGatewayCredentialPoolEntry","type":"object"},"AgentLibraryDocumentItem":{"additionalProperties":false,"properties":{"content":{"type":"string"},"content_hash":{"type":"string"},"kind":{"enum":["mission","soul","design","confidentiality_policy"],"type":"string"}},"required":["kind","content","content_hash"],"title":"AgentLibraryDocumentItem","type":"object"},"ScheduledEventItem":{"additionalProperties":false,"description":"One concrete fire: a one-shot checkback or one slot of a cron schedule.","properties":{"actor_event_id":{"format":"uuid","nullable":true,"type":"string"},"agent_uid":{"type":"string"},"automation_job_id":{"nullable":true,"type":"integer"},"automation_job_run_id":{"nullable":true,"type":"integer"},"binding_name":{"type":"string"},"cancelled_at":{"format":"date-time","nullable":true,"type":"string"},"cron_fire_slot_at":{"format":"date-time","nullable":true,"type":"string"},"cron_schedule_id":{"format":"uuid","nullable":true,"type":"string"},"due_at":{"format":"date-time","type":"string"},"fire_attempts":{"type":"integer"},"fire_claimed_at":{"format":"date-time","nullable":true,"type":"string"},"fired_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"integer"},"idempotency_key":{"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"kind":{"enum":["check_back_later","cron_fire"],"type":"string"},"last_fire_error":{"additionalProperties":true,"description":"Stored diagnostic of the last cancellation or failure; `reason` names it. Empty when there is none.","type":"object"},"oban_job_id":{"nullable":true,"type":"integer"},"origin_ai_message_id":{"format":"uuid","nullable":true,"type":"string"},"provider_thread_id":{"nullable":true,"type":"string"},"requested_at":{"format":"date-time","type":"string"},"session_id":{"type":"string"},"signal_channel_id":{"nullable":true,"type":"string"},"source_actor_event_id":{"format":"uuid","nullable":true,"type":"string"},"source_entry_id":{"nullable":true,"type":"string"},"source_provenance":{"additionalProperties":true,"type":"object"},"status":{"enum":["scheduled","firing","fired","cancelled","failed"],"type":"string"},"timezone":{"type":"string"},"tool_call_id":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","type":"string"},"wake_payload":{"additionalProperties":true,"description":"Input of the wake turn. A checkback carries `reason`, `check`, and `context_summary`; a cron fire carries `trigger` and the frozen schedule facts.","type":"object"}},"required":["id","kind","status","agent_uid","session_id","binding_name","due_at","timezone","requested_at","idempotency_key","cron_schedule_id","automation_job_id","automation_job_run_id","cron_fire_slot_at","tool_call_id","origin_ai_message_id","source_actor_event_id","signal_channel_id","provider_thread_id","source_entry_id","source_provenance","wake_payload","oban_job_id","actor_event_id","fire_attempts","fire_claimed_at","fired_at","cancelled_at","last_fire_error","inserted_at","updated_at"],"title":"ScheduledEventItem","type":"object"},"AIGatewayProviderListResponse":{"additionalProperties":false,"properties":{"ai_gateway_providers":{"items":{"$ref":"#/components/schemas/AIGatewayProviderItem"},"type":"array"}},"required":["ai_gateway_providers"],"title":"AIGatewayProviderListResponse","type":"object"},"ProviderHostedWriteRequest":{"additionalProperties":false,"description":"Sets any of the capability switches. Omitted keys stay unchanged.","properties":{"image_generate":{"type":"boolean"},"web_search":{"type":"boolean"}},"title":"ProviderHostedWriteRequest","type":"object"},"BrainClaimForgetRequest":{"additionalProperties":false,"properties":{"reason":{"type":"string"}},"required":["reason"],"title":"BrainClaimForgetRequest","type":"object"},"AIGatewayChatGPTBrowserLoginRequest":{"additionalProperties":false,"properties":{"callback_url":{"type":"string"},"login_context":{"additionalProperties":true,"type":"object"}},"required":["login_context","callback_url"],"title":"AIGatewayChatGPTBrowserLoginRequest","type":"object"},"BrainObjectUpdateRequest":{"additionalProperties":false,"properties":{"body":{"type":"string"},"effective_date":{"format":"date","nullable":true,"type":"string"},"expected_content_hash":{"type":"string"},"meta":{"additionalProperties":true,"type":"object"},"slug":{"type":"string"},"subtype":{"nullable":true,"type":"string"},"title":{"type":"string"}},"required":["slug","title","body","meta","expected_content_hash"],"title":"BrainObjectUpdateRequest","type":"object"},"BrainTakeResolveRequest":{"additionalProperties":false,"properties":{"resolution_provenance":{"nullable":true,"type":"string"},"resolved_outcome":{"nullable":true,"type":"boolean"},"resolved_quality":{"enum":["correct","incorrect","partial","unresolvable"],"type":"string"},"resolved_unit":{"nullable":true,"type":"string"},"resolved_value":{"nullable":true,"type":"number"}},"required":["resolved_quality"],"title":"BrainTakeResolveRequest","type":"object"},"WorkerFileListData":{"additionalProperties":false,"properties":{"entries":{"items":{"$ref":"#/components/schemas/WorkerFileEntry"},"type":"array"},"path":{"type":"string"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"},"truncated":{"type":"boolean"}},"required":["root","path","entries","truncated"],"title":"WorkerFileListData","type":"object"},"DirectoryEventReviewRequest":{"additionalProperties":false,"properties":{"action":{"enum":["retry","dismiss"],"type":"string"},"reason":{"type":"string"}},"required":["action","reason"],"title":"DirectoryEventReviewRequest","type":"object"},"AppConfigurationResponse":{"additionalProperties":false,"properties":{"app_configuration":{"$ref":"#/components/schemas/AppConfigurationItem"}},"required":["app_configuration"],"title":"AppConfigurationResponse","type":"object"},"PrincipalGroupCreateRequest":{"additionalProperties":false,"properties":{"computed_condition":{"description":"CEL condition required when kind is computed","nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"display_name":{"type":"string"},"kind":{"default":"static","enum":["static","computed"],"type":"string"},"name":{"description":"Lowercase stable policy key","type":"string"}},"required":["name","display_name"],"title":"PrincipalGroupCreateRequest","type":"object"},"PrincipalGroupUpdateRequest":{"additionalProperties":false,"properties":{"computed_condition":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"display_name":{"nullable":true,"type":"string"}},"title":"PrincipalGroupUpdateRequest","type":"object"},"AIGatewayCredentialStrategyWriteRequest":{"additionalProperties":false,"properties":{"strategy":{"enum":["fill_first","round_robin","least_used","random"],"type":"string"}},"required":["strategy"],"title":"AIGatewayCredentialStrategyWriteRequest","type":"object"},"BrainClaimSupersedeRequest":{"additionalProperties":false,"properties":{"audience_scope":{"nullable":true,"type":"string"},"claim":{"type":"string"},"confidence":{"nullable":true,"type":"number"},"kind":{"nullable":true,"type":"string"},"notability":{"nullable":true,"type":"string"},"provenance":{"nullable":true,"type":"string"},"weight":{"nullable":true,"type":"number"}},"required":["claim"],"title":"BrainClaimSupersedeRequest","type":"object"},"BrainObjectCandidate":{"additionalProperties":false,"properties":{"slug":{"type":"string"},"subtype":{"nullable":true,"type":"string"},"title":{"type":"string"},"type":{"type":"string"}},"required":["slug","title","type"],"title":"BrainObjectCandidate","type":"object"},"LocalizedText":{"additionalProperties":{"type":"string"},"properties":{"default":{"type":"string"}},"required":["default"],"title":"LocalizedText","type":"object"},"AuthSessionDeleteResponse":{"additionalProperties":false,"properties":{"ok":{"type":"boolean"}},"required":["ok"],"title":"AuthSessionDeleteResponse","type":"object"},"WorkerEnvDecryptionResponse":{"additionalProperties":false,"properties":{"decrypted_value":{"$ref":"#/components/schemas/WorkerEnvDecryptionValue"}},"required":["decrypted_value"],"title":"WorkerEnvDecryptionResponse","type":"object"},"OIDCClientSecretResponse":{"additionalProperties":false,"properties":{"client_secret":{"nullable":true,"type":"string"},"oidc_client":{"$ref":"#/components/schemas/OIDCClientItem"}},"required":["oidc_client","client_secret"],"title":"OIDCClientSecretResponse","type":"object"},"BackgroundAgentJobTurnPlanStep":{"additionalProperties":false,"properties":{"status":{"enum":["pending","in_progress","completed"],"type":"string"},"step":{"minLength":1,"type":"string"}},"required":["step","status"],"title":"BackgroundAgentJobTurnPlanStep","type":"object"},"JSONValue":{"description":"Any JSON-compatible value. AppConfigure validates the concrete key schema.","nullable":true,"title":"JSONValue"},"WorkClassifyRequest":{"additionalProperties":false,"properties":{"authorization_kind":{"enum":["human","service"],"type":"string"},"human_uid":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"reason":{"type":"string"}},"required":["kind","id","authorization_kind","reason"],"title":"WorkClassifyRequest","type":"object"},"AIGatewayConversationResponse":{"additionalProperties":false,"properties":{"conversation":{"$ref":"#/components/schemas/AIGatewayConversationItem"}},"required":["conversation"],"title":"AIGatewayConversationResponse","type":"object"},"AgentUpdateRequest":{"additionalProperties":false,"properties":{"avatar_url":{"nullable":true,"type":"string"},"display_name":{"type":"string"},"group_memory_disclosure_mode":{"enum":["strict","relaxed"],"type":"string"},"options":{"additionalProperties":true,"type":"object"},"owner_principal_uid":{"type":"string"},"role":{"type":"string"}},"title":"AgentUpdateRequest","type":"object"},"DirectoryAccessResponse":{"additionalProperties":false,"properties":{"events":{"items":{"$ref":"#/components/schemas/DirectoryEventItem"},"type":"array"},"snapshot":{"allOf":[{"$ref":"#/components/schemas/DirectorySnapshot"}],"nullable":true}},"required":["snapshot","events"],"title":"DirectoryAccessResponse","type":"object"},"HumanAccessResponse":{"additionalProperties":false,"properties":{"access_revoked_at":{"nullable":true,"type":"string"},"access_version":{"type":"integer"},"cleanup_jobs":{"items":{"$ref":"#/components/schemas/CleanupJobItem"},"type":"array"},"history":{"items":{"$ref":"#/components/schemas/AccessHistoryItem"},"type":"array"},"permission_review":{"$ref":"#/components/schemas/AccessPermissionReview"},"restrictions":{"items":{"$ref":"#/components/schemas/AccessRestrictionItem"},"type":"array"},"status":{"type":"string"},"uid":{"type":"string"},"work":{"items":{"$ref":"#/components/schemas/HumanWorkItem"},"type":"array"}},"required":["uid","status","access_version","access_revoked_at","restrictions","history","permission_review","work","cleanup_jobs"],"title":"HumanAccessResponse","type":"object"},"BackgroundAgentJobHealthResponse":{"additionalProperties":false,"properties":{"agents_at_running_cap":{"type":"integer"},"claims_24h":{"type":"integer"},"dead_letter_notices_24h":{"type":"integer"},"execution_failures_24h":{"type":"integer"},"max_running_per_agent":{"type":"integer"},"oldest_queued_seconds":{"nullable":true,"type":"integer"},"queued_behind_running_cap":{"type":"integer"},"queued_count":{"type":"integer"},"running_count":{"type":"integer"},"succeeded_24h":{"type":"integer"},"successor_seeded_24h":{"type":"integer"},"wakeups_24h":{"type":"integer"},"window_seconds":{"type":"integer"}},"required":["oldest_queued_seconds","queued_count","running_count","max_running_per_agent","agents_at_running_cap","queued_behind_running_cap","claims_24h","execution_failures_24h","succeeded_24h","successor_seeded_24h","wakeups_24h","dead_letter_notices_24h","window_seconds"],"title":"BackgroundAgentJobHealthResponse","type":"object"},"ScheduleRecurrence":{"additionalProperties":false,"description":"Recurrence of one cron schedule. Kind `cron` uses `expression` and `timezone`; kind `every` uses `every_ms` and `anchor_at`.","properties":{"anchor_at":{"description":"ISO 8601 instant that the interval counts from.","type":"string"},"every_ms":{"description":"Interval in milliseconds.","minimum":1,"type":"integer"},"expression":{"description":"Crontab expression with five fields, or six fields with leading seconds.","minLength":1,"type":"string"},"kind":{"enum":["cron","every"],"type":"string"},"occurrences":{"$ref":"#/components/schemas/ScheduleOccurrences"},"timezone":{"description":"IANA timezone. A write can omit it and give the request `timezone` instead. A stored `cron` recurrence carries it.","type":"string"}},"required":["kind"],"title":"ScheduleRecurrence","type":"object"},"BrainSourceLearnResponse":{"additionalProperties":false,"properties":{"result":{"additionalProperties":false,"properties":{"status":{"enum":["enqueued"],"type":"string"}},"required":["status"],"type":"object"}},"required":["result"],"title":"BrainSourceLearnResponse","type":"object"},"AutomationJobRunItem":{"additionalProperties":false,"properties":{"attempts":{"minimum":0,"type":"integer"},"error":{"nullable":true,"type":"string"},"exit_code":{"nullable":true,"type":"integer"},"finished_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"maximum":9007199254740991,"minimum":1000,"type":"integer"},"started_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"enum":["queued","running","succeeded","failed","cancelled"],"type":"string"},"stderr":{"type":"string"},"stdout":{"type":"string"}},"required":["id","status","attempts","stdout","stderr"],"title":"AutomationJobRunItem","type":"object"},"WorkerFileEntry":{"additionalProperties":false,"properties":{"kind":{"enum":["file","directory","other"],"type":"string"},"modified_unix_ms":{"type":"integer"},"relative_path":{"type":"string"},"size":{"type":"integer"}},"required":["relative_path","kind","size","modified_unix_ms"],"title":"WorkerFileEntry","type":"object"},"WorkerEnvListResponse":{"additionalProperties":false,"properties":{"worker_envs":{"items":{"$ref":"#/components/schemas/WorkerEnvItem"},"type":"array"}},"required":["worker_envs"],"title":"WorkerEnvListResponse","type":"object"},"OIDCClientUpdateRequest":{"additionalProperties":false,"properties":{"allow_insecure_local_logout":{"type":"boolean"},"allowed_group_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"allowed_identity_provider_ids":{"items":{"type":"string"},"type":"array"},"allowed_models":{"additionalProperties":{"$ref":"#/components/schemas/ModelProfileWriteRequest"},"type":"object"},"backchannel_logout_session_required":{"type":"boolean"},"backchannel_logout_uri":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"name":{"minLength":1,"type":"string"},"post_logout_redirect_uris":{"items":{"type":"string"},"type":"array"},"redirect_uris":{"items":{"type":"string"},"minItems":1,"type":"array"},"scopes":{"items":{"enum":["openid","profile","email","offline_access","ai_gateway.write"],"type":"string"},"minItems":1,"type":"array"}},"title":"OIDCClientUpdateRequest","type":"object"},"ConsoleApiErrorEnvelope":{"additionalProperties":false,"properties":{"error":{"$ref":"#/components/schemas/ConsoleApiError"}},"required":["error"],"title":"ConsoleApiErrorEnvelope","type":"object"},"LocalPasswordResetResponse":{"additionalProperties":false,"properties":{"initial_password":{"type":"string"}},"required":["initial_password"],"title":"LocalPasswordResetResponse","type":"object"},"AIGatewayConversationListResponse":{"additionalProperties":false,"properties":{"conversations":{"items":{"$ref":"#/components/schemas/AIGatewayConversationItem"},"type":"array"},"next_cursor":{"nullable":true,"type":"string"}},"required":["conversations","next_cursor"],"title":"AIGatewayConversationListResponse","type":"object"},"WorkerFileDeleteResponse":{"additionalProperties":false,"properties":{"deleted_file":{"additionalProperties":false,"properties":{"deleted":{"type":"boolean"},"relative_path":{"type":"string"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"}},"required":["root","relative_path","deleted"],"type":"object"}},"required":["deleted_file"],"title":"WorkerFileDeleteResponse","type":"object"},"IdentityProviderSyncRunItem":{"additionalProperties":false,"properties":{"job_id":{"nullable":true,"type":"integer"},"provider_id":{"type":"string"},"status":{"enum":["enqueued"],"type":"string"}},"required":["provider_id","status"],"title":"IdentityProviderSyncRunItem","type":"object"},"DirectorySnapshot":{"additionalProperties":false,"properties":{"approved_scope_fingerprint":{"nullable":true,"type":"string"},"last_error":{"nullable":true,"type":"string"},"last_started_at":{"nullable":true,"type":"string"},"last_success_at":{"nullable":true,"type":"string"},"member_uids":{"items":{"type":"string"},"type":"array"},"missing_uids":{"items":{"type":"string"},"type":"array"},"provider_id":{"type":"string"},"review_reason":{"nullable":true,"type":"string"},"reviewed_at":{"nullable":true,"type":"string"},"reviewed_by":{"nullable":true,"type":"string"},"revision":{"type":"integer"},"scope_fingerprint":{"nullable":true,"type":"string"},"snapshot_fingerprint":{"nullable":true,"type":"string"},"status":{"type":"string"}},"required":["provider_id","status","revision","scope_fingerprint","snapshot_fingerprint","approved_scope_fingerprint","member_uids","missing_uids","last_started_at","last_success_at","last_error","reviewed_by","reviewed_at","review_reason"],"title":"DirectorySnapshot","type":"object"},"ConsoleReadinessProvider":{"additionalProperties":false,"properties":{"complete":{"type":"boolean"},"provider_id":{"nullable":true,"type":"string"}},"required":["complete","provider_id"],"title":"ConsoleReadinessProvider","type":"object"},"BrainMergeSuggestionListResponse":{"additionalProperties":false,"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/BrainMergeSuggestion"},"type":"array"}},"required":["suggestions"],"title":"BrainMergeSuggestionListResponse","type":"object"},"BrainSourceArchiveResponse":{"additionalProperties":false,"properties":{"source":{"additionalProperties":false,"properties":{"archived_at":{"type":"string"},"id":{"type":"string"}},"required":["id","archived_at"],"type":"object"}},"required":["source"],"title":"BrainSourceArchiveResponse","type":"object"},"BrainClaimResponse":{"additionalProperties":false,"properties":{"claim":{"$ref":"#/components/schemas/BrainClaim"}},"required":["claim"],"title":"BrainClaimResponse","type":"object"},"BackgroundAgentJobTurnItem":{"additionalProperties":false,"properties":{"attempt":{"type":"integer"},"completed_at":{"nullable":true,"type":"string"},"error":{"additionalProperties":true,"type":"object"},"id":{"type":"string"},"inserted_at":{"type":"string"},"kind":{"enum":["agent","compaction"],"type":"string"},"progress":{"$ref":"#/components/schemas/BackgroundAgentJobTurnProgress"},"revision":{"type":"integer"},"runtime_thread_id":{"type":"string"},"runtime_turn_id":{"type":"string"},"started_at":{"type":"string"},"status":{"enum":["in_progress","completed","failed","interrupted"],"type":"string"},"trajectory":{"additionalProperties":false,"properties":{"format":{"enum":["ankole_chatml"],"type":"string"},"messages":{"items":{"oneOf":[{"additionalProperties":true,"properties":{"content":{"oneOf":[{"type":"string"},{"items":{"additionalProperties":true,"properties":{"type":{"type":"string"}},"required":["type"],"type":"object"},"type":"array"}]},"id":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"role":{"enum":["user","developer"],"type":"string"}},"required":["role","content"],"type":"object"},{"additionalProperties":true,"properties":{"content":{"type":"string"},"id":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"role":{"enum":["assistant"],"type":"string"},"tool_calls":{"items":{"additionalProperties":true,"properties":{"function":{"additionalProperties":true,"properties":{"arguments":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"}},"required":["name","arguments"],"type":"object"},"id":{"type":"string"},"type":{"enum":["function"],"type":"string"}},"required":["id","type","function"],"type":"object"},"type":"array"}},"required":["role","content"],"type":"object"},{"additionalProperties":true,"properties":{"content":{"type":"string"},"id":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"name":{"type":"string"},"namespace":{"type":"string"},"role":{"enum":["tool"],"type":"string"},"tool_call_id":{"type":"string"}},"required":["role","tool_call_id","name","content"],"type":"object"}]},"type":"array"},"metadata":{"additionalProperties":false,"properties":{"content_truncated":{"type":"boolean"},"redacted":{"type":"boolean"}},"type":"object"},"version":{"enum":[1],"type":"integer"}},"required":["format","version","messages"],"type":"object"},"updated_at":{"type":"string"},"usage":{"allOf":[{"$ref":"#/components/schemas/BackgroundAgentJobTurnUsage"}],"nullable":true}},"required":["id","attempt","runtime_thread_id","runtime_turn_id","kind","status","revision","trajectory","progress","usage","error","started_at","inserted_at","updated_at"],"title":"BackgroundAgentJobTurnItem","type":"object"},"BrainHealth":{"additionalProperties":false,"properties":{"channels_without_member_group":{"items":{"type":"string"},"type":"array"},"config":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Per brain.* key: \"ok\", or {invalid: reason} for a broken stored row.","type":"object"},"context_pack":{"additionalProperties":false,"description":"Injection counters since this node booted.","properties":{"degraded":{"type":"integer"},"served":{"type":"integer"}},"required":["served","degraded"],"type":"object"},"embedding_signature":{"$ref":"#/components/schemas/JSONValue"},"embeddings":{"additionalProperties":false,"properties":{"failed_chunks":{"type":"integer"},"failed_claims":{"type":"integer"},"pending_chunks":{"type":"integer"},"recent_error":{"nullable":true,"type":"string"}},"required":["failed_chunks","failed_claims","pending_chunks"],"type":"object"},"enabled":{"type":"boolean"},"maintainer_agent_uid":{"nullable":true,"type":"string"},"models":{"additionalProperties":false,"properties":{"dreaming":{"$ref":"#/components/schemas/BrainModelStatus"},"embedding":{"$ref":"#/components/schemas/BrainModelStatus"},"extraction":{"$ref":"#/components/schemas/BrainModelStatus"},"rerank":{"$ref":"#/components/schemas/BrainModelStatus"},"web_fetch":{"$ref":"#/components/schemas/BrainModelStatus"}},"required":["embedding","rerank","web_fetch","extraction","dreaming"],"type":"object"},"signals":{"additionalProperties":false,"properties":{"oldest_pending_age_seconds":{"nullable":true,"type":"integer"},"pending_channels":{"type":"integer"}},"required":["pending_channels"],"type":"object"},"skill_lessons":{"additionalProperties":false,"description":"Skill-lesson drift signals, all read from agent_skill_lessons.","properties":{"active_per_agent":{"additionalProperties":{"type":"integer"},"type":"object"},"added_last_7d":{"type":"integer"},"enabled":{"type":"boolean"},"oldest_active_days":{"nullable":true,"type":"integer"},"retired_last_7d":{"additionalProperties":{"type":"integer"},"type":"object"}},"type":"object"}},"required":["enabled","maintainer_agent_uid","config","models","signals","embeddings","context_pack","channels_without_member_group","skill_lessons"],"title":"BrainHealth","type":"object"},"BrainObjectListResponse":{"additionalProperties":false,"properties":{"objects":{"items":{"$ref":"#/components/schemas/BrainObjectSummary"},"type":"array"}},"required":["objects"],"title":"BrainObjectListResponse","type":"object"},"PrincipalCreateResponse":{"additionalProperties":false,"properties":{"initial_password":{"type":"string"},"principal":{"$ref":"#/components/schemas/PrincipalItem"}},"required":["principal","initial_password"],"title":"PrincipalCreateResponse","type":"object"},"ModelProfileResponse":{"additionalProperties":false,"properties":{"model_profile":{"additionalProperties":true,"type":"object"}},"required":["model_profile"],"title":"ModelProfileResponse","type":"object"},"IdentityProviderListResponse":{"additionalProperties":false,"properties":{"identity_providers":{"items":{"$ref":"#/components/schemas/IdentityProviderItem"},"type":"array"}},"required":["identity_providers"],"title":"IdentityProviderListResponse","type":"object"},"LogoutDeliveriesResponse":{"additionalProperties":false,"properties":{"deliveries":{"items":{"$ref":"#/components/schemas/LogoutDeliveryItem"},"type":"array"}},"required":["deliveries"],"title":"LogoutDeliveriesResponse","type":"object"},"AccessReasonRequest":{"additionalProperties":false,"properties":{"operation_id":{"maxLength":200,"minLength":1,"type":"string"},"reason":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["reason","operation_id"],"title":"AccessReasonRequest","type":"object"},"AIGatewayProviderItem":{"additionalProperties":false,"properties":{"base_url":{"nullable":true,"type":"string"},"connection_options":{"additionalProperties":true,"type":"object"},"credential_pool":{"$ref":"#/components/schemas/AIGatewayCredentialPool"},"disabled_at":{"nullable":true,"type":"string"},"id":{"type":"string"},"provider_id":{"type":"string"},"provider_kind":{"type":"string"},"provider_metadata":{"additionalProperties":true,"type":"object"}},"required":["id","provider_id","provider_kind","connection_options","credential_pool","provider_metadata"],"title":"AIGatewayProviderItem","type":"object"},"BrainPageContradiction":{"additionalProperties":false,"properties":{"axis":{"nullable":true,"type":"string"},"claim_id":{"type":"string"},"counterpart":{"additionalProperties":false,"properties":{"claim":{"type":"string"},"holder":{"nullable":true,"type":"string"},"id":{"type":"string"}},"required":["id","claim"],"type":"object"},"id":{"type":"string"},"severity":{"type":"string"},"verdict":{"type":"string"}},"required":["id","verdict","severity","claim_id","counterpart"],"title":"BrainPageContradiction","type":"object"},"LogoutDeliveryItem":{"additionalProperties":false,"properties":{"attempt_count":{"type":"integer"},"deadline":{"type":"string"},"delivered_at":{"nullable":true,"type":"string"},"id":{"type":"string"},"last_attempt_at":{"nullable":true,"type":"string"},"last_error":{"nullable":true,"type":"string"},"next_attempt_at":{"nullable":true,"type":"string"},"principal_uid":{"type":"string"},"session_id":{"type":"string"},"status":{"type":"string"}},"required":["id","session_id","principal_uid","status","attempt_count","last_attempt_at","next_attempt_at","delivered_at","deadline","last_error"],"title":"LogoutDeliveryItem","type":"object"},"AccessReviewPrincipal":{"additionalProperties":false,"properties":{"access_version":{"type":"integer"},"avatar_url":{"nullable":true,"type":"string"},"display_name":{"nullable":true,"type":"string"},"uid":{"type":"string"}},"required":["uid","display_name","avatar_url","access_version"],"title":"AccessReviewPrincipal","type":"object"},"ConsoleReadinessModelProfiles":{"additionalProperties":false,"properties":{"agent_uid":{"nullable":true,"type":"string"},"complete":{"type":"boolean"},"missing_profiles":{"items":{"type":"string"},"type":"array"}},"required":["complete","agent_uid","missing_profiles"],"title":"ConsoleReadinessModelProfiles","type":"object"},"AIGatewayChatGPTEnterpriseCredentialRequest":{"additionalProperties":false,"properties":{"access_token":{"type":"string"},"account_id":{"type":"string"},"email":{"type":"string"},"fedramp":{"type":"boolean"},"id":{"type":"string"},"label":{"type":"string"},"plan_type":{"type":"string"},"priority":{"type":"integer"}},"required":["access_token","account_id"],"title":"AIGatewayChatGPTEnterpriseCredentialRequest","type":"object"},"PrincipalItem":{"additionalProperties":false,"properties":{"avatar_url":{"nullable":true,"type":"string"},"display_name":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"has_external_identity":{"type":"boolean"},"inserted_at":{"type":"string"},"local_credential":{"$ref":"#/components/schemas/PrincipalLocalCredential"},"status":{"enum":["active","disabled"],"type":"string"},"type":{"enum":["human","agent","system"],"type":"string"},"uid":{"type":"string"},"updated_at":{"type":"string"}},"required":["uid","type","status","has_external_identity","inserted_at","updated_at"],"title":"PrincipalItem","type":"object"},"AgentLibraryDocumentWriteRequest":{"additionalProperties":false,"properties":{"content":{"type":"string"},"expected_content_hash":{"type":"string"}},"required":["content","expected_content_hash"],"title":"AgentLibraryDocumentWriteRequest","type":"object"},"BrainPromotionResultResponse":{"additionalProperties":false,"properties":{"result":{"$ref":"#/components/schemas/JSONValue"}},"required":["result"],"title":"BrainPromotionResultResponse","type":"object"},"PrincipalCreateRequest":{"additionalProperties":false,"properties":{"display_name":{"nullable":true,"type":"string"},"email":{"type":"string"},"must_change_password":{"default":true,"type":"boolean"}},"required":["email"],"title":"PrincipalCreateRequest","type":"object"},"AIGatewayMessageItem":{"additionalProperties":false,"properties":{"content":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"conversation_id":{"type":"string"},"id":{"type":"string"},"inserted_at":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"previous_message_id":{"nullable":true,"type":"string"},"status":{"enum":["generating","complete","error","retracted"],"type":"string"},"subject_uid":{"type":"string"},"type":{"enum":["message","checkpoint"],"type":"string"},"updated_at":{"type":"string"}},"required":["id","subject_uid","conversation_id","type","status","content","metadata","inserted_at","updated_at"],"title":"AIGatewayMessageItem","type":"object"},"AccessReviewGroup":{"additionalProperties":false,"properties":{"condition":{"$ref":"#/components/schemas/JSONValue"},"domain":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","name","domain","kind","condition"],"title":"AccessReviewGroup","type":"object"},"BrainObjectForgetRequest":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"slug":{"type":"string"}},"required":["slug","reason"],"title":"BrainObjectForgetRequest","type":"object"},"AIGatewayConversationItem":{"additionalProperties":false,"properties":{"channel_kind":{"enum":["im_dm","im_group","webhook_endpoint","issue","alert_stream","unknown"],"nullable":true,"type":"string"},"conversation_key":{"type":"string"},"display_name":{"nullable":true,"type":"string"},"ended_at":{"nullable":true,"type":"string"},"id":{"type":"string"},"inserted_at":{"type":"string"},"kind":{"enum":["signal","dreaming","job","responses_api","custom"],"type":"string"},"message_count":{"type":"integer"},"metadata":{"additionalProperties":true,"type":"object"},"signal_adapter":{"nullable":true,"type":"string"},"subject_uid":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","subject_uid","conversation_key","kind","display_name","channel_kind","signal_adapter","message_count","metadata","inserted_at","updated_at"],"title":"AIGatewayConversationItem","type":"object"},"BrainPageFact":{"additionalProperties":false,"properties":{"audience_scope":{"type":"string"},"author_uid":{"nullable":true,"type":"string"},"claim":{"type":"string"},"confidence":{"nullable":true,"type":"number"},"expired_at":{"nullable":true,"type":"string"},"holder":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"nullable":true,"type":"string"},"notability":{"nullable":true,"type":"string"},"provenance":{"nullable":true,"type":"string"},"superseded_by":{"nullable":true,"type":"string"},"valid_from":{"nullable":true,"type":"string"},"valid_until":{"nullable":true,"type":"string"}},"required":["id","claim","audience_scope"],"title":"BrainPageFact","type":"object"},"BackgroundAgentJobTurnActiveItem":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"namespace":{"minLength":1,"type":"string"}},"required":["id","name"],"title":"BackgroundAgentJobTurnActiveItem","type":"object"},"PrincipalGroupListResponse":{"additionalProperties":false,"properties":{"principal_groups":{"items":{"$ref":"#/components/schemas/PrincipalGroupItem"},"type":"array"}},"required":["principal_groups"],"title":"PrincipalGroupListResponse","type":"object"},"ConsoleReadinessResponse":{"additionalProperties":false,"properties":{"agent":{"$ref":"#/components/schemas/ConsoleReadinessAgent"},"completed_core_steps":{"minimum":0,"type":"integer"},"model_profiles":{"$ref":"#/components/schemas/ConsoleReadinessModelProfiles"},"provider":{"$ref":"#/components/schemas/ConsoleReadinessProvider"},"ready":{"type":"boolean"},"signal_route":{"$ref":"#/components/schemas/ConsoleReadinessSignalRoute"},"total_core_steps":{"minimum":1,"type":"integer"},"worker":{"$ref":"#/components/schemas/ConsoleReadinessWorker"}},"required":["ready","completed_core_steps","total_core_steps","provider","agent","model_profiles","worker","signal_route"],"title":"ConsoleReadinessResponse","type":"object"},"ScheduleCronScheduleResponse":{"additionalProperties":false,"properties":{"cron_schedule":{"$ref":"#/components/schemas/CronScheduleItem"}},"required":["cron_schedule"],"title":"ScheduleCronScheduleResponse","type":"object"},"BrainSourceUpdateRequest":{"additionalProperties":false,"properties":{"default_audience_scope":{"description":"Applies when a conversation first enters Brain. Null keeps it private to the submitting Human. Existing conversations keep their audience.","nullable":true,"type":"string"}},"required":["default_audience_scope"],"title":"BrainSourceUpdateRequest","type":"object"},"AgentResponse":{"additionalProperties":false,"properties":{"agent":{"$ref":"#/components/schemas/AgentItem"}},"required":["agent"],"title":"AgentResponse","type":"object"},"PrincipalUpdateRequest":{"additionalProperties":false,"properties":{"display_name":{"nullable":true,"type":"string"},"email":{"type":"string"}},"title":"PrincipalUpdateRequest","type":"object"},"AgentLibraryCapabilitiesResponse":{"additionalProperties":false,"properties":{"agent_plugins":{"items":{"$ref":"#/components/schemas/AgentPluginCapabilityItem"},"type":"array"},"skills":{"items":{"$ref":"#/components/schemas/AgentLibrarySkillCapabilityItem"},"type":"array"}},"required":["agent_plugins","skills"],"title":"AgentLibraryCapabilitiesResponse","type":"object"},"AccessReviewGrant":{"additionalProperties":false,"properties":{"action":{"type":"string"},"condition":{"$ref":"#/components/schemas/JSONValue"},"group_id":{"nullable":true,"type":"string"},"id":{"type":"string"},"principal_uid":{"nullable":true,"type":"string"},"resource_pattern":{"type":"string"}},"required":["id","principal_uid","group_id","resource_pattern","action","condition"],"title":"AccessReviewGrant","type":"object"},"AIGatewayMessageListResponse":{"additionalProperties":false,"properties":{"messages":{"items":{"$ref":"#/components/schemas/AIGatewayMessageItem"},"type":"array"},"next_cursor":{"nullable":true,"type":"string"}},"required":["messages","next_cursor"],"title":"AIGatewayMessageListResponse","type":"object"},"IdentityProviderItem":{"additionalProperties":false,"properties":{"adapter_id":{"type":"string"},"config":{"$ref":"#/components/schemas/JSONValue"},"config_key":{"type":"string"},"enabled":{"type":"boolean"},"plugin_id":{"type":"string"},"provider_id":{"type":"string"},"stored_secret_paths":{"items":{"type":"string"},"type":"array"}},"required":["provider_id","adapter_id","plugin_id","config_key","enabled","config","stored_secret_paths"],"title":"IdentityProviderItem","type":"object"},"AgentLibraryAgentOverrideWriteRequest":{"additionalProperties":false,"properties":{"enabled":{"nullable":true,"type":"boolean"}},"required":["enabled"],"title":"AgentLibraryAgentOverrideWriteRequest","type":"object"},"PrincipalGroupResponse":{"additionalProperties":false,"properties":{"principal_group":{"$ref":"#/components/schemas/PrincipalGroupItem"}},"required":["principal_group"],"title":"PrincipalGroupResponse","type":"object"},"AIGatewayCredentialPool":{"additionalProperties":false,"properties":{"entries":{"items":{"$ref":"#/components/schemas/AIGatewayCredentialPoolEntry"},"type":"array"},"strategy":{"enum":["fill_first","round_robin","least_used","random"],"type":"string"}},"required":["strategy","entries"],"title":"AIGatewayCredentialPool","type":"object"},"BrainDreamResponse":{"additionalProperties":false,"properties":{"result":{"additionalProperties":false,"properties":{"status":{"enum":["enqueued","already_pending"],"type":"string"}},"required":["status"],"type":"object"}},"required":["result"],"title":"BrainDreamResponse","type":"object"},"AgentSkillLessonItem":{"additionalProperties":false,"properties":{"agent_plugin_id":{"nullable":true,"type":"string"},"author_kind":{"enum":["dreaming","human"],"type":"string"},"author_uid":{"nullable":true,"type":"string"},"checked_release":{"nullable":true,"type":"string"},"content":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"description":{"nullable":true,"type":"string"},"effective_enabled":{"type":"boolean"},"evidence_job_ids":{"items":{"type":"integer"},"type":"array"},"id":{"type":"string"},"retire_reason":{"enum":["human_revoked","lapsed","obsolete"],"nullable":true,"type":"string"},"retired_at":{"format":"date-time","nullable":true,"type":"string"},"review_after":{"format":"date-time","nullable":true,"type":"string"},"skill_name":{"type":"string"}},"required":["id","skill_name","agent_plugin_id","description","effective_enabled","content","author_kind","author_uid","evidence_job_ids","checked_release","review_after","retired_at","retire_reason","created_at"],"title":"AgentSkillLessonItem","type":"object"},"PrincipalResponse":{"additionalProperties":false,"properties":{"principal":{"$ref":"#/components/schemas/PrincipalItem"}},"required":["principal"],"title":"PrincipalResponse","type":"object"},"AIGatewayProviderSetting":{"additionalProperties":false,"properties":{"advanced":{"type":"boolean"},"default":{"$ref":"#/components/schemas/JSONValue"},"encrypted":{"type":"boolean"},"key":{"type":"string"},"options":{"items":{"type":"string"},"type":"array"},"required":{"type":"boolean"},"scope":{"enum":["connection","credential","request"],"type":"string"},"type":{"enum":["boolean","float","integer","map","select","string"],"type":"string"}},"required":["key","type","default","options","required","encrypted","advanced","scope"],"title":"AIGatewayProviderSetting","type":"object"},"BrainObjectSummaryResponse":{"additionalProperties":false,"properties":{"object":{"$ref":"#/components/schemas/BrainObjectSummary"}},"required":["object"],"title":"BrainObjectSummaryResponse","type":"object"},"CronScheduleItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"automation_job_id":{"nullable":true,"type":"integer"},"binding_name":{"type":"string"},"created_by":{"additionalProperties":true,"description":"Origin of the schedule; `kind` names the writer.","type":"object"},"delivery":{"allOf":[{"$ref":"#/components/schemas/ScheduleDelivery"}],"nullable":true},"execution_session_id":{"description":"Derived session `cron:` where every fire runs.","type":"string"},"id":{"format":"uuid","type":"string"},"idempotency_key":{"type":"string"},"inserted_at":{"format":"date-time","type":"string"},"last_fire_at":{"format":"date-time","nullable":true,"type":"string"},"name":{"type":"string"},"next_fire_at":{"format":"date-time","nullable":true,"type":"string"},"owner_session_id":{"type":"string"},"payload":{"$ref":"#/components/schemas/SchedulePayload"},"schedule":{"$ref":"#/components/schemas/ScheduleRecurrence"},"status":{"enum":["active","paused","deleted","completed"],"type":"string"},"timezone":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","status","agent_uid","owner_session_id","execution_session_id","binding_name","name","schedule","timezone","payload","delivery","next_fire_at","last_fire_at","idempotency_key","created_by","automation_job_id","inserted_at","updated_at"],"title":"CronScheduleItem","type":"object"},"BrainContradiction":{"additionalProperties":false,"properties":{"a_claim":{"allOf":[{"$ref":"#/components/schemas/BrainClaim"}],"nullable":true},"axis":{"nullable":true,"type":"string"},"b_claim":{"allOf":[{"$ref":"#/components/schemas/BrainClaim"}],"nullable":true},"confidence":{"type":"number"},"created_at":{"type":"string"},"id":{"type":"string"},"severity":{"type":"string"},"status":{"type":"string"},"verdict":{"type":"string"}},"required":["id","verdict","severity","confidence","status","created_at"],"title":"BrainContradiction","type":"object"},"AutomationJobResponse":{"additionalProperties":false,"properties":{"automation_job":{"$ref":"#/components/schemas/AutomationJobItem"}},"required":["automation_job"],"title":"AutomationJobResponse","type":"object"},"IdentityProviderResponse":{"additionalProperties":false,"properties":{"identity_provider":{"$ref":"#/components/schemas/IdentityProviderItem"}},"required":["identity_provider"],"title":"IdentityProviderResponse","type":"object"},"BackgroundAgentJobListResponse":{"additionalProperties":false,"properties":{"jobs":{"items":{"$ref":"#/components/schemas/BackgroundAgentJobListItem"},"type":"array"},"next_cursor":{"nullable":true,"type":"string"}},"required":["jobs","next_cursor"],"title":"BackgroundAgentJobListResponse","type":"object"},"BackgroundAgentJobItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"attempts":{"type":"integer"},"completed_at":{"nullable":true,"type":"string"},"duration_seconds":{"type":"integer"},"error":{"additionalProperties":true,"type":"object"},"execution_failures":{"type":"integer"},"id":{"maximum":9007199254740991,"minimum":1000,"type":"integer"},"inserted_at":{"type":"string"},"metadata":{"additionalProperties":true,"type":"object"},"model_profile":{"type":"string"},"owner_session_id":{"type":"string"},"queued_at":{"nullable":true,"type":"string"},"reply_route":{"additionalProperties":true,"type":"object"},"result":{"additionalProperties":true,"type":"object"},"runtime_thread_id":{"nullable":true,"type":"string"},"source_actor_event_id":{"nullable":true,"type":"string"},"source_tool_call_id":{"type":"string"},"started_at":{"nullable":true,"type":"string"},"status":{"enum":["queued","running","waiting_on_user","succeeded","failed","stopped"],"type":"string"},"task":{"type":"string"},"title":{"type":"string"},"turns":{"description":"One bounded page of runtime Turns, newest Turns first, in chronological order.","items":{"$ref":"#/components/schemas/BackgroundAgentJobTurnItem"},"type":"array"},"turns_next_cursor":{"description":"Opaque cursor for the page of older Turns; null on the last page.","nullable":true,"type":"string"},"updated_at":{"type":"string"},"workspace_template_id":{"nullable":true,"type":"string"}},"required":["id","agent_uid","owner_session_id","source_tool_call_id","title","task","status","attempts","execution_failures","workspace_template_id","model_profile","reply_route","result","error","metadata","duration_seconds","inserted_at","updated_at"],"title":"BackgroundAgentJobItem","type":"object"},"BrainRecallResult":{"additionalProperties":false,"properties":{"chunks":{"items":{"$ref":"#/components/schemas/BrainRecallChunk"},"type":"array"},"claims":{"items":{"$ref":"#/components/schemas/BrainRecallClaim"},"type":"array"},"sanitized_count":{"type":"integer"}},"required":["claims","chunks","sanitized_count"],"title":"BrainRecallResult","type":"object"},"BrainSearchPreviewRequest":{"additionalProperties":false,"properties":{"asker_uid":{"nullable":true,"type":"string"},"disclosure_mode":{"enum":["strict","relaxed"],"nullable":true,"type":"string"},"present_uids":{"items":{"type":"string"},"nullable":true,"type":"array"},"principal_uid":{"type":"string"},"query":{"type":"string"}},"required":["principal_uid","query"],"title":"BrainSearchPreviewRequest","type":"object"},"AppConfigurationItem":{"additionalProperties":false,"properties":{"default_present":{"type":"boolean"},"description":{"nullable":true,"type":"string"},"editable":{"type":"boolean"},"encrypted":{"type":"boolean"},"error":{"nullable":true,"type":"string"},"key":{"type":"string"},"kind":{"enum":["exact","pattern","pattern_concrete"],"type":"string"},"overridden":{"type":"boolean"},"pattern":{"nullable":true,"type":"string"},"pattern_id":{"nullable":true,"type":"string"},"present":{"type":"boolean"},"scope":{"enum":["scoped","global"],"type":"string"},"source":{"enum":["default","global","missing","pattern","error"],"type":"string"},"value":{"$ref":"#/components/schemas/JSONValue"}},"required":["key","kind","encrypted","scope","editable","default_present","overridden","present","source"],"title":"AppConfigurationItem","type":"object"},"SignalBindingUpdateRequest":{"additionalProperties":false,"properties":{"config":{"$ref":"#/components/schemas/JSONValue"},"group_message_mode":{"enum":["addressed_only","observe_all","may_intervene"],"nullable":true,"type":"string"},"target_agent_uid":{"type":"string"},"unmatched_sender_policy":{"enum":["manual_review","create_standalone"],"nullable":true,"type":"string"}},"required":["target_agent_uid","config"],"title":"SignalBindingUpdateRequest","type":"object"},"SignalAdapterListResponse":{"additionalProperties":false,"properties":{"signal_adapters":{"items":{"$ref":"#/components/schemas/SignalAdapterItem"},"type":"array"}},"required":["signal_adapters"],"title":"SignalAdapterListResponse","type":"object"},"IdentityMappingRequestListResponse":{"additionalProperties":false,"properties":{"identity_mapping_requests":{"items":{"$ref":"#/components/schemas/IdentityMappingRequestItem"},"type":"array"}},"required":["identity_mapping_requests"],"title":"IdentityMappingRequestListResponse","type":"object"},"BrainPageLinks":{"additionalProperties":false,"properties":{"incoming":{"items":{"additionalProperties":false,"properties":{"context":{"nullable":true,"type":"string"},"from":{"type":"string"},"link_type":{"type":"string"}},"required":["from","link_type","context"],"type":"object"},"type":"array"},"outgoing":{"items":{"additionalProperties":false,"properties":{"context":{"nullable":true,"type":"string"},"link_type":{"type":"string"},"to":{"type":"string"}},"required":["to","link_type","context"],"type":"object"},"type":"array"}},"required":["outgoing","incoming"],"title":"BrainPageLinks","type":"object"},"SignalChannelStandingOrdersWriteRequest":{"additionalProperties":false,"properties":{"orders":{"description":"Full replacement standing-orders text; empty clears them.","maxLength":4000,"type":"string"}},"required":["orders"],"title":"SignalChannelStandingOrdersWriteRequest","type":"object"},"BackgroundAgentJobListItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"attempts":{"type":"integer"},"duration_seconds":{"type":"integer"},"execution_failures":{"type":"integer"},"id":{"maximum":9007199254740991,"minimum":1000,"type":"integer"},"inserted_at":{"type":"string"},"status":{"enum":["queued","running","waiting_on_user","succeeded","failed","stopped"],"type":"string"},"title":{"type":"string"},"workspace_template_id":{"nullable":true,"type":"string"}},"required":["id","agent_uid","title","status","attempts","execution_failures","workspace_template_id","duration_seconds","inserted_at"],"title":"BackgroundAgentJobListItem","type":"object"},"WorkerEnvUpdateRequest":{"additionalProperties":false,"properties":{"description":{"nullable":true,"type":"string"},"secret":{"type":"boolean"},"value":{"$ref":"#/components/schemas/JSONValue"}},"title":"WorkerEnvUpdateRequest","type":"object"},"SignalBindingResponse":{"additionalProperties":false,"properties":{"signal_binding":{"$ref":"#/components/schemas/SignalBindingItem"}},"required":["signal_binding"],"title":"SignalBindingResponse","type":"object"},"AccessPermissionReview":{"additionalProperties":false,"properties":{"fingerprint":{"type":"string"},"permissions":{"$ref":"#/components/schemas/AccessReviewPermissions"}},"required":["fingerprint","permissions"],"title":"AccessPermissionReview","type":"object"},"AgentLibraryDocumentResponse":{"additionalProperties":false,"properties":{"library_document":{"$ref":"#/components/schemas/AgentLibraryDocumentItem"}},"required":["library_document"],"title":"AgentLibraryDocumentResponse","type":"object"},"AccessHistoryItem":{"additionalProperties":false,"properties":{"access_version":{"type":"integer"},"action":{"type":"string"},"actor_uid":{"nullable":true,"type":"string"},"details":{"$ref":"#/components/schemas/JSONValue"},"id":{"type":"string"},"inserted_at":{"type":"string"},"reason":{"type":"string"},"source":{"type":"string"}},"required":["id","source","action","reason","actor_uid","access_version","details","inserted_at"],"title":"AccessHistoryItem","type":"object"},"PrincipalGroupItem":{"additionalProperties":false,"properties":{"built_in":{"type":"boolean"},"computed_condition":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"display_name":{"type":"string"},"domain":{"enum":["operator","directory","im_group"],"type":"string"},"grant_count":{"type":"integer"},"id":{"type":"string"},"inserted_at":{"type":"string"},"kind":{"enum":["static","computed"],"type":"string"},"member_count":{"type":"integer"},"name":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","display_name","domain","kind","built_in","member_count","grant_count","inserted_at","updated_at"],"title":"PrincipalGroupItem","type":"object"},"BackgroundAgentJobTurnProgress":{"additionalProperties":false,"properties":{"active_item":{"$ref":"#/components/schemas/BackgroundAgentJobTurnActiveItem"},"completed_items":{"minimum":0,"type":"integer"},"files_changed":{"items":{"type":"string"},"maxItems":1024,"type":"array"},"plan":{"$ref":"#/components/schemas/BackgroundAgentJobTurnPlan"},"tool_calls":{"minimum":0,"type":"integer"},"tool_execution_mechanisms":{"items":{"$ref":"#/components/schemas/BackgroundAgentJobTurnToolExecutionMechanism"},"maxItems":256,"type":"array"},"tools_used":{"items":{"$ref":"#/components/schemas/BackgroundAgentJobTurnToolUsage"},"maxItems":128,"type":"array"}},"required":["completed_items","tool_calls","tools_used","files_changed"],"title":"BackgroundAgentJobTurnProgress","type":"object"},"PrincipalLocalCredential":{"additionalProperties":false,"nullable":true,"properties":{"status":{"enum":["active","must_change"],"type":"string"}},"required":["status"],"title":"PrincipalLocalCredential","type":"object"},"BrainContradictionDecisionResponse":{"additionalProperties":false,"properties":{"contradiction":{"additionalProperties":false,"properties":{"id":{"type":"string"},"status":{"type":"string"}},"required":["id","status"],"type":"object"}},"required":["contradiction"],"title":"BrainContradictionDecisionResponse","type":"object"},"ScheduleCronUpdateRequest":{"additionalProperties":false,"minProperties":1,"properties":{"delivery":{"$ref":"#/components/schemas/ScheduleDelivery"},"name":{"minLength":1,"type":"string"},"payload":{"$ref":"#/components/schemas/SchedulePayload"},"schedule":{"$ref":"#/components/schemas/ScheduleRecurrence"},"timezone":{"nullable":true,"type":"string"}},"title":"ScheduleCronUpdateRequest","type":"object"},"ModelProfilesResponse":{"additionalProperties":false,"properties":{"model_profiles":{"additionalProperties":true,"type":"object"},"provider_hosted":{"$ref":"#/components/schemas/ProviderHostedCapabilities"}},"required":["model_profiles","provider_hosted"],"title":"ModelProfilesResponse","type":"object"},"ProviderHostedCapabilities":{"additionalProperties":false,"description":"Capabilities the Agent leaves to its language-model Provider. A capability set to true declares no Ankole tool or capability profile, and the Agent has no such capability when its Provider cannot run it.","properties":{"image_generate":{"type":"boolean"},"web_search":{"type":"boolean"}},"required":["web_search","image_generate"],"title":"ProviderHostedCapabilities","type":"object"},"SignalAdapterItem":{"additionalProperties":false,"properties":{"adapter_category":{"enum":["enterprise_im","consumer_im","email"],"type":"string"},"adapter_id":{"type":"string"},"display_name":{"$ref":"#/components/schemas/LocalizedText"},"fields":{"items":{"$ref":"#/components/schemas/SignalAdapterField"},"type":"array"},"group_message_mode_field":{"$ref":"#/components/schemas/SignalAdapterField"},"plugin_id":{"nullable":true,"type":"string"},"unmatched_sender_policy_field":{"$ref":"#/components/schemas/SignalAdapterField"}},"required":["adapter_id","adapter_category","fields","group_message_mode_field","unmatched_sender_policy_field"],"title":"SignalAdapterItem","type":"object"},"SignalAdapterField":{"additionalProperties":true,"properties":{"advanced":{"type":"boolean"},"default":{"$ref":"#/components/schemas/JSONValue"},"description":{"$ref":"#/components/schemas/LocalizedText"},"encrypted":{"type":"boolean"},"label":{"$ref":"#/components/schemas/LocalizedText"},"max":{"type":"integer"},"min":{"type":"integer"},"options":{"items":{"$ref":"#/components/schemas/SignalAdapterFieldOption"},"type":"array"},"path":{"type":"string"},"required":{"type":"boolean"},"requiredWhen":{"items":{"$ref":"#/components/schemas/SignalAdapterFieldRequirement"},"type":"array"},"type":{"type":"string"},"validation":{"oneOf":[{"$ref":"#/components/schemas/SignalAdapterPatternValidation"},{"$ref":"#/components/schemas/SignalAdapterJSONObjectValidation"}]}},"required":["path","type"],"title":"SignalAdapterField","type":"object"},"IdentityMappingResponse":{"additionalProperties":false,"properties":{"identity_mapping":{"$ref":"#/components/schemas/IdentityMappingItem"}},"required":["identity_mapping"],"title":"IdentityMappingResponse","type":"object"},"BackgroundAgentJobTurnToolUsage":{"additionalProperties":false,"properties":{"calls":{"minimum":0,"type":"integer"},"name":{"minLength":1,"type":"string"},"namespace":{"minLength":1,"type":"string"}},"required":["name","calls"],"title":"BackgroundAgentJobTurnToolUsage","type":"object"},"AIGatewayCredentialWriteRequest":{"additionalProperties":true,"properties":{"disabled_at":{"nullable":true,"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"priority":{"type":"integer"}},"title":"AIGatewayCredentialWriteRequest","type":"object"},"ScheduleEventListResponse":{"additionalProperties":false,"properties":{"schedule_events":{"items":{"$ref":"#/components/schemas/ScheduledEventItem"},"type":"array"}},"required":["schedule_events"],"title":"ScheduleEventListResponse","type":"object"},"BrainClaimListResponse":{"additionalProperties":false,"properties":{"claims":{"items":{"$ref":"#/components/schemas/BrainClaim"},"type":"array"}},"required":["claims"],"title":"BrainClaimListResponse","type":"object"},"SignalAdapterFieldOption":{"additionalProperties":true,"properties":{"description":{"$ref":"#/components/schemas/LocalizedText"},"label":{"$ref":"#/components/schemas/LocalizedText"},"value":{"type":"string"}},"required":["value"],"title":"SignalAdapterFieldOption","type":"object"},"AgentLibrarySkillCapabilityItem":{"additionalProperties":false,"properties":{"agent_plugin_id":{"nullable":true,"type":"string"},"description":{"type":"string"},"effective_enabled":{"type":"boolean"},"global_default_enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"override_enabled":{"nullable":true,"type":"boolean"},"source_kind":{"enum":["builtin","installed"],"type":"string"}},"required":["id","name","description","source_kind","agent_plugin_id","global_default_enabled","override_enabled","effective_enabled"],"title":"AgentLibrarySkillCapabilityItem","type":"object"},"WorkerFileUploadResponse":{"additionalProperties":false,"properties":{"uploaded_file":{"additionalProperties":false,"properties":{"relative_path":{"type":"string"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"},"size":{"type":"integer"},"xxh3_128":{"nullable":true,"type":"string"}},"required":["root","relative_path","size"],"type":"object"}},"required":["uploaded_file"],"title":"WorkerFileUploadResponse","type":"object"},"SignalAdapterFieldRequirement":{"additionalProperties":false,"properties":{"path":{"type":"string"},"value":{"$ref":"#/components/schemas/JSONValue"}},"required":["path","value"],"title":"SignalAdapterFieldRequirement","type":"object"},"BrainSuggestion":{"additionalProperties":false,"properties":{"created_at":{"type":"string"},"evidence_count":{"type":"integer"},"id":{"type":"string"},"kind":{"type":"string"},"rationale":{"nullable":true,"type":"string"},"status":{"type":"string"},"target_type":{"nullable":true,"type":"string"},"term":{"type":"string"}},"required":["id","kind","term","evidence_count","status","created_at"],"title":"BrainSuggestion","type":"object"},"PermissionGrantUpdateRequest":{"additionalProperties":false,"properties":{"action":{"nullable":true,"type":"string"},"condition":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"resource_pattern":{"nullable":true,"type":"string"}},"title":"PermissionGrantUpdateRequest","type":"object"},"BrainObjectShowResponse":{"additionalProperties":false,"properties":{"candidates":{"items":{"$ref":"#/components/schemas/BrainObjectCandidate"},"type":"array"},"object":{"$ref":"#/components/schemas/BrainObjectPage"}},"title":"BrainObjectShowResponse","type":"object"},"AgentComputerWorkerItem":{"additionalProperties":false,"properties":{"capacity":{"additionalProperties":true,"type":"object"},"inserted_at":{"type":"string"},"last_worker_heartbeat_at":{"nullable":true,"type":"string"},"load":{"additionalProperties":true,"type":"object"},"started_at":{"nullable":true,"type":"string"},"status":{"enum":["ready","stale","draining","stopped"],"type":"string"},"stop_reason":{"nullable":true,"type":"string"},"stopped_at":{"nullable":true,"type":"string"},"updated_at":{"type":"string"},"version":{"type":"string"},"worker_id":{"type":"string"}},"required":["worker_id","status","version","capacity","load","inserted_at","updated_at"],"title":"AgentComputerWorkerItem","type":"object"},"AgentItem":{"additionalProperties":false,"properties":{"avatar_url":{"nullable":true,"type":"string"},"created_by_principal_uid":{"nullable":true,"type":"string"},"display_name":{"type":"string"},"group_memory_disclosure_mode":{"enum":["strict","relaxed"],"type":"string"},"inserted_at":{"type":"string"},"options":{"additionalProperties":true,"type":"object"},"owner_principal_uid":{"type":"string"},"role":{"type":"string"},"status":{"enum":["active","disabled"],"type":"string"},"type":{"enum":["ai_colleague"],"type":"string"},"uid":{"type":"string"},"updated_at":{"type":"string"}},"required":["uid","status","display_name","type","role","options","owner_principal_uid","group_memory_disclosure_mode","inserted_at","updated_at"],"title":"AgentItem","type":"object"},"BrainContradictionListResponse":{"additionalProperties":false,"properties":{"contradictions":{"items":{"$ref":"#/components/schemas/BrainContradiction"},"type":"array"}},"required":["contradictions"],"title":"BrainContradictionListResponse","type":"object"},"AIGatewayChatGPTLoginPollRequest":{"additionalProperties":false,"properties":{"login_context":{"additionalProperties":true,"type":"object"}},"required":["login_context"],"title":"AIGatewayChatGPTLoginPollRequest","type":"object"},"AgentSessionListResponse":{"additionalProperties":false,"properties":{"sessions":{"items":{"$ref":"#/components/schemas/AgentSession"},"type":"array"}},"required":["sessions"],"title":"AgentSessionListResponse","type":"object"},"BrainObjectRestoreRequest":{"additionalProperties":false,"properties":{"slug":{"type":"string"}},"required":["slug"],"title":"BrainObjectRestoreRequest","type":"object"},"SignalBindingListResponse":{"additionalProperties":false,"properties":{"delivery_failures":{"items":{"$ref":"#/components/schemas/SignalDeliveryFailureItem"},"maxItems":100,"type":"array"},"signal_bindings":{"items":{"$ref":"#/components/schemas/SignalBindingItem"},"type":"array"}},"required":["signal_bindings","delivery_failures"],"title":"SignalBindingListResponse","type":"object"},"IdentityMappingBindRequest":{"additionalProperties":false,"properties":{"principal_uid":{"type":"string"}},"required":["principal_uid"],"title":"IdentityMappingBindRequest","type":"object"},"WebhookEndpointItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"automation_job_id":{"maximum":9007199254740991,"minimum":1000,"nullable":true,"type":"integer"},"binding_name":{"type":"string"},"cancelled_at":{"format":"date-time","nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":"string"},"fired_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"label":{"type":"string"},"mode":{"enum":["one_shot","standing"],"type":"string"},"provider_thread_id":{"nullable":true,"type":"string"},"session_id":{"type":"string"},"signal_channel_id":{"nullable":true,"type":"string"},"source_actor_event_id":{"format":"uuid","nullable":true,"type":"string"},"source_entry_id":{"nullable":true,"type":"string"},"source_provenance":{"$ref":"#/components/schemas/JSONValue"},"status":{"enum":["armed","active","fired","expired","cancelled"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","agent_uid","binding_name","session_id","label","mode","status","expires_at","created_at","updated_at"],"title":"WebhookEndpointItem","type":"object"},"SignalBindingWriteRequest":{"additionalProperties":false,"properties":{"config":{"$ref":"#/components/schemas/JSONValue"},"group_message_mode":{"enum":["addressed_only","observe_all","may_intervene"],"nullable":true,"type":"string"},"unmatched_sender_policy":{"enum":["manual_review","create_standalone"],"nullable":true,"type":"string"}},"required":["config"],"title":"SignalBindingWriteRequest","type":"object"},"OIDCClientListResponse":{"additionalProperties":false,"properties":{"oidc_clients":{"items":{"$ref":"#/components/schemas/OIDCClientItem"},"type":"array"}},"required":["oidc_clients"],"title":"OIDCClientListResponse","type":"object"},"IdentityMappingWriteRequest":{"additionalProperties":false,"properties":{"external_id":{"type":"string"},"principal_uid":{"type":"string"},"provider":{"type":"string"}},"required":["principal_uid","provider","external_id"],"title":"IdentityMappingWriteRequest","type":"object"},"ConsoleReadinessAgent":{"additionalProperties":false,"properties":{"complete":{"type":"boolean"},"display_name":{"nullable":true,"type":"string"},"uid":{"nullable":true,"type":"string"}},"required":["complete","uid","display_name"],"title":"ConsoleReadinessAgent","type":"object"},"BrainSourceListResponse":{"additionalProperties":false,"properties":{"sources":{"items":{"$ref":"#/components/schemas/BrainSource"},"type":"array"}},"required":["sources"],"title":"BrainSourceListResponse","type":"object"},"AgentPluginCapabilityItem":{"additionalProperties":false,"properties":{"description":{"type":"string"},"effective_enabled":{"type":"boolean"},"global_default_enabled":{"type":"boolean"},"id":{"type":"string"},"override_enabled":{"nullable":true,"type":"boolean"},"skills":{"items":{"$ref":"#/components/schemas/AgentLibrarySkillCapabilityItem"},"type":"array"},"version":{"type":"string"}},"required":["id","description","version","global_default_enabled","override_enabled","effective_enabled","skills"],"title":"AgentPluginCapabilityItem","type":"object"},"AgentLibraryGlobalDefaultWriteRequest":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"title":"AgentLibraryGlobalDefaultWriteRequest","type":"object"},"ControlPlanePluginListResponse":{"additionalProperties":false,"properties":{"control_plane_plugins":{"items":{"$ref":"#/components/schemas/ControlPlanePluginItem"},"type":"array"}},"required":["control_plane_plugins"],"title":"ControlPlanePluginListResponse","type":"object"},"AgentSkillLessonsResponse":{"additionalProperties":false,"properties":{"skill_lessons":{"items":{"$ref":"#/components/schemas/AgentSkillLessonItem"},"type":"array"}},"required":["skill_lessons"],"title":"AgentSkillLessonsResponse","type":"object"},"BrainSuggestionDecideRequest":{"additionalProperties":false,"properties":{"decision":{"enum":["approve","reject"],"type":"string"},"extractable":{"nullable":true,"type":"boolean"},"primitive":{"nullable":true,"type":"string"},"slug_prefix":{"nullable":true,"type":"string"},"target_type":{"nullable":true,"type":"string"}},"required":["decision"],"title":"BrainSuggestionDecideRequest","type":"object"},"DirectoryEventItem":{"additionalProperties":false,"properties":{"event_id":{"type":"string"},"event_type":{"type":"string"},"external_ids":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"inserted_at":{"type":"string"},"last_error":{"nullable":true,"type":"string"},"processed_at":{"nullable":true,"type":"string"},"provider_time":{"nullable":true,"type":"string"},"reason":{"nullable":true,"type":"string"},"review_reason":{"nullable":true,"type":"string"},"reviewed_by":{"nullable":true,"type":"string"},"status":{"type":"string"}},"required":["id","event_id","event_type","external_ids","reason","provider_time","status","last_error","processed_at","reviewed_by","review_reason","inserted_at"],"title":"DirectoryEventItem","type":"object"},"BrainHealthResponse":{"additionalProperties":false,"properties":{"health":{"$ref":"#/components/schemas/BrainHealth"}},"required":["health"],"title":"BrainHealthResponse","type":"object"},"WorkerFileListResponse":{"additionalProperties":false,"properties":{"file_listing":{"$ref":"#/components/schemas/WorkerFileListData"}},"required":["file_listing"],"title":"WorkerFileListResponse","type":"object"},"WorkerFileMoveRequest":{"additionalProperties":false,"properties":{"from_path":{"type":"string"},"overwrite":{"type":"boolean"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"},"to_path":{"type":"string"}},"required":["root","from_path","to_path"],"title":"WorkerFileMoveRequest","type":"object"},"WebhookEndpointResponse":{"additionalProperties":false,"properties":{"webhook_endpoint":{"$ref":"#/components/schemas/WebhookEndpointItem"}},"required":["webhook_endpoint"],"title":"WebhookEndpointResponse","type":"object"},"ConsoleApiError":{"additionalProperties":false,"properties":{"code":{"type":"string"},"details":{"items":{"$ref":"#/components/schemas/ConsoleApiErrorDetail"},"nullable":true,"type":"array"},"message":{"type":"string"}},"required":["code","message"],"title":"ConsoleApiError","type":"object"},"BrainMergeResultResponse":{"additionalProperties":false,"properties":{"result":{"$ref":"#/components/schemas/JSONValue"}},"required":["result"],"title":"BrainMergeResultResponse","type":"object"},"ScheduleCronScheduleListResponse":{"additionalProperties":false,"properties":{"cron_schedules":{"items":{"$ref":"#/components/schemas/CronScheduleItem"},"type":"array"}},"required":["cron_schedules"],"title":"ScheduleCronScheduleListResponse","type":"object"},"IdentityMappingItem":{"additionalProperties":false,"properties":{"external_id":{"type":"string"},"principal_uid":{"type":"string"},"provider":{"type":"string"}},"required":["principal_uid","provider","external_id"],"title":"IdentityMappingItem","type":"object"},"ModelProfileWriteRequest":{"additionalProperties":false,"properties":{"context_length":{"minimum":1,"type":"integer"},"description":{"maxLength":200,"type":"string"},"model":{"type":"string"},"provider_id":{"type":"string"},"provider_options":{"additionalProperties":true,"type":"object"}},"title":"ModelProfileWriteRequest","type":"object"},"ScheduleCronWriteRequest":{"additionalProperties":false,"properties":{"binding_name":{"type":"string"},"delivery":{"$ref":"#/components/schemas/ScheduleDelivery"},"idempotency_key":{"type":"string"},"name":{"minLength":1,"type":"string"},"owner_session_id":{"description":"Conversation session that manages this schedule. Fires run in the derived execution session `cron:`.","minLength":1,"type":"string"},"payload":{"$ref":"#/components/schemas/SchedulePayload"},"schedule":{"$ref":"#/components/schemas/ScheduleRecurrence"},"status":{"enum":["active","paused"],"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["owner_session_id","binding_name","name","schedule","delivery","idempotency_key"],"title":"ScheduleCronWriteRequest","type":"object"},"WorkerEnvResponse":{"additionalProperties":false,"properties":{"worker_env":{"$ref":"#/components/schemas/WorkerEnvItem"}},"required":["worker_env"],"title":"WorkerEnvResponse","type":"object"},"IdentityMappingRequestItem":{"additionalProperties":false,"properties":{"display_name":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"external_id":{"type":"string"},"first_seen_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"last_seen_at":{"format":"date-time","type":"string"},"metadata":{"$ref":"#/components/schemas/JSONValue"},"mobile":{"nullable":true,"type":"string"},"provider":{"type":"string"}},"required":["id","provider","external_id","first_seen_at","last_seen_at"],"title":"IdentityMappingRequestItem","type":"object"},"AgentSkillLessonCreateRequest":{"additionalProperties":false,"properties":{"content":{"type":"string"},"skill_name":{"type":"string"}},"required":["skill_name","content"],"title":"AgentSkillLessonCreateRequest","type":"object"},"CleanupJobItem":{"additionalProperties":false,"properties":{"attempt":{"type":"integer"},"completed_at":{"nullable":true,"type":"string"},"discarded_at":{"nullable":true,"type":"string"},"id":{"type":"integer"},"max_attempts":{"type":"integer"},"scheduled_at":{"nullable":true,"type":"string"},"state":{"type":"string"}},"required":["id","state","attempt","max_attempts","scheduled_at","completed_at","discarded_at"],"title":"CleanupJobItem","type":"object"},"AgentLibraryDocuments":{"additionalProperties":false,"properties":{"confidentiality_policy":{"$ref":"#/components/schemas/AgentLibraryDocumentItem"},"design":{"$ref":"#/components/schemas/AgentLibraryDocumentItem"},"mission":{"$ref":"#/components/schemas/AgentLibraryDocumentItem"},"soul":{"$ref":"#/components/schemas/AgentLibraryDocumentItem"}},"required":["mission","soul","design","confidentiality_policy"],"title":"AgentLibraryDocuments","type":"object"},"AgentComputerWorkerListResponse":{"additionalProperties":false,"properties":{"workers":{"items":{"$ref":"#/components/schemas/AgentComputerWorkerItem"},"type":"array"}},"required":["workers"],"title":"AgentComputerWorkerListResponse","type":"object"},"AIGatewayChatGPTLoginResponse":{"additionalProperties":true,"title":"AIGatewayChatGPTLoginResponse","type":"object"},"BrainObjectForkRequest":{"additionalProperties":false,"properties":{"slug":{"type":"string"}},"required":["slug"],"title":"BrainObjectForkRequest","type":"object"},"BrainObjectVersion":{"additionalProperties":false,"properties":{"author_uid":{"nullable":true,"type":"string"},"body":{"type":"string"},"id":{"type":"string"},"meta":{"additionalProperties":true,"type":"object"},"snapshot_at":{"type":"string"}},"required":["id","body","meta","snapshot_at"],"title":"BrainObjectVersion","type":"object"},"BrainObjectVersionsResponse":{"additionalProperties":false,"properties":{"versions":{"items":{"$ref":"#/components/schemas/BrainObjectVersion"},"type":"array"}},"required":["versions"],"title":"BrainObjectVersionsResponse","type":"object"},"PrincipalGroupMemberListResponse":{"additionalProperties":false,"properties":{"principal_group_members":{"items":{"$ref":"#/components/schemas/PrincipalGroupMemberItem"},"type":"array"}},"required":["principal_group_members"],"title":"PrincipalGroupMemberListResponse","type":"object"},"AppConfigurationUpdateRequest":{"additionalProperties":false,"properties":{"value":{"$ref":"#/components/schemas/JSONValue"}},"title":"AppConfigurationUpdateRequest","type":"object"},"BrainRecallChunk":{"additionalProperties":false,"properties":{"audience_scope":{"type":"string"},"chunk_index":{"type":"integer"},"content_kind":{"nullable":true,"type":"string"},"object_slug":{"type":"string"},"text":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"}},"required":["object_slug","title","type","chunk_index","text","audience_scope"],"title":"BrainRecallChunk","type":"object"},"ScheduleDelivery":{"additionalProperties":false,"description":"Where the result of a fire goes. The first target is primary and its binding must equal the schedule `binding_name`. When `quiet_success` is true, a fire with nothing to report sends no message. An update that omits `quiet_success` keeps the stored value.","properties":{"quiet_success":{"type":"boolean"},"targets":{"items":{"$ref":"#/components/schemas/ScheduleDeliveryTarget"},"minItems":1,"type":"array"}},"required":["targets"],"title":"ScheduleDelivery","type":"object"},"TokenQuota":{"additionalProperties":false,"properties":{"limit_tokens":{"minimum":1,"type":"integer"},"period_days":{"minimum":1,"type":"integer"},"period_start_at":{"type":"string"}},"required":["period_days","period_start_at","limit_tokens"],"title":"TokenQuota","type":"object"},"OIDCClientResponse":{"additionalProperties":false,"properties":{"oidc_client":{"$ref":"#/components/schemas/OIDCClientItem"}},"required":["oidc_client"],"title":"OIDCClientResponse","type":"object"},"AIGatewayChatGPTLoginStartRequest":{"additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"priority":{"type":"integer"}},"title":"AIGatewayChatGPTLoginStartRequest","type":"object"},"ScheduleDeliveryTarget":{"additionalProperties":false,"properties":{"binding_name":{"minLength":1,"type":"string"},"provider_thread_id":{"type":"string"},"signal_channel_id":{"minLength":1,"type":"string"}},"required":["binding_name","signal_channel_id"],"title":"ScheduleDeliveryTarget","type":"object"},"BrainContradictionDecideRequest":{"additionalProperties":false,"properties":{"resolution_note":{"nullable":true,"type":"string"},"status":{"enum":["resolved","dismissed"],"type":"string"}},"required":["status"],"title":"BrainContradictionDecideRequest","type":"object"},"BrainPageTimeline":{"additionalProperties":false,"properties":{"audience_scope":{"type":"string"},"author_uid":{"nullable":true,"type":"string"},"date":{"type":"string"},"detail":{"nullable":true,"type":"string"},"event_object_slug":{"nullable":true,"type":"string"},"id":{"type":"string"},"provenance":{"nullable":true,"type":"string"},"summary":{"type":"string"}},"required":["id","date","summary","audience_scope"],"title":"BrainPageTimeline","type":"object"},"TokenQuotaUsage":{"additionalProperties":false,"properties":{"exceeded":{"type":"boolean"},"used_tokens":{"type":"integer"},"window_ends_at":{"type":"string"},"window_started_at":{"type":"string"}},"required":["window_started_at","window_ends_at","used_tokens","exceeded"],"title":"TokenQuotaUsage","type":"object"},"BrainRecallClaim":{"additionalProperties":false,"properties":{"audience_scope":{"type":"string"},"claim":{"type":"string"},"claim_type":{"type":"string"},"confidence":{"nullable":true,"type":"number"},"holder":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"nullable":true,"type":"string"},"notability":{"nullable":true,"type":"string"},"object_slug":{"nullable":true,"type":"string"},"provenance":{"nullable":true,"type":"string"},"signal_gateway_channel_id":{"nullable":true,"type":"string"},"since_date":{"nullable":true,"type":"string"},"until_date":{"nullable":true,"type":"string"},"valid_from":{"nullable":true,"type":"string"},"valid_until":{"nullable":true,"type":"string"},"weight":{"nullable":true,"type":"number"}},"required":["id","claim_type","claim","audience_scope"],"title":"BrainRecallClaim","type":"object"},"BrainSearchPreviewResponse":{"additionalProperties":false,"properties":{"result":{"$ref":"#/components/schemas/BrainRecallResult"}},"required":["result"],"title":"BrainSearchPreviewResponse","type":"object"},"ControlPlanePluginWriteRequest":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"id":{"type":"string"}},"required":["id","enabled"],"title":"ControlPlanePluginWriteRequest","type":"object"},"AIGatewayProviderKindItem":{"additionalProperties":false,"properties":{"capabilities":{"items":{"type":"string"},"type":"array"},"capability_specs":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"connection_options":{"items":{"type":"string"},"type":"array"},"credential_options":{"items":{"type":"string"},"type":"array"},"default_base_url":{"nullable":true,"type":"string"},"label":{"additionalProperties":{"type":"string"},"type":"object"},"provider_kind":{"type":"string"},"runtime_provider_options":{"items":{"type":"string"},"type":"array"},"settings":{"items":{"$ref":"#/components/schemas/AIGatewayProviderSetting"},"type":"array"}},"required":["provider_kind","label","capabilities","default_base_url","settings","capability_specs","connection_options","credential_options","runtime_provider_options"],"title":"AIGatewayProviderKindItem","type":"object"},"ScheduleEventResponse":{"additionalProperties":false,"properties":{"schedule_event":{"$ref":"#/components/schemas/ScheduledEventItem"}},"required":["schedule_event"],"title":"ScheduleEventResponse","type":"object"},"SchedulePayload":{"additionalProperties":true,"description":"Standing input of every fire. `task` is the self-contained instruction of a direct-Agent schedule; it is required unless an automation job consumes the trigger. Other keys pass through unchanged.","title":"SchedulePayload","type":"object"},"DirectoryApproveRequest":{"additionalProperties":false,"properties":{"confirm_removals":{"type":"boolean"},"reason":{"type":"string"},"snapshot_fingerprint":{"type":"string"}},"required":["snapshot_fingerprint","reason","confirm_removals"],"title":"DirectoryApproveRequest","type":"object"},"BrainClaim":{"additionalProperties":false,"properties":{"active":{"nullable":true,"type":"boolean"},"audience_scope":{"type":"string"},"author_uid":{"nullable":true,"type":"string"},"claim":{"type":"string"},"claim_type":{"enum":["fact","take"],"type":"string"},"confidence":{"nullable":true,"type":"number"},"created_at":{"type":"string"},"expired_at":{"nullable":true,"type":"string"},"graded_confidence":{"nullable":true,"type":"number"},"graded_quality":{"nullable":true,"type":"string"},"holder":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"nullable":true,"type":"string"},"notability":{"nullable":true,"type":"string"},"object_slug":{"nullable":true,"type":"string"},"provenance":{"nullable":true,"type":"string"},"resolved_at":{"nullable":true,"type":"string"},"resolved_outcome":{"nullable":true,"type":"boolean"},"resolved_quality":{"nullable":true,"type":"string"},"signal_gateway_channel_id":{"nullable":true,"type":"string"},"since_date":{"nullable":true,"type":"string"},"superseded_by":{"nullable":true,"type":"string"},"until_date":{"nullable":true,"type":"string"},"valid_from":{"nullable":true,"type":"string"},"valid_until":{"nullable":true,"type":"string"},"weight":{"nullable":true,"type":"number"}},"required":["id","claim_type","claim","audience_scope","created_at"],"title":"BrainClaim","type":"object"},"BrainMergeSuggestionDecideRequest":{"additionalProperties":false,"properties":{"canonical_slug":{"nullable":true,"type":"string"},"decision":{"enum":["approve","reject"],"type":"string"}},"required":["decision"],"title":"BrainMergeSuggestionDecideRequest","type":"object"},"IdentityProviderSyncRunResponse":{"additionalProperties":false,"properties":{"sync_run":{"$ref":"#/components/schemas/IdentityProviderSyncRunItem"}},"required":["sync_run"],"title":"IdentityProviderSyncRunResponse","type":"object"},"AutomationJobItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"cancelled_at":{"format":"date-time","nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"directory_path":{"type":"string"},"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"maximum":9007199254740991,"minimum":1000,"type":"integer"},"label":{"type":"string"},"owner_session_id":{"type":"string"},"reply_route":{"$ref":"#/components/schemas/JSONValue"},"runs":{"items":{"$ref":"#/components/schemas/AutomationJobRunItem"},"type":"array"},"source_actor_event_id":{"format":"uuid","nullable":true,"type":"string"},"source_entry_id":{"nullable":true,"type":"string"},"source_provenance":{"$ref":"#/components/schemas/JSONValue"},"status":{"enum":["active","cancelled","expired"],"type":"string"},"updated_at":{"format":"date-time","type":"string"},"wake_on_failure":{"type":"boolean"}},"required":["id","agent_uid","owner_session_id","source_provenance","reply_route","directory_path","label","wake_on_failure","status","created_at","updated_at","runs"],"title":"AutomationJobItem","type":"object"},"WorkReviewResponse":{"additionalProperties":false,"properties":{"work":{"items":{"$ref":"#/components/schemas/HumanWorkItem"},"type":"array"}},"required":["work"],"title":"WorkReviewResponse","type":"object"},"BrainPageTake":{"additionalProperties":false,"properties":{"active":{"nullable":true,"type":"boolean"},"audience_scope":{"type":"string"},"author_uid":{"nullable":true,"type":"string"},"claim":{"type":"string"},"graded_at":{"nullable":true,"type":"string"},"graded_confidence":{"nullable":true,"type":"number"},"graded_quality":{"nullable":true,"type":"string"},"holder":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"nullable":true,"type":"string"},"provenance":{"nullable":true,"type":"string"},"resolved_at":{"nullable":true,"type":"string"},"resolved_outcome":{"nullable":true,"type":"boolean"},"resolved_quality":{"nullable":true,"type":"string"},"since_date":{"nullable":true,"type":"string"},"superseded_by":{"nullable":true,"type":"string"},"until_date":{"nullable":true,"type":"string"},"weight":{"nullable":true,"type":"number"}},"required":["id","claim","audience_scope"],"title":"BrainPageTake","type":"object"},"WorkerEnvItem":{"additionalProperties":false,"properties":{"declared_key":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"editable":{"type":"boolean"},"error":{"nullable":true,"type":"string"},"kind":{"enum":["declared","custom"],"type":"string"},"name":{"type":"string"},"present":{"type":"boolean"},"secret":{"type":"boolean"},"source":{"enum":["default","global","agent","missing","error"],"type":"string"},"value":{"$ref":"#/components/schemas/JSONValue"}},"required":["name","kind","secret","present","source","editable"],"title":"WorkerEnvItem","type":"object"},"AgentListResponse":{"additionalProperties":false,"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentItem"},"type":"array"}},"required":["agents"],"title":"AgentListResponse","type":"object"},"BrainObjectRollbackRequest":{"additionalProperties":false,"properties":{"slug":{"type":"string"},"version_id":{"type":"string"}},"required":["slug","version_id"],"title":"BrainObjectRollbackRequest","type":"object"},"WorkerEnvDecryptionValue":{"additionalProperties":false,"properties":{"name":{"type":"string"},"value":{"$ref":"#/components/schemas/JSONValue"}},"required":["name","value"],"title":"WorkerEnvDecryptionValue","type":"object"},"PermissionGrantItem":{"additionalProperties":false,"properties":{"action":{"type":"string"},"condition":{"type":"string"},"description":{"nullable":true,"type":"string"},"group_id":{"nullable":true,"type":"string"},"id":{"type":"string"},"inserted_at":{"type":"string"},"principal_uid":{"nullable":true,"type":"string"},"resource_pattern":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","principal_uid","group_id","resource_pattern","action","condition","inserted_at","updated_at"],"title":"PermissionGrantItem","type":"object"},"AutomationJobListResponse":{"additionalProperties":false,"properties":{"automation_jobs":{"items":{"$ref":"#/components/schemas/AutomationJobItem"},"type":"array"}},"required":["automation_jobs"],"title":"AutomationJobListResponse","type":"object"},"ConsoleReadinessSignalRoute":{"additionalProperties":false,"properties":{"complete":{"type":"boolean"}},"required":["complete"],"title":"ConsoleReadinessSignalRoute","type":"object"},"IdentityProviderAdapterListResponse":{"additionalProperties":false,"properties":{"identity_provider_adapters":{"items":{"$ref":"#/components/schemas/IdentityProviderAdapterItem"},"type":"array"}},"required":["identity_provider_adapters"],"title":"IdentityProviderAdapterListResponse","type":"object"},"AgentCreateRequest":{"additionalProperties":false,"properties":{"avatar_url":{"nullable":true,"type":"string"},"display_name":{"type":"string"},"group_memory_disclosure_mode":{"enum":["strict","relaxed"],"type":"string"},"options":{"additionalProperties":true,"type":"object"},"owner_principal_uid":{"type":"string"},"role":{"type":"string"},"uid":{"type":"string"}},"required":["uid","display_name","role","owner_principal_uid"],"title":"AgentCreateRequest","type":"object"},"BackgroundAgentJobTurnUsage":{"additionalProperties":false,"properties":{"last_model_call":{"$ref":"#/components/schemas/BackgroundAgentJobTurnUsageBreakdown"},"model_context_window":{"minimum":0,"type":"integer"},"thread_total":{"$ref":"#/components/schemas/BackgroundAgentJobTurnUsageBreakdown"}},"required":["thread_total","last_model_call"],"title":"BackgroundAgentJobTurnUsage","type":"object"},"BackgroundAgentJobTurnToolExecutionMechanism":{"additionalProperties":false,"properties":{"calls":{"minimum":1,"type":"integer"},"execution_mechanism":{"enum":["local_dynamic","provider_hosted"],"type":"string"},"name":{"minLength":1,"type":"string"},"namespace":{"minLength":1,"type":"string"}},"required":["name","execution_mechanism","calls"],"title":"BackgroundAgentJobTurnToolExecutionMechanism","type":"object"},"SignalChannelStandingOrdersResponse":{"additionalProperties":false,"properties":{"standing_orders":{"$ref":"#/components/schemas/SignalChannelStandingOrdersItem"}},"required":["standing_orders"],"title":"SignalChannelStandingOrdersResponse","type":"object"},"BrainObjectSummary":{"additionalProperties":false,"properties":{"deleted_at":{"nullable":true,"type":"string"},"effective_date":{"nullable":true,"type":"string"},"emotional_weight":{"nullable":true,"type":"number"},"library_managed":{"description":"True when a Brain Source owns the body projection. The detail endpoint gives the exact edit block reason.","type":"boolean"},"slug":{"type":"string"},"subtype":{"nullable":true,"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"updated_at":{"type":"string"}},"required":["slug","type","title","updated_at"],"title":"BrainObjectSummary","type":"object"},"BackgroundAgentJobTurnUsageBreakdown":{"additionalProperties":false,"properties":{"cached_input_tokens":{"minimum":0,"type":"integer"},"input_tokens":{"minimum":0,"type":"integer"},"output_tokens":{"minimum":0,"type":"integer"},"reasoning_output_tokens":{"minimum":0,"type":"integer"},"total_tokens":{"minimum":0,"type":"integer"}},"required":["total_tokens","input_tokens","cached_input_tokens","output_tokens","reasoning_output_tokens"],"title":"BackgroundAgentJobTurnUsageBreakdown","type":"object"},"AppConfigurationListResponse":{"additionalProperties":false,"properties":{"app_configurations":{"items":{"$ref":"#/components/schemas/AppConfigurationItem"},"type":"array"}},"required":["app_configurations"],"title":"AppConfigurationListResponse","type":"object"},"AIGatewayProviderKindListResponse":{"additionalProperties":false,"properties":{"provider_kinds":{"items":{"$ref":"#/components/schemas/AIGatewayProviderKindItem"},"type":"array"}},"required":["provider_kinds"],"title":"AIGatewayProviderKindListResponse","type":"object"},"BrainSource":{"additionalProperties":false,"properties":{"archived_at":{"nullable":true,"type":"string"},"default_audience_scope":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"last_sync_at":{"nullable":true,"type":"string"},"name":{"type":"string"},"upstream_id":{"type":"string"},"upstream_revision":{"nullable":true,"type":"string"}},"required":["id","upstream_id","kind","name"],"title":"BrainSource","type":"object"},"AccessReviewPermissions":{"additionalProperties":false,"properties":{"grants":{"items":{"$ref":"#/components/schemas/AccessReviewGrant"},"type":"array"},"groups":{"items":{"$ref":"#/components/schemas/AccessReviewGroup"},"type":"array"},"principal":{"$ref":"#/components/schemas/AccessReviewPrincipal"}},"required":["principal","groups","grants"],"title":"AccessReviewPermissions","type":"object"},"WorkerFileMoveResponse":{"additionalProperties":false,"properties":{"moved_file":{"additionalProperties":false,"properties":{"from_relative_path":{"type":"string"},"moved":{"type":"boolean"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"},"to_relative_path":{"type":"string"}},"required":["root","from_relative_path","to_relative_path","moved"],"type":"object"}},"required":["moved_file"],"title":"WorkerFileMoveResponse","type":"object"},"SignalDeliveryRequeueRequest":{"additionalProperties":false,"properties":{"binding_name":{"minLength":1,"type":"string"},"outbound_key":{"minLength":1,"type":"string"}},"required":["binding_name","outbound_key"],"title":"SignalDeliveryRequeueRequest","type":"object"},"AIGatewayProviderResponse":{"additionalProperties":false,"properties":{"ai_gateway_provider":{"$ref":"#/components/schemas/AIGatewayProviderItem"}},"required":["ai_gateway_provider"],"title":"AIGatewayProviderResponse","type":"object"},"AccessRestrictionItem":{"additionalProperties":false,"properties":{"cleared_at":{"nullable":true,"type":"string"},"id":{"type":"string"},"inserted_at":{"type":"string"},"provider_time":{"nullable":true,"type":"string"},"reason":{"type":"string"},"recovery_verified_at":{"nullable":true,"type":"string"},"source":{"type":"string"}},"required":["id","source","reason","provider_time","recovery_verified_at","cleared_at","inserted_at"],"title":"AccessRestrictionItem","type":"object"},"ScheduleRunListResponse":{"additionalProperties":false,"properties":{"schedule_runs":{"items":{"$ref":"#/components/schemas/ScheduledEventItem"},"type":"array"}},"required":["schedule_runs"],"title":"ScheduleRunListResponse","type":"object"},"BrainModelStatus":{"additionalProperties":false,"properties":{"configured":{"type":"boolean"},"fallback":{"enum":["ankole_browser"],"nullable":true,"type":"string"},"model":{"nullable":true,"type":"string"},"profile":{"nullable":true,"type":"string"},"profile_error":{"nullable":true,"type":"string"},"provider_available":{"nullable":true,"type":"boolean"},"provider_error":{"nullable":true,"type":"string"},"provider_id":{"nullable":true,"type":"string"}},"required":["configured"],"title":"BrainModelStatus","type":"object"},"AgentLibraryDocumentsResponse":{"additionalProperties":false,"properties":{"library_documents":{"$ref":"#/components/schemas/AgentLibraryDocuments"}},"required":["library_documents"],"title":"AgentLibraryDocumentsResponse","type":"object"},"IdentityProviderAdapterItem":{"additionalProperties":false,"properties":{"adapter_id":{"type":"string"},"capabilities":{"items":{"type":"string"},"type":"array"},"default_provider_id":{"type":"string"},"display_name":{"$ref":"#/components/schemas/LocalizedText"},"fields":{"items":{"$ref":"#/components/schemas/SignalAdapterField"},"type":"array"},"plugin_id":{"nullable":true,"type":"string"}},"required":["adapter_id","capabilities","fields","default_provider_id"],"title":"IdentityProviderAdapterItem","type":"object"},"SignalBindingDetailResponse":{"additionalProperties":false,"properties":{"config":{"$ref":"#/components/schemas/JSONValue"},"signal_binding":{"$ref":"#/components/schemas/SignalBindingItem"},"stored_secret_paths":{"items":{"type":"string"},"type":"array"}},"required":["signal_binding","config","stored_secret_paths"],"title":"SignalBindingDetailResponse","type":"object"},"BackgroundAgentJobResponse":{"additionalProperties":false,"properties":{"job":{"$ref":"#/components/schemas/BackgroundAgentJobItem"}},"required":["job"],"title":"BackgroundAgentJobResponse","type":"object"},"ConsoleApiErrorDetail":{"additionalProperties":true,"properties":{"message":{"type":"string"},"path":{"nullable":true,"type":"string"}},"required":["message"],"title":"ConsoleApiErrorDetail","type":"object"},"TokenQuotaResponse":{"additionalProperties":false,"properties":{"token_quota":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/TokenQuota"}]},"usage":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/TokenQuotaUsage"}]}},"required":["token_quota","usage"],"title":"TokenQuotaResponse","type":"object"},"SignalChannelStandingOrdersItem":{"additionalProperties":false,"properties":{"channel_id":{"type":"string"},"channel_name":{"nullable":true,"type":"string"},"orders":{"nullable":true,"type":"string"},"set_by":{"nullable":true,"type":"string"},"updated_at":{"format":"date-time","nullable":true,"type":"string"}},"required":["channel_id"],"title":"SignalChannelStandingOrdersItem","type":"object"},"WorkerFileUploadRequest":{"additionalProperties":false,"properties":{"file":{"format":"binary","type":"string"},"path":{"type":"string"},"root":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"}},"required":["root","path","file"],"title":"WorkerFileUploadRequest","type":"object"},"AIGatewayProviderWriteRequest":{"additionalProperties":false,"properties":{"base_url":{"nullable":true,"type":"string"},"connection_options":{"additionalProperties":true,"type":"object"},"credential_pool":{"additionalProperties":true,"type":"object"},"provider_id":{"type":"string"},"provider_kind":{"type":"string"}},"title":"AIGatewayProviderWriteRequest","type":"object"},"ComputedMemberPreviewRequest":{"additionalProperties":false,"properties":{"condition":{"description":"CEL condition over the principal object","type":"string"}},"required":["condition"],"title":"ComputedMemberPreviewRequest","type":"object"},"BrainObjectPage":{"additionalProperties":false,"properties":{"body":{"type":"string"},"content_hash":{"nullable":true,"type":"string"},"contradictions":{"items":{"$ref":"#/components/schemas/BrainPageContradiction"},"type":"array"},"deleted":{"type":"boolean"},"edit_block_reason":{"nullable":true,"type":"string"},"editable":{"type":"boolean"},"effective_date":{"nullable":true,"type":"string"},"facts":{"items":{"$ref":"#/components/schemas/BrainPageFact"},"type":"array"},"library_managed":{"description":"True when a Brain Source owns the body projection. Use edit_block_reason to select the supported management action.","type":"boolean"},"links":{"$ref":"#/components/schemas/BrainPageLinks"},"meta":{"additionalProperties":true,"type":"object"},"rendered":{"type":"string"},"slug":{"type":"string"},"subtype":{"nullable":true,"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"takes":{"items":{"$ref":"#/components/schemas/BrainPageTake"},"type":"array"},"timelines":{"items":{"$ref":"#/components/schemas/BrainPageTimeline"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"}},"required":["slug","type","title","deleted","content_hash","body","rendered","editable","edit_block_reason","meta","facts","takes","contradictions","timelines","links","tags"],"title":"BrainObjectPage","type":"object"},"LocalPasswordResetRequest":{"additionalProperties":false,"properties":{"must_change_password":{"default":true,"type":"boolean"}},"title":"LocalPasswordResetRequest","type":"object"},"OIDCClientCreateRequest":{"additionalProperties":false,"properties":{"allow_insecure_local_logout":{"type":"boolean"},"allowed_group_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"allowed_identity_provider_ids":{"items":{"type":"string"},"type":"array"},"allowed_models":{"additionalProperties":{"$ref":"#/components/schemas/ModelProfileWriteRequest"},"type":"object"},"backchannel_logout_session_required":{"type":"boolean"},"backchannel_logout_uri":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"name":{"minLength":1,"type":"string"},"post_logout_redirect_uris":{"items":{"type":"string"},"type":"array"},"redirect_uris":{"items":{"type":"string"},"minItems":1,"type":"array"},"scopes":{"items":{"enum":["openid","profile","email","offline_access","ai_gateway.write"],"type":"string"},"minItems":1,"type":"array"},"type":{"enum":["public","confidential"],"type":"string"}},"required":["name","enabled","type","redirect_uris","scopes","allowed_group_ids","allowed_models"],"title":"OIDCClientCreateRequest","type":"object"},"TokenQuotaWriteRequest":{"additionalProperties":false,"properties":{"limit_tokens":{"minimum":1,"type":"integer"},"period_days":{"minimum":1,"type":"integer"},"period_start_at":{"type":"string"}},"required":["period_days","period_start_at","limit_tokens"],"title":"TokenQuotaWriteRequest","type":"object"},"PrincipalListResponse":{"additionalProperties":false,"properties":{"principals":{"items":{"$ref":"#/components/schemas/PrincipalItem"},"type":"array"}},"required":["principals"],"title":"PrincipalListResponse","type":"object"},"SignalBindingItem":{"additionalProperties":false,"properties":{"adapter":{"type":"string"},"agent_uid":{"type":"string"},"config_key":{"type":"string"},"config_ref":{"type":"string"},"enabled":{"type":"boolean"},"name":{"type":"string"},"unaddressed_group_message_policy":{"enum":["ignore","record_only","may_intervene"],"type":"string"},"unavailable_reason":{"nullable":true,"type":"string"},"unmatched_sender_policy":{"enum":["manual_review","create_standalone"],"type":"string"}},"required":["agent_uid","name","adapter","config_ref","config_key","unaddressed_group_message_policy","unmatched_sender_policy","enabled"],"title":"SignalBindingItem","type":"object"},"AppConfigurationDecryptionResponse":{"additionalProperties":false,"properties":{"decrypted_value":{"$ref":"#/components/schemas/AppConfigurationDecryptionValue"}},"required":["decrypted_value"],"title":"AppConfigurationDecryptionResponse","type":"object"},"BrainSourceCreateResponse":{"additionalProperties":false,"properties":{"source":{"additionalProperties":false,"properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"}},"required":["id","kind","name"],"type":"object"}},"required":["source"],"title":"BrainSourceCreateResponse","type":"object"},"WebhookEndpointListResponse":{"additionalProperties":false,"properties":{"webhook_endpoints":{"items":{"$ref":"#/components/schemas/WebhookEndpointItem"},"type":"array"}},"required":["webhook_endpoints"],"title":"WebhookEndpointListResponse","type":"object"},"AgentSession":{"additionalProperties":false,"description":"One actor session surfaced from durable schedule, event, or job rows.","properties":{"kind":{"description":"`job` marks a background-agent-job session (id `\"job:\"`).","enum":["job","session"],"type":"string"},"last_activity_at":{"nullable":true,"type":"string"},"session_id":{"type":"string"},"status":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"}},"required":["session_id","kind"],"title":"AgentSession","type":"object"},"BrainObjectCreateRequest":{"additionalProperties":false,"properties":{"body":{"type":"string"},"effective_date":{"format":"date","nullable":true,"type":"string"},"meta":{"additionalProperties":true,"type":"object"},"slug":{"type":"string"},"subtype":{"nullable":true,"type":"string"},"title":{"type":"string"},"type":{"type":"string"}},"required":["slug","type","title","body","meta"],"title":"BrainObjectCreateRequest","type":"object"},"BackgroundAgentJobTurnPlan":{"additionalProperties":false,"properties":{"explanation":{"type":"string"},"steps":{"items":{"$ref":"#/components/schemas/BackgroundAgentJobTurnPlanStep"},"maxItems":100,"type":"array"}},"required":["steps"],"title":"BackgroundAgentJobTurnPlan","type":"object"},"ControlPlanePluginItem":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"configured_enabled":{"type":"boolean"},"description":{"$ref":"#/components/schemas/JSONValue"},"display_name":{"$ref":"#/components/schemas/JSONValue"},"id":{"type":"string"},"restart_required":{"type":"boolean"}},"required":["id","display_name","description","configured_enabled","active","restart_required"],"title":"ControlPlanePluginItem","type":"object"},"PermissionGrantListResponse":{"additionalProperties":false,"properties":{"permission_grants":{"items":{"$ref":"#/components/schemas/PermissionGrantItem"},"type":"array"}},"required":["permission_grants"],"title":"PermissionGrantListResponse","type":"object"},"HumanWorkItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"authorization_kind":{"type":"string"},"human_access_version":{"nullable":true,"type":"integer"},"human_uid":{"nullable":true,"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"updated_at":{"type":"string"}},"required":["kind","id","agent_uid","status","authorization_kind","human_uid","human_access_version","updated_at"],"title":"HumanWorkItem","type":"object"},"AccessRestoreRequest":{"additionalProperties":false,"properties":{"identity_verified":{"type":"boolean"},"operation_id":{"type":"string"},"reason":{"type":"string"},"review_fingerprint":{"type":"string"}},"required":["reason","operation_id","review_fingerprint","identity_verified"],"title":"AccessRestoreRequest","type":"object"},"SignalDeliveryFailureItem":{"additionalProperties":false,"properties":{"agent_uid":{"type":"string"},"attempt_count":{"minimum":0,"type":"integer"},"binding_name":{"type":"string"},"can_retry":{"type":"boolean"},"max_attempts":{"minimum":1,"type":"integer"},"outbound_key":{"type":"string"},"possible_duplicate":{"type":"boolean"},"state":{"enum":["blocked","permanent","exhausted"],"type":"string"},"status":{"enum":["failed","unknown_after_send"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["agent_uid","binding_name","outbound_key","status","state","attempt_count","max_attempts","possible_duplicate","can_retry","updated_at"],"title":"SignalDeliveryFailureItem","type":"object"},"PermissionGrantCreateRequest":{"additionalProperties":false,"description":"Exactly one owner: principal_uid or group_name.","properties":{"action":{"description":"Exact action token without colons","type":"string"},"condition":{"default":"true","type":"string"},"description":{"nullable":true,"type":"string"},"group_name":{"nullable":true,"type":"string"},"principal_uid":{"nullable":true,"type":"string"},"resource_pattern":{"description":"AuthZ resource glob pattern, for example workspace:**","type":"string"}},"required":["resource_pattern","action"],"title":"PermissionGrantCreateRequest","type":"object"},"BrainSourceCreateRequest":{"additionalProperties":false,"properties":{"config":{"additionalProperties":true,"nullable":true,"type":"object"},"default_audience_scope":{"nullable":true,"type":"string"},"kind":{"enum":["file","url"],"type":"string"},"name":{"type":"string"},"upstream_id":{"type":"string"}},"required":["upstream_id","kind","name"],"title":"BrainSourceCreateRequest","type":"object"},"BrainMergePageSummary":{"additionalProperties":false,"properties":{"slug":{"type":"string"},"title":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}},"required":["slug"],"title":"BrainMergePageSummary","type":"object"},"ProviderHostedResponse":{"additionalProperties":false,"properties":{"provider_hosted":{"$ref":"#/components/schemas/ProviderHostedCapabilities"}},"required":["provider_hosted"],"title":"ProviderHostedResponse","type":"object"},"SignalAdapterJSONObjectValidation":{"additionalProperties":false,"properties":{"kind":{"enum":["json_object"],"type":"string"},"message":{"$ref":"#/components/schemas/LocalizedText"},"requiredStringProperties":{"items":{"type":"string"},"type":"array"},"stringPrefixes":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["kind","message"],"title":"SignalAdapterJSONObjectValidation","type":"object"},"PermissionGrantResponse":{"additionalProperties":false,"properties":{"permission_grant":{"$ref":"#/components/schemas/PermissionGrantItem"}},"required":["permission_grant"],"title":"PermissionGrantResponse","type":"object"},"IdentityProviderWriteRequest":{"additionalProperties":false,"properties":{"adapter_id":{"type":"string"},"config":{"$ref":"#/components/schemas/JSONValue"},"enabled":{"type":"boolean"}},"required":["adapter_id","config"],"title":"IdentityProviderWriteRequest","type":"object"},"SignalDeliveryRequeueResponse":{"additionalProperties":false,"properties":{"requeued":{"type":"boolean"}},"required":["requeued"],"title":"SignalDeliveryRequeueResponse","type":"object"},"ConsoleReadinessWorker":{"additionalProperties":false,"properties":{"complete":{"type":"boolean"},"ready_count":{"minimum":0,"type":"integer"}},"required":["complete","ready_count"],"title":"ConsoleReadinessWorker","type":"object"},"BrainMergeSuggestion":{"additionalProperties":false,"properties":{"a":{"$ref":"#/components/schemas/BrainMergePageSummary"},"b":{"$ref":"#/components/schemas/BrainMergePageSummary"},"created_at":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"}},"required":["id","a","b","reason","status","created_at"],"title":"BrainMergeSuggestion","type":"object"},"ScheduleOccurrences":{"additionalProperties":false,"description":"Bound of a recurring schedule: exactly one of `count` (due slots to run) or `until` (inclusive cutoff instant).","properties":{"count":{"minimum":1,"type":"integer"},"until":{"description":"ISO 8601 instant, or a local time that the schedule timezone resolves. Stored as UTC.","type":"string"}},"title":"ScheduleOccurrences","type":"object"},"OIDCClientItem":{"additionalProperties":false,"properties":{"allow_insecure_local_logout":{"type":"boolean"},"allowed_group_ids":{"items":{"format":"uuid","type":"string"},"type":"array"},"allowed_identity_provider_ids":{"items":{"type":"string"},"type":"array"},"allowed_models":{"additionalProperties":{"$ref":"#/components/schemas/ModelProfileWriteRequest"},"type":"object"},"backchannel_logout_session_required":{"type":"boolean"},"backchannel_logout_uri":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"inserted_at":{"format":"date-time","type":"string"},"name":{"type":"string"},"post_logout_redirect_uris":{"items":{"type":"string"},"type":"array"},"redirect_uris":{"items":{"type":"string"},"type":"array"},"scopes":{"items":{"type":"string"},"type":"array"},"type":{"enum":["public","confidential"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","name","enabled","type","redirect_uris","scopes","allowed_identity_provider_ids","backchannel_logout_uri","backchannel_logout_session_required","post_logout_redirect_uris","allow_insecure_local_logout","allowed_group_ids","allowed_models","inserted_at","updated_at"],"title":"OIDCClientItem","type":"object"},"PrincipalGroupMemberItem":{"additionalProperties":false,"properties":{"avatar_url":{"nullable":true,"type":"string"},"display_name":{"nullable":true,"type":"string"},"member_since":{"description":"Stored membership timestamp; null for evaluated computed members","nullable":true,"type":"string"},"status":{"enum":["active","disabled"],"type":"string"},"type":{"enum":["human","agent","system"],"type":"string"},"uid":{"type":"string"}},"required":["uid","type","status","member_since"],"title":"PrincipalGroupMemberItem","type":"object"},"AppConfigurationDecryptionValue":{"additionalProperties":false,"properties":{"key":{"type":"string"},"value":{"$ref":"#/components/schemas/JSONValue"}},"required":["key","value"],"title":"AppConfigurationDecryptionValue","type":"object"},"SignalAdapterPatternValidation":{"additionalProperties":false,"properties":{"kind":{"enum":["pattern"],"type":"string"},"message":{"$ref":"#/components/schemas/LocalizedText"},"pattern":{"type":"string"}},"required":["kind","message","pattern"],"title":"SignalAdapterPatternValidation","type":"object"}},"securitySchemes":{"aiGatewayBearer":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"consoleBearer":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"title":"Ankole API","version":"2026-09-04"},"openapi":"3.0.0","paths":{"/api/v1/ai-gateway/files/{file_id}/content":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayFilesController.content","parameters":[{"description":"","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"File bytes"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Not found"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Download AIGateway vision file content","tags":["AIGateway Files"]}},"/api/v1/ai-gateway/providers/{provider_id}/credentials/{credential_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.delete_credential","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Delete one credential-pool member","tags":["AIGateway"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.put_credential","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"credential_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayCredentialWriteRequest"}}},"description":"Credential","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid credential"}},"security":[{"consoleBearer":[]}],"summary":"Update one credential-pool member","tags":["AIGateway"]}},"/api/v1/agent-computer-workers/{worker_id}/files/content":{"get":{"callbacks":{},"operationId":"AnkoleWeb.WorkerFileController.download","parameters":[{"description":"","in":"path","name":"worker_id","required":true,"schema":{"type":"string"}},{"description":"Worker filesystem root","in":"query","name":"root","required":true,"schema":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"}},{"description":"File path relative to the root","in":"query","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"File content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Worker not ready"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid request"}},"security":[{"consoleBearer":[]}],"summary":"Download one file from a worker filesystem root","tags":["Workers"]}},"/api/v1/agents/{agent_uid}/cron-schedules/{cron_schedule_id}/pause":{"post":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.pause_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"}},"security":[{"consoleBearer":[]}],"summary":"Pause one recurring schedule","tags":["Schedule"]}},"/api/v1/identity-providers":{"get":{"callbacks":{},"operationId":"AnkoleWeb.IdentityProviderController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderListResponse"}}},"description":"Identity providers"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List configured identity providers","tags":["Identity Providers"]}},"/api/v1/control-plane-plugins":{"get":{"callbacks":{},"operationId":"AnkoleWeb.ControlPlanePluginController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlPlanePluginListResponse"}}},"description":"Control Plane Plugins"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid configuration"}},"security":[{"consoleBearer":[]}],"summary":"List active and next-start Control Plane Plugin state","tags":["Control Plane Plugins"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.ControlPlanePluginController.update","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlPlanePluginWriteRequest"}}},"description":"Control Plane Plugin configuration","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlPlanePluginListResponse"}}},"description":"Control Plane Plugins"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid configuration"}},"security":[{"consoleBearer":[]}],"summary":"Configure one Control Plane Plugin for the next process start","tags":["Control Plane Plugins"]}},"/api/v1/agents/{agent_uid}/cron-schedules":{"post":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.create_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronWriteRequest"}}},"description":"Cron schedule","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid schedule"}},"security":[{"consoleBearer":[]}],"summary":"Create one recurring schedule","tags":["Schedule"]}},"/api/v1/principals/{uid}/groups":{"get":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.groups","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupListResponse"}}},"description":"Principal groups"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"List the static Principal groups one Principal belongs to","tags":["Principals"]}},"/api/v1/ai-gateway/files/{file_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayFilesController.delete","parameters":[{"description":"","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"deleted":{"type":"boolean"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"}},"required":["id","object","deleted"],"type":"object"}}},"description":"Deleted file"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Not found"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Delete an AIGateway vision file","tags":["AIGateway Files"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayFilesController.show","parameters":[{"description":"","in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"bytes":{"minimum":0,"type":"integer"},"created_at":{"type":"integer"},"expires_at":{"nullable":true,"type":"integer"},"filename":{"type":"string"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"},"purpose":{"enum":["vision"],"type":"string"},"status":{"enum":["processed"],"type":"string"}},"required":["id","object","bytes","created_at","filename","purpose","status"],"type":"object"}}},"description":"File object"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Not found"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Retrieve an AIGateway vision file","tags":["AIGateway Files"]}},"/api/v1/brain/merge-suggestions":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_merge_suggestions","parameters":[{"description":"","in":"query","name":"status","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainMergeSuggestionListResponse"}}},"description":"Merge suggestions"}},"security":[{"consoleBearer":[]}],"summary":"List duplicate-page merge suggestions","tags":["Brain"]}},"/api/v1/app-configurations":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AppConfigurationController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationListResponse"}}},"description":"AppConfigure entries"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List console-visible AppConfigure entries","tags":["AppConfigure"]}},"/api/v1/agents/{agent_uid}/checkbacks/{scheduled_event_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.cancel_checkback","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"scheduled_event_id","required":true,"schema":{"maximum":9007199254740991,"minimum":1000,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventResponse"}}},"description":"Scheduled event"}},"security":[{"consoleBearer":[]}],"summary":"Cancel one pending checkback wakeup","tags":["Schedule"]}},"/api/v1/principal-groups":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupListResponse"}}},"description":"Principal groups"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List Principal groups","tags":["AuthZ"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupCreateRequest"}}},"description":"Principal group","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupResponse"}}},"description":"Principal group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid group"}},"security":[{"consoleBearer":[]}],"summary":"Create one operator Principal group","tags":["AuthZ"]}},"/api/v1/principals/{uid}/local-password-resets":{"post":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.create_local_password_reset","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPasswordResetRequest"}}},"description":"Reset options","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalPasswordResetResponse"}}},"description":"New one-time password"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Local sign-in disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid reset"}},"security":[{"consoleBearer":[]}],"summary":"Replace one user's local password with a new one-time password","tags":["Principals"]}},"/api/v1/principal-groups/computed-member-previews":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.preview_computed_members","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputedMemberPreviewRequest"}}},"description":"Computed member preview","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupMemberListResponse"}}},"description":"Principal group members"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid condition"}},"security":[{"consoleBearer":[]}],"summary":"Preview active Principals matching a computed group condition","tags":["AuthZ"]}},"/api/v1/checkbacks":{"get":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.index_checkbacks","parameters":[{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"maximum":500,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventListResponse"}}},"description":"Scheduled events"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List checkback wakeups","tags":["Schedule"]}},"/api/v1/agents/{agent_uid}/token-quota/reset":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.reset_token_quota","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenQuotaResponse"}}},"description":"Token quota"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"No token quota to reset"}},"security":[{"consoleBearer":[]}],"summary":"Start a new token quota period at this instant","tags":["Agents"]}},"/api/v1/signal-channels/{channel_id}/standing-orders":{"get":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.show_channel_standing_orders","parameters":[{"description":"","in":"path","name":"channel_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalChannelStandingOrdersResponse"}}},"description":"Standing orders"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read the standing orders of one signal channel","tags":["Signal Bindings"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.put_channel_standing_orders","parameters":[{"description":"","in":"path","name":"channel_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalChannelStandingOrdersWriteRequest"}}},"description":"Standing orders","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalChannelStandingOrdersResponse"}}},"description":"Standing orders"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"}},"security":[{"consoleBearer":[]}],"summary":"Replace the standing orders of one signal channel","tags":["Signal Bindings"]}},"/api/v1/ai-gateway/providers/{provider_id}/credentials":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.add_credential","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayCredentialWriteRequest"}}},"description":"Credential","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid credential"}},"security":[{"consoleBearer":[]}],"summary":"Add one credential-pool member","tags":["AIGateway"]}},"/api/v1/agents/{agent_uid}/library-capabilities/agent-plugins/{id}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.put_agent_plugin_override","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryAgentOverrideWriteRequest"}}},"description":"Agent Plugin override","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Set or clear one Agent Plugin override","tags":["Agent Library"]}},"/api/v1/brain/claims/{claim_id}/resolve":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.resolve_take","parameters":[{"description":"","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainTakeResolveRequest"}}},"description":"Resolve","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimResponse"}}},"description":"Claim"}},"security":[{"consoleBearer":[]}],"summary":"Resolve one take; resolution is immutable","tags":["Brain"]}},"/api/v1/brain/claims/{claim_id}/forget":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.forget_claim","parameters":[{"description":"","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimForgetRequest"}}},"description":"Forget","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimResponse"}}},"description":"Claim"}},"security":[{"consoleBearer":[]}],"summary":"Expire a fact or deactivate a take with a reason","tags":["Brain"]}},"/api/v1/identity-providers/{provider_id}/directory-reviews":{"post":{"callbacks":{},"operationId":"AnkoleWeb.DirectoryAccessController.approve","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryApproveRequest"}}},"description":"Snapshot review","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryAccessResponse"}}},"description":"Directory evidence"}},"security":[{"consoleBearer":[]}],"summary":"Approve a current directory snapshot and its removals","tags":["Identity Providers"]}},"/api/v1/agent-computer-workers/{worker_id}/files":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.WorkerFileController.delete","parameters":[{"description":"","in":"path","name":"worker_id","required":true,"schema":{"type":"string"}},{"description":"Worker filesystem root","in":"query","name":"root","required":true,"schema":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"}},{"description":"Path relative to the root","in":"query","name":"path","required":true,"schema":{"type":"string"}},{"description":"Required for directories","in":"query","name":"recursive","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerFileDeleteResponse"}}},"description":"Deleted file"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Worker not ready"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid request"}},"security":[{"consoleBearer":[]}],"summary":"Delete one file or directory from a worker filesystem root","tags":["Workers"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.WorkerFileController.index","parameters":[{"description":"","in":"path","name":"worker_id","required":true,"schema":{"type":"string"}},{"description":"Worker filesystem root","in":"query","name":"root","required":true,"schema":{"enum":["user_files","agent_installed_skills","agent_sessions"],"type":"string"}},{"description":"Directory path relative to the root","in":"query","name":"path","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerFileListResponse"}}},"description":"Files"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Worker not ready"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid request"}},"security":[{"consoleBearer":[]}],"summary":"List files in one worker filesystem root","tags":["Workers"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.WorkerFileController.upload","parameters":[{"description":"","in":"path","name":"worker_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/WorkerFileUploadRequest"}}},"description":"multipart form","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerFileUploadResponse"}}},"description":"Uploaded file"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Worker not ready"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid request"}},"security":[{"consoleBearer":[]}],"summary":"Upload one file into a worker filesystem root","tags":["Workers"]}},"/api/v1/brain/suggestions":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_suggestions","parameters":[{"description":"","in":"query","name":"status","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSuggestionListResponse"}}},"description":"Suggestions"}},"security":[{"consoleBearer":[]}],"summary":"List schema promotion suggestions","tags":["Brain"]}},"/api/v1/brain/objects/fork":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.fork_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectForkRequest"}}},"description":"Fork","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectSummaryResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Fork one library-managed page into instance ownership","tags":["Brain"]}},"/api/v1/ai-gateway/responses":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.responses","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OpenResponses request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OpenResponses response"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Create a stateless OpenResponses response","tags":["AIGateway"]}},"/api/v1/principals/{uid}/work-cleanup-retries":{"post":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.retry_cleanup","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAccessResponse"}}},"description":"Human access"}},"security":[{"consoleBearer":[]}],"summary":"Retry cleanup of revoked future work","tags":["Principals"]}},"/api/v1/ai-gateway/provider-kinds":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.provider_kinds","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderKindListResponse"}}},"description":"Provider kinds"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List AIGateway provider kinds","tags":["AIGateway"]}},"/api/v1/agents/{agent_uid}/library-capabilities":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.agent_index","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Read resolved Agent Library capabilities for one Agent","tags":["Agent Library"]}},"/api/v1/principal-groups/{name}/members/{principal_uid}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.remove_member","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"principal_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupMemberListResponse"}}},"description":"Principal group members"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Membership cannot change"}},"security":[{"consoleBearer":[]}],"summary":"Remove one Principal from a static operator group","tags":["AuthZ"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.add_member","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"principal_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupMemberListResponse"}}},"description":"Principal group members"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Membership cannot change"}},"security":[{"consoleBearer":[]}],"summary":"Add one Principal to a static operator group","tags":["AuthZ"]}},"/api/v1/brain/objects/forget":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.forget_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectForgetRequest"}}},"description":"Forget","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectSummaryResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Soft-delete one object with a reason","tags":["Brain"]}},"/api/v1/webhook-endpoints":{"get":{"callbacks":{},"operationId":"AnkoleWeb.WebhookEndpointController.index","parameters":[{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointListResponse"}}},"description":"Webhook endpoints"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List webhook endpoints","tags":["Webhooks"]}},"/api/v1/ai-gateway/files":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayFilesController.index","parameters":[{"description":"","in":"query","name":"after","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"type":"integer"}},{"description":"","in":"query","name":"order","required":false,"schema":{"enum":["asc","desc"],"type":"string"}},{"description":"","in":"query","name":"purpose","required":false,"schema":{"enum":["vision"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"bytes":{"minimum":0,"type":"integer"},"created_at":{"type":"integer"},"expires_at":{"nullable":true,"type":"integer"},"filename":{"type":"string"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"},"purpose":{"enum":["vision"],"type":"string"},"status":{"enum":["processed"],"type":"string"}},"required":["id","object","bytes","created_at","filename","purpose","status"],"type":"object"},"type":"array"},"first_id":{"nullable":true,"type":"string"},"has_more":{"type":"boolean"},"last_id":{"nullable":true,"type":"string"},"object":{"enum":["list"],"type":"string"}},"required":["object","data","first_id","last_id","has_more"],"type":"object"}}},"description":"File list"},"400":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Invalid pagination"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"List AIGateway vision files","tags":["AIGateway Files"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayFilesController.create","parameters":[],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"expires_after":{"properties":{"anchor":{"enum":["created_at"],"type":"string"},"seconds":{"maximum":2592000,"minimum":3600,"type":"integer"}},"required":["anchor","seconds"],"type":"object"},"file":{"format":"binary","type":"string"},"purpose":{"enum":["vision"],"type":"string"}},"required":["file","purpose"],"type":"object"}}},"description":"Vision file","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"bytes":{"minimum":0,"type":"integer"},"created_at":{"type":"integer"},"expires_at":{"nullable":true,"type":"integer"},"filename":{"type":"string"},"id":{"type":"string"},"object":{"enum":["file"],"type":"string"},"purpose":{"enum":["vision"],"type":"string"},"status":{"enum":["processed"],"type":"string"}},"required":["id","object","bytes","created_at","filename","purpose","status"],"type":"object"}}},"description":"File object"},"400":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Invalid file"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Upload an AIGateway vision file","tags":["AIGateway Files"]}},"/api/v1/ai-gateway/providers/{provider_id}/credential-pool/strategy":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.put_credential_strategy","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayCredentialStrategyWriteRequest"}}},"description":"Credential strategy","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid strategy"}},"security":[{"consoleBearer":[]}],"summary":"Set the provider credential-pool selection strategy","tags":["AIGateway"]}},"/api/v1/identity-mappings":{"post":{"callbacks":{},"operationId":"AnkoleWeb.IdentityMappingRequestController.create_mapping","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingWriteRequest"}}},"description":"Identity mapping","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingResponse"}}},"description":"Bound identity"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid mapping"}},"security":[{"consoleBearer":[]}],"summary":"Map a provider subject to a principal proactively","tags":["Identity Mappings"]}},"/api/v1/ai-gateway/providers/{provider_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.delete_provider","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Provider in use"}},"security":[{"consoleBearer":[]}],"summary":"Disable or delete one AIGateway provider","tags":["AIGateway"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.show","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Get one AIGateway provider and its credential-pool status","tags":["AIGateway"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.put_provider","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderWriteRequest"}}},"description":"AIGateway provider","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid provider"}},"security":[{"consoleBearer":[]}],"summary":"Create or update one AIGateway provider","tags":["AIGateway"]}},"/api/v1/ai-gateway/models":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.models","parameters":[{"description":"Comma-separated output modalities or all","in":"query","name":"output_modalities","required":false,"schema":{"type":"string"}},{"description":"Comma-separated input modalities","in":"query","name":"input_modalities","required":false,"schema":{"type":"string"}},{"description":"Comma-separated supported request parameters","in":"query","name":"supported_parameters","required":false,"schema":{"type":"string"}},{"description":"OpenRouter-style sort key","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Free-text selector search","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"Minimum context length","in":"query","name":"context","required":false,"schema":{"type":"integer"}},{"description":"Minimum prompt price","in":"query","name":"min_price","required":false,"schema":{"type":"number"}},{"description":"Maximum prompt price","in":"query","name":"max_price","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OpenRouter-style model list"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"List AIGateway model selectors","tags":["AIGateway"]}},"/api/v1/brain/search-preview":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.search_preview","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSearchPreviewRequest"}}},"description":"Preview","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSearchPreviewResponse"}}},"description":"Result"}},"security":[{"consoleBearer":[]}],"summary":"Run recall as any Principal for diagnosis","tags":["Brain"]}},"/api/v1/background-agent-jobs":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BackgroundAgentJobController.index","parameters":[{"description":"","in":"query","name":"status","required":false,"schema":{"enum":["queued","running","waiting_on_user","succeeded","failed","stopped"],"type":"string"}},{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}},{"description":"Matches an exact Job ID or a case-insensitive title fragment.","in":"query","name":"q","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundAgentJobListResponse"}}},"description":"Background Agent Jobs"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid filters"}},"security":[{"consoleBearer":[]}],"summary":"List background Agent Jobs","tags":["Background Agent Jobs"]}},"/api/v1/agent-library/skills/{id}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.put_global_skill","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryGlobalDefaultWriteRequest"}}},"description":"Skill default","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Set one global Skill default","tags":["Agent Library"]}},"/api/v1/identity-mapping-requests/{id}/bind":{"post":{"callbacks":{},"operationId":"AnkoleWeb.IdentityMappingRequestController.bind","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingBindRequest"}}},"description":"Bind target","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingResponse"}}},"description":"Bound identity"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid bind target"}},"security":[{"consoleBearer":[]}],"summary":"Bind one pending mapping request to a principal","tags":["Identity Mappings"]}},"/api/v1/ai-gateway/web_fetch":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.web_fetch","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Web fetch request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Web fetch response"},"400":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Invalid web fetch request"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Fetch web pages through AIGateway","tags":["AIGateway"]}},"/api/v1/identity-providers/{provider_id}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.IdentityProviderController.put_provider","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderWriteRequest"}}},"description":"Identity provider","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderResponse"}}},"description":"Identity provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid provider"}},"security":[{"consoleBearer":[]}],"summary":"Create or update one identity provider","tags":["Identity Providers"]}},"/api/v1/identity-mapping-requests":{"get":{"callbacks":{},"operationId":"AnkoleWeb.IdentityMappingRequestController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingRequestListResponse"}}},"description":"Pending mapping requests"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List pending identity mapping requests","tags":["Identity Mappings"]}},"/api/v1/principal-groups/{name}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.delete","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupResponse"}}},"description":"Principal group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Group cannot be deleted"}},"security":[{"consoleBearer":[]}],"summary":"Delete one operator Principal group without grants","tags":["AuthZ"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.show","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupResponse"}}},"description":"Principal group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one Principal group","tags":["AuthZ"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.update","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupUpdateRequest"}}},"description":"Principal group","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupResponse"}}},"description":"Principal group"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid group"}},"security":[{"consoleBearer":[]}],"summary":"Update mutable fields of one Principal group","tags":["AuthZ"]}},"/api/v1/brain/sources/{source_id}":{"patch":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.update_source","parameters":[{"description":"","in":"path","name":"source_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceUpdateRequest"}}},"description":"Source defaults","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceCreateResponse"}}},"description":"Source"}},"security":[{"consoleBearer":[]}],"summary":"Set the audience for new OIDC Client conversations","tags":["Brain"]}},"/api/v1/agents/{agent_uid}/model-profiles/{profile}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.delete_model_profile","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"profile","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProfileResponse"}}},"description":"Model profile"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Profile cannot be cleared"}},"security":[{"consoleBearer":[]}],"summary":"Clear one optional model profile for an agent","tags":["Agents"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.put_model_profile","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"profile","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProfileWriteRequest"}}},"description":"Model profile","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProfileResponse"}}},"description":"Model profile"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid model profile"}},"security":[{"consoleBearer":[]}],"summary":"Create or update one model profile for an agent","tags":["Agents"]}},"/api/v1/agent-computer-workers/{worker_id}/file-moves":{"post":{"callbacks":{},"operationId":"AnkoleWeb.WorkerFileController.move","parameters":[{"description":"","in":"path","name":"worker_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerFileMoveRequest"}}},"description":"Move","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerFileMoveResponse"}}},"description":"Moved file"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Worker not ready"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid request"}},"security":[{"consoleBearer":[]}],"summary":"Rename or move a path in a worker filesystem root","tags":["Workers"]}},"/api/v1/identity-provider-adapters":{"get":{"callbacks":{},"operationId":"AnkoleWeb.IdentityProviderController.adapters","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderAdapterListResponse"}}},"description":"Identity-provider adapters"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List identity-provider adapters","tags":["Identity Providers"]}},"/api/v1/brain/sources":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_sources","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceListResponse"}}},"description":"Sources"}},"security":[{"consoleBearer":[]}],"summary":"List learning sources","tags":["Brain"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.create_source","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceCreateRequest"}}},"description":"Source","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceCreateResponse"}}},"description":"Source"}},"security":[{"consoleBearer":[]}],"summary":"Register one file or url learning source","tags":["Brain"]}},"/api/v1/oidc-clients/{id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientResponse"}}},"description":"Deleted OIDC Client"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Delete an OIDC Client","tags":["OIDC Clients"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientResponse"}}},"description":"OIDC Client"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read an OIDC Client","tags":["OIDC Clients"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientUpdateRequest"}}},"description":"OIDC Client fields","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientResponse"}}},"description":"OIDC Client"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid OIDC Client"}},"security":[{"consoleBearer":[]}],"summary":"Update an OIDC Client","tags":["OIDC Clients"]}},"/api/v1/ai-gateway/responses/{response_id}":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.retrieve_response","parameters":[{"description":"Stored response id, formatted as resp_{uuid}","in":"path","name":"response_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"OpenResponses response"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Not found"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Retrieve a stored stateful OpenResponses response","tags":["AIGateway"]}},"/api/v1/background-agent-jobs/{job_id}":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BackgroundAgentJobController.show","parameters":[{"description":"","in":"path","name":"job_id","required":true,"schema":{"maximum":9007199254740991,"minimum":1000,"type":"integer"}},{"description":"The `turns_next_cursor` of the preceding page; omit it for the newest Turns.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundAgentJobResponse"}}},"description":"Background Agent Job"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid cursor"}},"security":[{"consoleBearer":[]}],"summary":"Read one background Agent Job and one page of its runtime Turn trajectory","tags":["Background Agent Jobs"]}},"/api/v1/agents/{agent_uid}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.delete","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Agent"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Disable an active agent, or delete an agent that is already disabled","tags":["Agents"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.show","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Agent"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one agent","tags":["Agents"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.update","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}},"description":"Agent","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Agent"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid agent"}},"security":[{"consoleBearer":[]}],"summary":"Update one agent","tags":["Agents"]}},"/api/v1/oidc-clients/{id}/secret-rotations":{"post":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.rotate_secret","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientSecretResponse"}}},"description":"OIDC Client and one-time secret"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Public Client"}},"security":[{"consoleBearer":[]}],"summary":"Rotate a confidential OIDC Client secret","tags":["OIDC Clients"]}},"/api/v1/ai-gateway/providers/{provider_id}/chatgpt-login/browser-callback":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.complete_chatgpt_browser_login","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTBrowserLoginRequest"}}},"description":"Browser callback","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTLoginResponse"}}},"description":"ChatGPT login"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Login failed"}},"security":[{"consoleBearer":[]}],"summary":"Complete a ChatGPT browser-paste login","tags":["AIGateway"]}},"/api/v1/agents/{agent_uid}/worker-envs/{name}/decryptions":{"post":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.decrypt_for_agent","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvDecryptionResponse"}}},"description":"Decrypted value"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not encrypted"}},"security":[{"consoleBearer":[]}],"summary":"Reveal the encrypted worker shell variable effective for one agent","tags":["WorkerEnv"]}},"/api/v1/worker-envs/{name}/decryptions":{"post":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.decrypt","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvDecryptionResponse"}}},"description":"Decrypted value"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not encrypted"}},"security":[{"consoleBearer":[]}],"summary":"Reveal one encrypted installation-wide worker shell variable","tags":["WorkerEnv"]}},"/api/v1/identity-providers/{provider_id}/sync-runs":{"post":{"callbacks":{},"operationId":"AnkoleWeb.IdentityProviderController.run_sync","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderSyncRunResponse"}}},"description":"Identity-provider sync run"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Sync disabled"}},"security":[{"consoleBearer":[]}],"summary":"Enqueue one identity-provider full directory sync","tags":["Identity Providers"]}},"/api/v1/agents/{agent_uid}/automation-jobs/{automation_job_id}":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AutomationJobController.show","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"automation_job_id","required":true,"schema":{"maximum":9007199254740991,"minimum":1,"type":"integer"}},{"description":"","in":"query","name":"runs","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationJobResponse"}}},"description":"Automation job"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid job identifier"}},"security":[{"consoleBearer":[]}],"summary":"Read one automation job and its recent run history","tags":["Automation Jobs"]}},"/api/v1/signal-bindings":{"get":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.index","parameters":[{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingListResponse"}}},"description":"Signal bindings"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List signal bindings","tags":["Signal Bindings"]}},"/api/v1/agents/{agent_uid}/skill-lessons/{lesson_id}/retire":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AgentSkillLessonController.retire","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"lesson_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillLessonsResponse"}}},"description":"Agent skill lessons"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid skill lesson"}},"security":[{"consoleBearer":[]}],"summary":"Retire one skill lesson","tags":["Agents"]}},"/api/v1/principals/{uid}/grants":{"get":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.grants","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantListResponse"}}},"description":"Permission grants"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"List permission grants owned directly by one Principal","tags":["Principals"]}},"/api/v1/ai-gateway/conversations/{conversation_id}":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayConversationController.show","parameters":[{"description":"","in":"path","name":"conversation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayConversationResponse"}}},"description":"Conversation"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one AIGateway conversation","tags":["AI Gateway Conversations"]}},"/api/v1/agents":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentListResponse"}}},"description":"Agents"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List agents, including disabled agents","tags":["Agents"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateRequest"}}},"description":"Agent","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Agent"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid agent"}},"security":[{"consoleBearer":[]}],"summary":"Create one agent","tags":["Agents"]}},"/api/v1/ai-gateway/providers":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderListResponse"}}},"description":"AIGateway providers"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List configured AIGateway providers","tags":["AIGateway"]}},"/api/v1/brain/objects/restore":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.restore_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectRestoreRequest"}}},"description":"Restore","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectSummaryResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Restore one soft-deleted object inside its purge window","tags":["Brain"]}},"/api/v1/brain/health":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.health","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainHealthResponse"}}},"description":"Health"}},"security":[{"consoleBearer":[]}],"summary":"Read the Brain health snapshot","tags":["Brain"]}},"/api/v1/agents/{agent_uid}/cron-schedules/{cron_schedule_id}/resume":{"post":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.resume_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"}},"security":[{"consoleBearer":[]}],"summary":"Resume one recurring schedule","tags":["Schedule"]}},"/api/v1/work-access-reviews":{"get":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.unresolved_work","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkReviewResponse"}}},"description":"Work review"}},"security":[{"consoleBearer":[]}],"summary":"List work whose Human or service authority needs review","tags":["Principals"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.classify_work","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkClassifyRequest"}}},"description":"Work review","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkReviewResponse"}}},"description":"Work review"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Review changed"}},"security":[{"consoleBearer":[]}],"summary":"Set the reviewed authority of unresolved work","tags":["Principals"]}},"/api/v1/automation-jobs":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AutomationJobController.index","parameters":[{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"maximum":500,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationJobListResponse"}}},"description":"Automation jobs"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid filters"}},"security":[{"consoleBearer":[]}],"summary":"List automation jobs","tags":["Automation Jobs"]}},"/api/v1/brain/claims/{claim_id}/supersede":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.supersede_claim","parameters":[{"description":"","in":"path","name":"claim_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimSupersedeRequest"}}},"description":"Supersede","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimResponse"}}},"description":"Claim"}},"security":[{"consoleBearer":[]}],"summary":"Supersede one claim with corrected content","tags":["Brain"]}},"/api/v1/agents/{agent_uid}/model-profiles":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.index_model_profiles","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProfilesResponse"}}},"description":"Model profiles"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read all model profiles for one agent","tags":["Agents"]}},"/api/v1/signal-adapters":{"get":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.adapters","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalAdapterListResponse"}}},"description":"Signal adapters"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Adapter registry unavailable"}},"security":[{"consoleBearer":[]}],"summary":"List signal adapters available for bindings","tags":["Signal Bindings"]}},"/api/v1/oidc-clients/{id}/logout-deliveries":{"get":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.logout_deliveries","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutDeliveriesResponse"}}},"description":"Logout deliveries"}},"security":[{"consoleBearer":[]}],"summary":"List Back-Channel Logout deliveries","tags":["OIDC Clients"]}},"/api/v1/principals":{"get":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.index","parameters":[{"description":"","in":"query","name":"include_disabled","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalListResponse"}}},"description":"Principals"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List principals","tags":["Principals"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalCreateRequest"}}},"description":"User","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalCreateResponse"}}},"description":"Created user"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Local sign-in disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid user"}},"security":[{"consoleBearer":[]}],"summary":"Create a human user with a local sign-in password","tags":["Principals"]}},"/api/v1/permission-grants":{"post":{"callbacks":{},"operationId":"AnkoleWeb.PermissionGrantController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantCreateRequest"}}},"description":"Permission grant","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantResponse"}}},"description":"Permission grant"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Owner not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid grant"}},"security":[{"consoleBearer":[]}],"summary":"Create one permission grant for a Principal or a group","tags":["AuthZ"]}},"/api/v1/agents/{agent_uid}/signal-bindings/{binding_name}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.delete","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"binding_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingResponse"}}},"description":"Signal binding"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Disable one signal binding for an agent","tags":["Signal Bindings"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.show","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"binding_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingDetailResponse"}}},"description":"Signal binding"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Adapter registry unavailable"}},"security":[{"consoleBearer":[]}],"summary":"Read one signal binding for editing","tags":["Signal Bindings"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.update_binding","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"binding_name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingUpdateRequest"}}},"description":"Signal binding update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingResponse"}}},"description":"Signal binding"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Target binding conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Adapter registry unavailable"}},"security":[{"consoleBearer":[]}],"summary":"Edit or move one signal binding","tags":["Signal Bindings"]}},"/api/v1/principals/{uid}/access-restrictions/{restriction_id}/clear":{"post":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.clear_restriction","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"restriction_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessReasonRequest"}}},"description":"Review","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAccessResponse"}}},"description":"Human access"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Review required"}},"security":[{"consoleBearer":[]}],"summary":"Clear one verified restriction without restoring access","tags":["Principals"]}},"/api/v1/principal-groups/{name}/members":{"get":{"callbacks":{},"description":"Static groups return stored memberships. Computed groups return the members evaluated from their condition.","operationId":"AnkoleWeb.AuthZGroupController.members","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalGroupMemberListResponse"}}},"description":"Principal group members"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"List effective members of one Principal group","tags":["AuthZ"]}},"/api/v1/agents/{agent_uid}/library-capabilities/skills/{id}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.put_agent_skill_override","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryAgentOverrideWriteRequest"}}},"description":"Agent Skill override","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Set or clear one Agent Skill override","tags":["Agent Library"]}},"/api/v1/brain/dream":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.dream","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainDreamResponse"}}},"description":"Result"}},"security":[{"consoleBearer":[]}],"summary":"Enqueue a Dreaming round without changing its schedule","tags":["Brain"]}},"/api/v1/brain/suggestions/{suggestion_id}/decide":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.decide_suggestion","parameters":[{"description":"","in":"path","name":"suggestion_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSuggestionDecideRequest"}}},"description":"Decide","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainPromotionResultResponse"}}},"description":"Result"}},"security":[{"consoleBearer":[]}],"summary":"Approve or reject one promotion suggestion","tags":["Brain"]}},"/api/v1/ai-gateway/web_search":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.web_search","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Web search request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Web search response"},"400":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Invalid web search request"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Search the web through AIGateway","tags":["AIGateway"]}},"/api/v1/oidc-clients/{id}/logout-deliveries/{delivery_id}/retries":{"post":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.retry_logout","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"delivery_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutDeliveriesResponse"}}},"description":"Logout deliveries"}},"security":[{"consoleBearer":[]}],"summary":"Retry a Back-Channel Logout delivery","tags":["OIDC Clients"]}},"/api/v1/brain/principals/{principal_uid}/knowledge":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.principal_knowledge","parameters":[{"description":"","in":"path","name":"principal_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimListResponse"}}},"description":"Claims"}},"security":[{"consoleBearer":[]}],"summary":"Audit all knowledge related to one Principal","tags":["Brain"]}},"/api/v1/principals/{uid}/access":{"get":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.show","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAccessResponse"}}},"description":"Human access"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"Read Human access, permission review, and cleanup state","tags":["Principals"]}},"/api/v1/cron-schedules":{"get":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.index_cron","parameters":[{"description":"","in":"query","name":"agent","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleListResponse"}}},"description":"Cron schedules"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List recurring schedules","tags":["Schedule"]}},"/api/v1/identity-mapping-requests/{id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.IdentityMappingRequestController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityMappingRequestListResponse"}}},"description":"Dismissed"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Dismiss one pending mapping request","tags":["Identity Mappings"]}},"/api/v1/agents/{agent_uid}/signal-bindings/{adapter_id}/{binding_name}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.put_binding","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"adapter_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"binding_name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingWriteRequest"}}},"description":"Signal binding","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalBindingResponse"}}},"description":"Signal binding"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Adapter registry unavailable"}},"security":[{"consoleBearer":[]}],"summary":"Create or update one signal binding for an agent","tags":["Signal Bindings"]}},"/api/v1/agents/{agent_uid}/cron-schedules/{cron_schedule_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.remove_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"}},"security":[{"consoleBearer":[]}],"summary":"Remove one recurring schedule","tags":["Schedule"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.show_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one recurring schedule","tags":["Schedule"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.update_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronUpdateRequest"}}},"description":"Cron schedule update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCronScheduleResponse"}}},"description":"Cron schedule"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid schedule"}},"security":[{"consoleBearer":[]}],"summary":"Update one recurring schedule","tags":["Schedule"]}},"/api/v1/ai-gateway/conversations":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayConversationController.index","parameters":[{"description":"","in":"query","name":"subject","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"key","required":false,"schema":{"type":"string"}},{"description":"Matches an exact subject UID, a conversation-key fragment, or a fragment of a channel or DM peer name.","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"active","required":false,"schema":{"type":"boolean"}},{"description":"","in":"query","name":"min_messages","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayConversationListResponse"}}},"description":"Conversations"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid filters"}},"security":[{"consoleBearer":[]}],"summary":"List AIGateway conversations","tags":["AI Gateway Conversations"]}},"/api/v1/brain/claims":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_claims","parameters":[{"description":"","in":"query","name":"object_slug","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"claim_type","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainClaimListResponse"}}},"description":"Claims"}},"security":[{"consoleBearer":[]}],"summary":"List claims with filters","tags":["Brain"]}},"/api/v1/principals/{uid}":{"get":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.show","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalResponse"}}},"description":"Principal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one principal","tags":["Principals"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.PrincipalController.update","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalUpdateRequest"}}},"description":"User changes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalResponse"}}},"description":"Principal"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Local sign-in disabled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid change"}},"security":[{"consoleBearer":[]}],"summary":"Update the display name or email of one human user","tags":["Principals"]}},"/api/v1/agents/{agent_uid}/skill-lessons":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentSkillLessonController.index","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillLessonsResponse"}}},"description":"Agent skill lessons"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid skill lesson"}},"security":[{"consoleBearer":[]}],"summary":"Read the skill lessons of one agent","tags":["Agents"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.AgentSkillLessonController.create","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillLessonCreateRequest"}}},"description":"Agent skill lesson","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillLessonsResponse"}}},"description":"Agent skill lessons"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid skill lesson"}},"security":[{"consoleBearer":[]}],"summary":"Add one human skill lesson","tags":["Agents"]}},"/api/v1/brain/contradictions/{contradiction_id}/decide":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.decide_contradiction","parameters":[{"description":"","in":"path","name":"contradiction_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainContradictionDecideRequest"}}},"description":"Decide","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainContradictionDecisionResponse"}}},"description":"Decision"}},"security":[{"consoleBearer":[]}],"summary":"Resolve or dismiss one contradiction","tags":["Brain"]}},"/api/v1/agents/{agent_uid}/webhook-endpoints/{webhook_endpoint_id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.WebhookEndpointController.delete","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"webhook_endpoint_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResponse"}}},"description":"Webhook endpoint"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Cancel one webhook endpoint","tags":["Webhooks"]}},"/api/v1/brain/objects":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_objects","parameters":[{"description":"","in":"query","name":"prefix","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"deleted","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectListResponse"}}},"description":"Objects"}},"security":[{"consoleBearer":[]}],"summary":"List Brain objects by prefix or search","tags":["Brain"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.create_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectCreateRequest"}}},"description":"Object","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectShowResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Create one instance-owned Brain object","tags":["Brain"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.update_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectUpdateRequest"}}},"description":"Object","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectShowResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Update one instance-owned Brain object with content-hash compare-and-swap","tags":["Brain"]}},"/api/v1/brain/contradictions":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.list_contradictions","parameters":[{"description":"","in":"query","name":"status","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainContradictionListResponse"}}},"description":"Contradictions"}},"security":[{"consoleBearer":[]}],"summary":"List contradiction findings","tags":["Brain"]}},"/api/v1/ai-gateway/providers/{provider_id}/chatgpt-enterprise-credentials":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.add_chatgpt_enterprise_credential","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTEnterpriseCredentialRequest"}}},"description":"Enterprise credential","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid credential"}},"security":[{"consoleBearer":[]}],"summary":"Add a ChatGPT enterprise access token","tags":["AIGateway"]}},"/api/v1/background-agent-jobs/{job_id}/complete":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BackgroundAgentJobController.complete","parameters":[{"description":"","in":"path","name":"job_id","required":true,"schema":{"maximum":9007199254740991,"minimum":1000,"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"result_summary":{"maxLength":16384,"minLength":1,"type":"string"}},"required":["result_summary"],"type":"object"}}},"description":"Completion result","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundAgentJobResponse"}}},"description":"Background Agent Job"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Job already failed or stopped"}},"security":[{"consoleBearer":[]}],"summary":"Commit an externally verified completion for one background Agent Job","tags":["Background Agent Jobs"]}},"/api/v1/worker-envs/{name}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.delete","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvResponse"}}},"description":"Worker env entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid name"}},"security":[{"consoleBearer":[]}],"summary":"Delete one installation-wide worker shell variable","tags":["WorkerEnv"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.show","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvResponse"}}},"description":"Worker env entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid name"}},"security":[{"consoleBearer":[]}],"summary":"Read one installation-wide worker shell variable","tags":["WorkerEnv"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.update","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvUpdateRequest"}}},"description":"Worker env update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvResponse"}}},"description":"Worker env entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"}},"security":[{"consoleBearer":[]}],"summary":"Store one installation-wide worker shell variable","tags":["WorkerEnv"]}},"/api/v1/ai-gateway/providers/{provider_id}/chatgpt-login/poll":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.poll_chatgpt_login","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTLoginPollRequest"}}},"description":"Login context","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTLoginResponse"}}},"description":"ChatGPT login"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Login failed"}},"security":[{"consoleBearer":[]}],"summary":"Poll one ChatGPT device login once","tags":["AIGateway"]}},"/.internal-apis/session":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AuthController.delete_session","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthSessionDeleteResponse"}}},"description":"Deleted session"}},"summary":"End authentication in the current browser","tags":["Auth"]}},"/api/v1/agents/{agent_uid}/token-quota":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.delete_token_quota","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenQuotaResponse"}}},"description":"Token quota"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unknown agent"}},"security":[{"consoleBearer":[]}],"summary":"Remove the token quota of one agent, which leaves it without a limit","tags":["Agents"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.show_token_quota","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenQuotaResponse"}}},"description":"Token quota"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unknown agent"}},"security":[{"consoleBearer":[]}],"summary":"Read the token quota and the current window of one agent","tags":["Agents"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.put_token_quota","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenQuotaWriteRequest"}}},"description":"Token quota","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenQuotaResponse"}}},"description":"Token quota"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid token quota"}},"security":[{"consoleBearer":[]}],"summary":"Set the token quota of one agent","tags":["Agents"]}},"/api/v1/ai-gateway/rerank":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.rerank","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Rerank request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Rerank response"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Create a rerank result through AIGateway","tags":["AIGateway"]}},"/api/v1/brain/objects/versions":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.object_versions","parameters":[{"description":"","in":"query","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectVersionsResponse"}}},"description":"Versions"}},"security":[{"consoleBearer":[]}],"summary":"List one object's version history","tags":["Brain"]}},"/api/v1/worker-envs":{"get":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvListResponse"}}},"description":"Worker env entries"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List installation-wide worker shell variables","tags":["WorkerEnv"]}},"/api/v1/background-agent-jobs/{job_id}/cancel":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BackgroundAgentJobController.cancel","parameters":[{"description":"","in":"path","name":"job_id","required":true,"schema":{"maximum":9007199254740991,"minimum":1000,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundAgentJobResponse"}}},"description":"Background Agent Job"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Cancel one queued or active background Agent Job","tags":["Background Agent Jobs"]}},"/api/v1/app-configurations/{key}/decryptions":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AppConfigurationController.decrypt","parameters":[{"description":"","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationDecryptionResponse"}}},"description":"Decrypted value"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not encrypted"}},"security":[{"consoleBearer":[]}],"summary":"Reveal one encrypted AppConfigure value on demand","tags":["AppConfigure"]}},"/api/v1/brain/objects/rollback":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.rollback_object","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectRollbackRequest"}}},"description":"Rollback","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectSummaryResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Roll one object back to a stored version","tags":["Brain"]}},"/api/v1/brain/sources/{source_id}/archive":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.archive_source","parameters":[{"description":"","in":"path","name":"source_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceArchiveResponse"}}},"description":"Source"}},"security":[{"consoleBearer":[]}],"summary":"Archive one source; stored memory stays","tags":["Brain"]}},"/api/v1/ai-gateway/embeddings":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayController.embeddings","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Embedding request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Embedding response"},"401":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Unauthorized"}},"security":[{"aiGatewayBearer":[]},{"consoleBearer":[]}],"summary":"Create embeddings through AIGateway","tags":["AIGateway"]}},"/api/v1/agents/{agent_uid}/library-documents":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryController.index","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryDocumentsResponse"}}},"description":"Agent library documents"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read the MISSION, SOUL, DESIGN, and ConfidentialityPolicy documents for one agent","tags":["Agents"]}},"/api/v1/agent-computer-workers":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentComputerWorkerController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentComputerWorkerListResponse"}}},"description":"Workers"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List agent computer workers","tags":["Workers"]}},"/api/v1/principals/{uid}/access-disables":{"post":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.disable","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessReasonRequest"}}},"description":"Reason","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAccessResponse"}}},"description":"Human access"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Cannot disable"}},"security":[{"consoleBearer":[]}],"summary":"Disable a Human and revoke future access","tags":["Principals"]}},"/api/v1/brain/object-types":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.object_types","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectTypesResponse"}}},"description":"Types"}},"security":[{"consoleBearer":[]}],"summary":"List installed Brain object types","tags":["Brain"]}},"/api/v1/agents/{agent_uid}/sessions":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentSessionController.index","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSessionListResponse"}}},"description":"Agent sessions"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List sessions for one agent","tags":["Sessions"]}},"/api/v1/agents/{agent_uid}/worker-envs":{"get":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.index_for_agent","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvListResponse"}}},"description":"Worker env entries"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Agent not found"}},"security":[{"consoleBearer":[]}],"summary":"List effective worker shell variables for one agent","tags":["WorkerEnv"]}},"/api/v1/background-agent-jobs/health":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BackgroundAgentJobController.health","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundAgentJobHealthResponse"}}},"description":"Background Agent Job health"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"Read installation-wide background Agent Job reliability metrics","tags":["Background Agent Jobs"]}},"/api/v1/ai-gateway/providers/{provider_id}/chatgpt-login":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.start_chatgpt_login","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTLoginStartRequest"}}},"description":"Credential metadata","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayChatGPTLoginResponse"}}},"description":"ChatGPT login"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Login failed"}},"security":[{"consoleBearer":[]}],"summary":"Start a ChatGPT device or browser-paste login","tags":["AIGateway"]}},"/api/v1/identity-providers/{provider_id}/directory-events/{event_id}/reviews":{"post":{"callbacks":{},"operationId":"AnkoleWeb.DirectoryAccessController.review_event","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"event_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEventReviewRequest"}}},"description":"Event review","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryAccessResponse"}}},"description":"Directory evidence"}},"security":[{"consoleBearer":[]}],"summary":"Retry or dismiss an unresolved provider event","tags":["Identity Providers"]}},"/api/v1/ai-gateway/conversations/{conversation_id}/messages":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayConversationController.messages","parameters":[{"description":"","in":"path","name":"conversation_id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"maximum":500,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayMessageListResponse"}}},"description":"Messages"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid filters"}},"security":[{"consoleBearer":[]}],"summary":"List the messages of one AIGateway conversation","tags":["AI Gateway Conversations"]}},"/api/v1/identity-providers/{provider_id}/directory":{"get":{"callbacks":{},"operationId":"AnkoleWeb.DirectoryAccessController.show","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryAccessResponse"}}},"description":"Directory evidence"}},"security":[{"consoleBearer":[]}],"summary":"Read directory evidence and unresolved events","tags":["Identity Providers"]}},"/api/v1/agents/{agent_uid}/library-documents/{document_kind}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryController.update","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"document_kind","required":true,"schema":{"enum":["mission","soul","design","confidentiality_policy"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryDocumentWriteRequest"}}},"description":"Agent library document","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryDocumentResponse"}}},"description":"Agent library document"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Document changed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid document"}},"security":[{"consoleBearer":[]}],"summary":"Replace one agent MISSION, SOUL, DESIGN, or ConfidentialityPolicy document","tags":["Agents"]}},"/api/v1/agents/{agent_uid}/provider-hosted":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.put_provider_hosted","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderHostedWriteRequest"}}},"description":"Provider hosted capabilities","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderHostedResponse"}}},"description":"Provider hosted capabilities"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Set which capabilities an agent leaves to its language-model provider","tags":["Agents"]}},"/api/v1/brain/objects/show":{"get":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.show_object","parameters":[{"description":"","in":"query","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainObjectShowResponse"}}},"description":"Object"}},"security":[{"consoleBearer":[]}],"summary":"Read one Brain object with full admin detail","tags":["Brain"]}},"/api/v1/ai-gateway/providers/{provider_id}/enable":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AIGatewayProviderController.enable_provider","parameters":[{"description":"","in":"path","name":"provider_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIGatewayProviderResponse"}}},"description":"AIGateway provider"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid provider configuration"}},"security":[{"consoleBearer":[]}],"summary":"Re-enable one disabled AIGateway provider","tags":["AIGateway"]}},"/api/v1/brain/sources/{source_id}/learn":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.learn_source","parameters":[{"description":"","in":"path","name":"source_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainSourceLearnResponse"}}},"description":"Result"}},"security":[{"consoleBearer":[]}],"summary":"Enqueue one learning run for a source","tags":["Brain"]}},"/api/v1/permission-grants/{id}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.PermissionGrantController.delete","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantResponse"}}},"description":"Permission grant"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Delete one permission grant","tags":["AuthZ"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.PermissionGrantController.show","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantResponse"}}},"description":"Permission grant"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Read one permission grant","tags":["AuthZ"]},"patch":{"callbacks":{},"operationId":"AnkoleWeb.PermissionGrantController.update","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantUpdateRequest"}}},"description":"Permission grant","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantResponse"}}},"description":"Permission grant"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid grant"}},"security":[{"consoleBearer":[]}],"summary":"Update one permission grant","tags":["AuthZ"]}},"/api/v1/brain/merge-suggestions/{suggestion_id}/decide":{"post":{"callbacks":{},"operationId":"AnkoleWeb.BrainController.decide_merge_suggestion","parameters":[{"description":"","in":"path","name":"suggestion_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainMergeSuggestionDecideRequest"}}},"description":"Decide","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainMergeResultResponse"}}},"description":"Result"}},"security":[{"consoleBearer":[]}],"summary":"Approve or reject one merge suggestion","tags":["Brain"]}},"/api/v1/app-configurations/{key}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.AppConfigurationController.delete","parameters":[{"description":"","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationResponse"}}},"description":"AppConfigure entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not editable"}},"security":[{"consoleBearer":[]}],"summary":"Reset one global AppConfigure value","tags":["AppConfigure"]},"get":{"callbacks":{},"operationId":"AnkoleWeb.AppConfigurationController.show","parameters":[{"description":"","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationResponse"}}},"description":"AppConfigure entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not editable"}},"security":[{"consoleBearer":[]}],"summary":"Read one console-visible AppConfigure entry","tags":["AppConfigure"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.AppConfigurationController.update","parameters":[{"description":"","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationUpdateRequest"}}},"description":"AppConfigure update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppConfigurationResponse"}}},"description":"AppConfigure entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"}},"security":[{"consoleBearer":[]}],"summary":"Store one global AppConfigure value","tags":["AppConfigure"]}},"/api/v1/agents/{agent_uid}/enable":{"post":{"callbacks":{},"operationId":"AnkoleWeb.AgentController.enable","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Agent"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"Re-enable one disabled agent","tags":["Agents"]}},"/api/v1/agents/{agent_uid}/cron-schedules/{cron_schedule_id}/runs":{"get":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.cron_runs","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}},{"description":"","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleRunListResponse"}}},"description":"Schedule runs"}},"security":[{"consoleBearer":[]}],"summary":"List recent concrete fires for one recurring schedule","tags":["Schedule"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.ScheduleController.run_cron","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"cron_schedule_id","required":true,"schema":{"type":"string"}},{"description":"","in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEventResponse"}}},"description":"Scheduled event"}},"security":[{"consoleBearer":[]}],"summary":"Manually run one recurring schedule","tags":["Schedule"]}},"/api/v1/agent-library/agent-plugins/{id}":{"put":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.put_global_agent_plugin","parameters":[{"description":"","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryGlobalDefaultWriteRequest"}}},"description":"Agent Plugin default","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Set one global Agent Plugin default","tags":["Agent Library"]}},"/api/v1/agents/{agent_uid}/signal-deliveries/requeue":{"post":{"callbacks":{},"operationId":"AnkoleWeb.SignalBindingController.requeue_delivery","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalDeliveryRequeueRequest"}}},"description":"Stopped signal delivery","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalDeliveryRequeueResponse"}}},"description":"Delivery requeued"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Delivery is not stopped or cannot be retried"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"}},"security":[{"consoleBearer":[]}],"summary":"Retry one stopped signal delivery","tags":["Signal Bindings"]}},"/api/v1/agent-library/capabilities":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AgentLibraryCapabilityController.global_index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLibraryCapabilitiesResponse"}}},"description":"Agent Library capabilities"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid capability"}},"security":[{"consoleBearer":[]}],"summary":"Read global Agent Plugin and standalone Skill defaults","tags":["Agent Library"]}},"/api/v1/principals/{uid}/access-restorations":{"post":{"callbacks":{},"operationId":"AnkoleWeb.HumanAccessController.restore","parameters":[{"description":"","in":"path","name":"uid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRestoreRequest"}}},"description":"Approved review","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAccessResponse"}}},"description":"Human access"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Review changed"}},"security":[{"consoleBearer":[]}],"summary":"Restore Human access after identity and permission review","tags":["Principals"]}},"/api/v1/oidc-clients":{"get":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientListResponse"}}},"description":"OIDC Clients"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"List OIDC Clients","tags":["OIDC Clients"]},"post":{"callbacks":{},"operationId":"AnkoleWeb.OIDCClientController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientCreateRequest"}}},"description":"OIDC Client","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OIDCClientSecretResponse"}}},"description":"OIDC Client and one-time secret"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid OIDC Client"}},"security":[{"consoleBearer":[]}],"summary":"Create an OIDC Client","tags":["OIDC Clients"]}},"/api/v1/agents/{agent_uid}/worker-envs/{name}":{"delete":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.delete_for_agent","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvResponse"}}},"description":"Worker env entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid name"}},"security":[{"consoleBearer":[]}],"summary":"Delete one agent-tier worker shell variable","tags":["WorkerEnv"]},"put":{"callbacks":{},"operationId":"AnkoleWeb.WorkerEnvController.update_for_agent","parameters":[{"description":"","in":"path","name":"agent_uid","required":true,"schema":{"type":"string"}},{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvUpdateRequest"}}},"description":"Worker env update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEnvResponse"}}},"description":"Worker env entry"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Agent not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Invalid value"}},"security":[{"consoleBearer":[]}],"summary":"Store one agent-tier worker shell variable","tags":["WorkerEnv"]}},"/api/v1/principal-groups/{name}/grants":{"get":{"callbacks":{},"operationId":"AnkoleWeb.AuthZGroupController.grants","parameters":[{"description":"","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionGrantListResponse"}}},"description":"Permission grants"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Not found"}},"security":[{"consoleBearer":[]}],"summary":"List permission grants owned by one Principal group","tags":["AuthZ"]}},"/api/v1/console-readiness":{"get":{"callbacks":{},"operationId":"AnkoleWeb.ConsoleReadinessController.show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleReadinessResponse"}}},"description":"Console readiness"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleApiErrorEnvelope"}}},"description":"Forbidden"}},"security":[{"consoleBearer":[]}],"summary":"Read the console readiness snapshot","tags":["Console"]}}},"security":[],"tags":[{"description":"Session-backed console authentication endpoints","name":"Auth"},{"description":"Registry-backed runtime configuration exposed to the web console","name":"AppConfigure"},{"description":"Operator-managed environment variables for Agent Computer shells","name":"WorkerEnv"},{"description":"Operator-managed agent principals","name":"Agents"},{"description":"Active accountable subjects available to operator surfaces","name":"Principals"},{"description":"Principal groups, memberships, and permission grants","name":"AuthZ"},{"description":"Operator-managed LLM provider and agent model profile configuration","name":"LLM Runtime"},{"description":"Operator-managed identity-provider configuration and directory sync","name":"Identity Providers"},{"description":"Agent, Console, and OIDC Human AI provider gateway","name":"AIGateway"},{"description":"Read-only conversation and message log browser for operator inspection","name":"AI Gateway Conversations"},{"description":"Operator-managed agent bindings for signal adapters","name":"Signal Bindings"},{"description":"Operator-visible actor checkbacks and recurring schedules","name":"Schedule"},{"description":"Operator-visible webhook endpoint state and cancellation","name":"Webhooks"},{"description":"Operator-visible actor sessions for one agent","name":"Sessions"},{"description":"Agent computer worker registry and worker filesystem management","name":"Workers"},{"description":"Durable background Agent work executed by CodexRunner","name":"Background Agent Jobs"}]}