> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a task

> Creates a task in the organization on the given project and starts its first run on the prompt, answering 201 with the task.

Use this tool when you need to:
- Start an agent working on a project from a prompt
- Retry a create whose response was lost without starting a second task
- Start a task through an agent profile or on a chosen connection

Examples:
- POST /orgs/{orgID}/tasks {"project_id": "0b9d3e57-2c1a-4f6e-8d7b-5a4c3e2f1d09", "prompt": "Fix the flaky login test", "agent_type": "claude-code", "model": "claude-opus-5-5", "interaction_mode": "default"}
- POST /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/tasks {"project_id": "0b9d3e57-2c1a-4f6e-8d7b-5a4c3e2f1d09", "prompt": "Plan the billing page migration", "agent_type": "codex", "model": "gpt-6.1-sol", "interaction_mode": "plan", "base_branch": "main", "machine": {"kind": "sandbox", "vm_size": "medium"}, "idempotency_key": "3c1f9a7e-5b2d-4e8f-9a6c-1d2e3f4a5b6c"}

Hints:
- Required: project_id (the uuid of a project in orgID), prompt and agent_type (codex, claude-code or opencode).
- model, interaction_mode and reasoning_effort are what the start option of agent_type lists (getProjectStartOptions): a model it lists as selectable, such as claude-opus-5-5 or gpt-6.1-sol, a mode, and a thinking level it lists for that model. Omitted, model and interaction_mode take the option's defaults, and the task reads the values they resolved to; an omitted reasoning_effort is what the model's default_reasoning_effort describes. A retired agent (opencode) is still accepted, checked against the option computed for it, and an OpenCode model free-typed on OpenRouter (openrouter/...) is accepted though no list carries it.
- machine is where the task runs: {"kind": "sandbox"}, a start option's machine, with an optional vm_size (medium, large or xl). Omitted, a sandbox of the project's default size. A top-level vm_size is a field the create does not take (422).
- Optional: base_branch (the repository's default branch when omitted), agent_profile_id, and auto_fix_ci, auto_fix_pr_comments, auto_rebase, post_pr_screenshots and post_pr_demo_video, each taking the project's default when omitted. merge_when_ready (default false) has the task squash-merge its own published pull request once external CI is green, Aether Review's verdict at its exact head is APPROVE, no review thread is unresolved and the task is idle.
- runs_on is optional: runs_on aether (Aether inference, Claude Code and Codex only) or runs_on stored with a connection_id the caller holds; omitted, the task runs on the pin of the agent profile agent_profile_id names when it pins a connection for the task's agent, else on the caller's default connection.
- context carries files (a path relative to the repository, include, an optional line selection) and up to 10 attachments, each filename, media_type (image/png, image/jpeg, image/webp, image/gif, application/pdf, text/plain, text/markdown, text/csv or application/json) and base64 data of at most 5 MiB decoded. A body over 100 MiB is 413, and one that takes over 55 seconds to arrive 408.
- Answers 201 with the task as read once it is created, the same Task object listTasks and getTask return; the run starts asynchronously.
- idempotency_key is an optional uuid scoped to the caller in the organization: a repeat of the same request answers 201 with the task the first one created, as it stands now and even if since archived, without creating, admitting or dispatching again; a different request under the same key is refused with 409 idempotency_key_reused.
- Use teleportTask instead to resume a Codex session recorded on the caller's machine, continueTerminalChatInCloud to continue a Claude Code session of a checkout, and respondToTask to give an existing task more work.
- Any admin, owner or member of the organization may call it, in any of its projects: a viewer or billing member is refused with 403 org_role_insufficient before the body is validated, a non-member with 403 org_membership_required, a suspended organization with 403 org_suspended, an account being deleted with 403 account_deleting, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed; 503 when the membership check is unavailable.
- The schema answers 422 for a missing required field, an empty prompt, model or base_branch, a project_id, agent_profile_id, connection_id or idempotency_key that is not a uuid, a value outside its enum or pattern, or over 10 attachments.
- The handler answers 422 for a model, thinking level or mode the start option of agent_type does not list as selectable (an unknown or retired model, one of another agent, a reasoning_effort the model does not take), a model an agent profile names included; and 409 with the reason's code (reasoning_effort_fixed, chat_settings_fixed) for a field the start option's can.compose says is unsupported.
- The handler answers 400 for an invalid attachment or file reference, a project without a GitHub installation, a caller with no connection for the agent, or an agent profile pin the caller cannot use.
- A base_branch of whitespace only is a 400, one with surrounding whitespace, whose trimmed text names another branch, a 400 naming it, and any base_branch on a project with no repository a 400.
- Refused with 404 for a project or agent profile the organization does not have, and 404 connection_not_held for a connection_id the caller does not hold; 409 for a connection that cannot run the task (task_connection_disconnected, inference_proxy_unavailable, aether_inference_unserved or connection_harness_mismatch), 409 mcp_server_not_connected naming each MCP server the task needs and the caller has not connected, and 409 agent_profile_changed when the profile's pin changed while the task was being created (create it again).
- A run the organization cannot admit is a 402 naming the limit: billing_blocked, org_task_concurrency_exceeded, credits_exhausted, workspace_run_unavailable, or insufficient_inference_balance for a task on Aether inference while the balance is used up; admission answers 403 user_suspended or org_suspended for a suspended account or organization, and a caller whose account deletion began while the task was being created is refused with 403.
- merge_when_ready true in a project that does not review the pull requests its tasks open (no repository, or its repository.review_policy.aether_prs_auto_trigger disabled) is refused with 409 merge_when_ready_requires_pr_review naming the project: the task could never merge.



## OpenAPI

````yaml api-reference/openapi.json POST /orgs/{orgID}/tasks
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/tasks:
    post:
      tags:
        - tasks
      summary: Create a task
      description: >-
        Creates a task in the organization on the given project and starts its
        first run on the prompt, answering 201 with the task.


        Use this tool when you need to:

        - Start an agent working on a project from a prompt

        - Retry a create whose response was lost without starting a second task

        - Start a task through an agent profile or on a chosen connection


        Examples:

        - POST /orgs/{orgID}/tasks {"project_id":
        "0b9d3e57-2c1a-4f6e-8d7b-5a4c3e2f1d09", "prompt": "Fix the flaky login
        test", "agent_type": "claude-code", "model": "claude-opus-5-5",
        "interaction_mode": "default"}

        - POST /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/tasks {"project_id":
        "0b9d3e57-2c1a-4f6e-8d7b-5a4c3e2f1d09", "prompt": "Plan the billing page
        migration", "agent_type": "codex", "model": "gpt-6.1-sol",
        "interaction_mode": "plan", "base_branch": "main", "machine": {"kind":
        "sandbox", "vm_size": "medium"}, "idempotency_key":
        "3c1f9a7e-5b2d-4e8f-9a6c-1d2e3f4a5b6c"}


        Hints:

        - Required: project_id (the uuid of a project in orgID), prompt and
        agent_type (codex, claude-code or opencode).

        - model, interaction_mode and reasoning_effort are what the start option
        of agent_type lists (getProjectStartOptions): a model it lists as
        selectable, such as claude-opus-5-5 or gpt-6.1-sol, a mode, and a
        thinking level it lists for that model. Omitted, model and
        interaction_mode take the option's defaults, and the task reads the
        values they resolved to; an omitted reasoning_effort is what the model's
        default_reasoning_effort describes. A retired agent (opencode) is still
        accepted, checked against the option computed for it, and an OpenCode
        model free-typed on OpenRouter (openrouter/...) is accepted though no
        list carries it.

        - machine is where the task runs: {"kind": "sandbox"}, a start option's
        machine, with an optional vm_size (medium, large or xl). Omitted, a
        sandbox of the project's default size. A top-level vm_size is a field
        the create does not take (422).

        - Optional: base_branch (the repository's default branch when omitted),
        agent_profile_id, and auto_fix_ci, auto_fix_pr_comments, auto_rebase,
        post_pr_screenshots and post_pr_demo_video, each taking the project's
        default when omitted. merge_when_ready (default false) has the task
        squash-merge its own published pull request once external CI is green,
        Aether Review's verdict at its exact head is APPROVE, no review thread
        is unresolved and the task is idle.

        - runs_on is optional: runs_on aether (Aether inference, Claude Code and
        Codex only) or runs_on stored with a connection_id the caller holds;
        omitted, the task runs on the pin of the agent profile agent_profile_id
        names when it pins a connection for the task's agent, else on the
        caller's default connection.

        - context carries files (a path relative to the repository, include, an
        optional line selection) and up to 10 attachments, each filename,
        media_type (image/png, image/jpeg, image/webp, image/gif,
        application/pdf, text/plain, text/markdown, text/csv or
        application/json) and base64 data of at most 5 MiB decoded. A body over
        100 MiB is 413, and one that takes over 55 seconds to arrive 408.

        - Answers 201 with the task as read once it is created, the same Task
        object listTasks and getTask return; the run starts asynchronously.

        - idempotency_key is an optional uuid scoped to the caller in the
        organization: a repeat of the same request answers 201 with the task the
        first one created, as it stands now and even if since archived, without
        creating, admitting or dispatching again; a different request under the
        same key is refused with 409 idempotency_key_reused.

        - Use teleportTask instead to resume a Codex session recorded on the
        caller's machine, continueTerminalChatInCloud to continue a Claude Code
        session of a checkout, and respondToTask to give an existing task more
        work.

        - Any admin, owner or member of the organization may call it, in any of
        its projects: a viewer or billing member is refused with 403
        org_role_insufficient before the body is validated, a non-member with
        403 org_membership_required, a suspended organization with 403
        org_suspended, an account being deleted with 403 account_deleting, an
        orgID that is not a uuid with 400, and an agent host's grant with 403
        agent_host_route_not_allowed; 503 when the membership check is
        unavailable.

        - The schema answers 422 for a missing required field, an empty prompt,
        model or base_branch, a project_id, agent_profile_id, connection_id or
        idempotency_key that is not a uuid, a value outside its enum or pattern,
        or over 10 attachments.

        - The handler answers 422 for a model, thinking level or mode the start
        option of agent_type does not list as selectable (an unknown or retired
        model, one of another agent, a reasoning_effort the model does not
        take), a model an agent profile names included; and 409 with the
        reason's code (reasoning_effort_fixed, chat_settings_fixed) for a field
        the start option's can.compose says is unsupported.

        - The handler answers 400 for an invalid attachment or file reference, a
        project without a GitHub installation, a caller with no connection for
        the agent, or an agent profile pin the caller cannot use.

        - A base_branch of whitespace only is a 400, one with surrounding
        whitespace, whose trimmed text names another branch, a 400 naming it,
        and any base_branch on a project with no repository a 400.

        - Refused with 404 for a project or agent profile the organization does
        not have, and 404 connection_not_held for a connection_id the caller
        does not hold; 409 for a connection that cannot run the task
        (task_connection_disconnected, inference_proxy_unavailable,
        aether_inference_unserved or connection_harness_mismatch), 409
        mcp_server_not_connected naming each MCP server the task needs and the
        caller has not connected, and 409 agent_profile_changed when the
        profile's pin changed while the task was being created (create it
        again).

        - A run the organization cannot admit is a 402 naming the limit:
        billing_blocked, org_task_concurrency_exceeded, credits_exhausted,
        workspace_run_unavailable, or insufficient_inference_balance for a task
        on Aether inference while the balance is used up; admission answers 403
        user_suspended or org_suspended for a suspended account or organization,
        and a caller whose account deletion began while the task was being
        created is refused with 403.

        - merge_when_ready true in a project that does not review the pull
        requests its tasks open (no repository, or its
        repository.review_policy.aether_prs_auto_trigger disabled) is refused
        with 409 merge_when_ready_requires_pr_review naming the project: the
        task could never merge.
      operationId: createTask
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTaskRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/WorkspaceRuntimeAdmissionError'
                  - $ref: >-
                      #/components/schemas/InferenceBalanceExhaustedErrorResponse
          description: Payment Required
        '403':
          content:
            application/json:
              schema:
                anyOf:
                  - oneOf:
                      - $ref: '#/components/schemas/TasksErrorResponse'
                      - $ref: '#/components/schemas/WorkspaceRuntimeAdmissionError'
                  - $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Not Found
        '408':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Request Timeout
        '409':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/TaskIdempotencyKeyReusedErrorResponse'
                  - $ref: '#/components/schemas/TaskConnectionRefusalErrorResponse'
                  - $ref: '#/components/schemas/TaskAgentProfileChangedErrorResponse'
                  - $ref: '#/components/schemas/McpServerNotConnectedErrorResponse'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Gone
        '413':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Request Entity Too Large
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Internal Server Error
components:
  schemas:
    CreateTaskRequest:
      additionalProperties: false
      properties:
        agent_profile_id:
          description: >-
            Optional agent profile the task is started through. Its connection
            pin applies to a task of the profile's agent unless runs_on chooses
            otherwise; the request's agent, model and effort are the task's.
          format: uuid
          type: string
        agent_type:
          $ref: '#/components/schemas/AgentType'
        auto_fix_ci:
          description: >-
            Optional per-task override. Omit to inherit the fresh project
            default; explicit true or false overrides it.
          type: boolean
        auto_fix_pr_comments:
          description: >-
            Optional per-task override. Omit to inherit the fresh project
            default; explicit true or false overrides it.
          type: boolean
        auto_rebase:
          description: >-
            Optional per-task override. Omit to inherit the fresh project
            default; explicit true or false overrides it.
          type: boolean
        base_branch:
          minLength: 1
          type: string
        context:
          $ref: '#/components/schemas/PromptContext'
        idempotency_key:
          description: >-
            Optional client-generated UUID, scoped to the authenticated user in
            the authenticated org. The first create with a key records it with
            the task; a retry with the same key and an equivalent request
            returns that same task (201, same body) without creating, admitting,
            or dispatching again, even if the task was since archived. Reusing a
            key for a different request fails with 409 code
            idempotency_key_reused and creates nothing.
          format: uuid
          type: string
        interaction_mode:
          description: >-
            A mode the start option of agent_type lists. Omitted, the option's
            default mode.
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type: string
        machine:
          $ref: '#/components/schemas/CreateTaskMachine'
        merge_when_ready:
          description: >-
            Optional. True has the task squash-merge its own published pull
            request once external CI is green, Aether Review's verdict at the
            exact head is APPROVE, no review thread is unresolved and the task
            is idle. Omitted or false, the task never merges its own pull
            request.
          type: boolean
        model:
          description: >-
            A model the start option of agent_type lists. Omitted, the option's
            default model.
          minLength: 1
          type: string
        post_pr_demo_video:
          description: >-
            Optional per-task override. Omit to inherit the fresh project
            default; explicit true or false overrides it.
          type: boolean
        post_pr_screenshots:
          description: >-
            Optional per-task override. Omit to inherit the fresh project
            default; explicit true or false overrides it.
          type: boolean
        project_id:
          format: uuid
          type: string
        prompt:
          minLength: 1
          type: string
        reasoning_effort:
          description: >-
            A thinking level the start option lists for model. Omitted, the
            model's default_reasoning_effort says what the task runs at.
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type: string
        runs_on:
          description: >-
            Optional initial task connection; an explicit choice is validated
            before the first turn. Omitted, the task runs on the pin of the
            agent profile agent_profile_id names when that profile pins a
            connection for the task's agent, else on the creator's default
            connection.
          discriminator:
            mapping:
              aether: '#/components/schemas/ConnectionChoiceAether'
              stored: '#/components/schemas/ConnectionChoiceStored'
            propertyName: runs_on
          oneOf:
            - $ref: '#/components/schemas/ConnectionChoiceAether'
            - $ref: '#/components/schemas/ConnectionChoiceStored'
      required:
        - project_id
        - prompt
        - agent_type
      type: object
    Task:
      discriminator:
        mapping:
          awaiting_input: '#/components/schemas/TaskAwaitingInput'
          errored: '#/components/schemas/TaskErrored'
          processing: '#/components/schemas/TaskProcessing'
          queued: '#/components/schemas/TaskQueued'
        propertyName: status
      oneOf:
        - $ref: '#/components/schemas/TaskQueued'
        - $ref: '#/components/schemas/TaskProcessing'
        - $ref: '#/components/schemas/TaskAwaitingInput'
        - $ref: '#/components/schemas/TaskErrored'
    TasksErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unserved
            - agent_pr_blocked
            - agent_pr_pending
            - agent_profile_changed
            - agent_starts_off
            - app_identity_missing
            - attribution_unavailable
            - bad_gateway
            - bad_request
            - caller_inactive
            - chat_archived
            - chat_settings_fixed
            - chats_not_addable
            - checkout_not_archivable
            - cli_upgrade_required
            - client_outdated
            - computer_bridge_outdated
            - computer_cli_outdated
            - computer_starts_no_agents
            - computer_starts_no_forks
            - computer_unreachable
            - conflict
            - connection_creator_only
            - connection_harness_mismatch
            - connection_not_held
            - contents_write_required
            - continuation_failed
            - continuation_unavailable
            - control_forbidden
            - creator_github_access_missing
            - credential_kind_not_admitted
            - download_unsupported
            - embeddings_unavailable
            - fix_not_requested
            - fix_requests_unrecorded
            - forbidden
            - fork_branch_delete_unsupported
            - fork_forbidden
            - gateway_timeout
            - github_claim_unverified
            - github_failed
            - github_identity_mismatch
            - github_identity_required
            - github_push_access_required
            - github_reconnect_required
            - github_ref_not_found
            - gone
            - handed_branch_protected
            - head_moved
            - html_render_nul_byte
            - html_render_too_large
            - idempotency_key_conflict
            - idempotency_key_reused
            - idle_compaction_not_pending
            - idle_compaction_skipped
            - inference_proxy_unavailable
            - insufficient_credits
            - insufficient_inference_balance
            - internal_error
            - invalid_request
            - last_queued_message
            - live_protocol_unsupported
            - main_chat_permanent
            - mcp_server_not_connected
            - merge_when_ready_requires_pr_review
            - message_not_queued
            - method_not_allowed
            - mode_forbidden
            - name_follows_session
            - no_checkout_on_computer
            - no_dispatch_target
            - no_turn_running
            - not_acceptable
            - not_found
            - not_implemented
            - onboarding_already_completed
            - onboarding_requirements_missing
            - org_id_required
            - org_role_insufficient
            - org_suspended
            - payment_required
            - pending_input_answered
            - permission_prompt_answered_in_terminal
            - permission_prompt_expired
            - permission_prompt_open
            - permission_prompt_stopped
            - pr_automation_unsupported
            - pr_review_actor_required
            - pr_review_connection_spent
            - pr_review_publish_forbidden
            - precondition_failed
            - project_archived
            - project_has_no_repository
            - project_repo_disconnected
            - project_repository_differs
            - project_required
            - pull_request_closed
            - pull_request_mirror_failed
            - pull_request_not_mirrored
            - push_file_too_large
            - push_rejected
            - push_secret_detected
            - question_answers
            - queued_stop_requires_discard
            - rate_limited
            - reasoning_effort_fixed
            - repository_administration_not_granted
            - repository_already_connected
            - repository_create_forbidden
            - repository_create_rejected
            - repository_created_not_linked
            - repository_owner_not_caller
            - request_canceled
            - request_timeout
            - request_too_large
            - review_name_follows_pull_request
            - sandbox_deleted
            - sandbox_failed
            - sandbox_needs_message
            - save_in_progress
            - save_requires_task_creator
            - service_unavailable
            - session_not_started_by_aether
            - slash_command
            - stack_cycle
            - stack_too_large
            - stack_two_parents
            - stale_execution
            - stale_or_indeterminate
            - stale_pending_input
            - stream_delivery_gap
            - stream_event_conflict
            - task_already_saved
            - task_archived
            - task_awaiting_message
            - task_awaiting_tool_response
            - task_backed_by_work_tree
            - task_bound_at_creation
            - task_branch_diverged
            - task_branch_is_default
            - task_branch_mismatch
            - task_branch_missing
            - task_connection_disconnected
            - task_creator_deleted
            - task_executing
            - task_file_too_large
            - task_fork_refused
            - task_has_no_commits
            - task_has_no_files
            - task_has_no_repository
            - task_history_has_merges
            - task_ineligible
            - task_is_child
            - task_not_accepting_messages
            - task_not_pinnable
            - task_not_started
            - task_rebase_in_progress
            - task_settings_changed
            - task_start_failed
            - task_start_pending
            - teleport_unavailable
            - terminal_chat
            - terminal_chat_continuation_refused
            - terminal_chat_run_running
            - terminal_question
            - too_many_live_connections
            - unauthenticated
            - unsigned_aether_head
            - unsigned_commit
            - unsupported_changes
            - unsupported_media_type
            - untyped_error
            - user_suspended
            - validation_failed
            - working_tree_dirty
            - workspace_git_unavailable
            - workspace_gone
            - workspace_outdated
            - workspace_rejected
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    WorkspaceRuntimeAdmissionError:
      additionalProperties: false
      properties:
        code:
          enum:
            - user_suspended
            - org_suspended
            - billing_blocked
            - org_task_concurrency_exceeded
            - credits_exhausted
            - workspace_run_unavailable
          type: string
        error:
          minLength: 1
          type: string
        org_id:
          format: uuid
          type: string
        tier:
          enum:
            - free
            - starter
            - pro
            - max
            - team
          type:
            - string
            - 'null'
        vm_size:
          enum:
            - small
            - medium
            - large
            - xl
          type: string
      required:
        - error
        - code
        - tier
        - vm_size
        - org_id
      type: object
    InferenceBalanceExhaustedErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - insufficient_inference_balance
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    TaskIdempotencyKeyReusedErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - idempotency_key_reused
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    TaskConnectionRefusalErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - task_connection_disconnected
            - inference_proxy_unavailable
            - aether_inference_unserved
            - connection_harness_mismatch
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    TaskAgentProfileChangedErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - agent_profile_changed
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    McpServerNotConnectedErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - mcp_server_not_connected
          type: string
        error:
          minLength: 1
          type: string
        servers:
          items:
            $ref: '#/components/schemas/McpServerNotConnected'
          minItems: 1
          type: array
      required:
        - error
        - code
        - servers
      type: object
    AgentType:
      description: >-
        The agent harness that runs a task, a profile or a connection:
        claude-code or claude_code is Claude Code, codex is Codex, opencode is
        OpenCode.
      enum:
        - codex
        - claude-code
        - opencode
        - claude_code
      type: string
    PromptContext:
      additionalProperties: false
      properties:
        attachments:
          items:
            $ref: '#/components/schemas/Attachment'
          maxItems: 10
          type: array
        files:
          items:
            $ref: '#/components/schemas/FileReference'
          type: array
      type: object
    CreateTaskMachine:
      additionalProperties: false
      description: >-
        Where a new task runs, a union on kind whose one member is sandbox, a
        cloud sandbox Aether runs: a start option's machine, as GET
        /projects/{projectID}/start-options lists it, is one as it is, with the
        sandbox's size. Omitted, a sandbox of the project's default size.
      properties:
        kind:
          enum:
            - sandbox
          type: string
        vm_size:
          description: The sandbox's size. Omitted, the project's default size.
          enum:
            - medium
            - large
            - xl
          type: string
      required:
        - kind
      type: object
    ConnectionChoiceAether:
      additionalProperties: false
      properties:
        runs_on:
          description: >-
            Aether inference, paid from your organization's balance: Claude Code
            and Codex only.
          enum:
            - aether
          type: string
      required:
        - runs_on
      type: object
    ConnectionChoiceStored:
      additionalProperties: false
      properties:
        connection_id:
          description: A connection you hold that works with the harness.
          format: uuid
          type: string
        runs_on:
          description: The connection connection_id names.
          enum:
            - stored
          type: string
      required:
        - runs_on
        - connection_id
      type: object
    TaskAwaitingInput:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        awaiting_input:
          $ref: '#/components/schemas/TaskAwaitingInputPayload'
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        can:
          $ref: '#/components/schemas/TaskAbilities'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        machine:
          $ref: '#/components/schemas/TaskMachine'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        start:
          anyOf:
            - $ref: '#/components/schemas/TaskStart'
            - type: 'null'
        status:
          enum:
            - awaiting_input
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - machine
        - start
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - can
        - run_context
        - awaiting_input
      type: object
    TaskErrored:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        can:
          $ref: '#/components/schemas/TaskAbilities'
        completed_at:
          format: date-time
          type: string
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        error:
          minLength: 1
          type: string
        failure:
          $ref: '#/components/schemas/TaskFailure'
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        machine:
          $ref: '#/components/schemas/TaskMachine'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        start:
          anyOf:
            - $ref: '#/components/schemas/TaskStart'
            - type: 'null'
        status:
          enum:
            - errored
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - machine
        - start
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - can
        - run_context
        - error
        - completed_at
      type: object
    TaskProcessing:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        can:
          $ref: '#/components/schemas/TaskAbilities'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        machine:
          $ref: '#/components/schemas/TaskMachine'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          $ref: '#/components/schemas/TaskRunContext'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        start:
          anyOf:
            - $ref: '#/components/schemas/TaskStart'
            - type: 'null'
        status:
          enum:
            - processing
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - machine
        - start
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - can
        - run_context
      type: object
    TaskQueued:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        can:
          $ref: '#/components/schemas/TaskAbilities'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        machine:
          $ref: '#/components/schemas/TaskMachine'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          pattern: ^[a-z][a-z0-9_]{0,31}$
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        start:
          anyOf:
            - $ref: '#/components/schemas/TaskStart'
            - type: 'null'
        status:
          enum:
            - queued
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - machine
        - start
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - can
        - run_context
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    McpServerNotConnected:
      additionalProperties: false
      properties:
        display_name:
          type: string
        key:
          type: string
        policy:
          enum:
            - creator
            - org
          type: string
        reason:
          enum:
            - not_connected
            - needs_reauth
          type: string
        repo:
          $ref: '#/components/schemas/McpServerRepoDeclaration'
      required:
        - key
        - display_name
        - policy
        - reason
      type: object
    Attachment:
      additionalProperties: false
      properties:
        data:
          minLength: 1
          type: string
        filename:
          minLength: 1
          type: string
        media_type:
          minLength: 1
          type: string
      required:
        - filename
        - media_type
        - data
      type: object
    FileReference:
      additionalProperties: false
      properties:
        include:
          type: boolean
        path:
          minLength: 1
          type: string
        selection:
          $ref: '#/components/schemas/FileSelection'
      required:
        - path
        - include
      type: object
    TaskAwaitingInputPayload:
      discriminator:
        mapping:
          message: '#/components/schemas/TaskAwaitingInputMessage'
          plan: '#/components/schemas/TaskAwaitingInputPlan'
          questions: '#/components/schemas/TaskAwaitingInputQuestions'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/TaskAwaitingInputMessage'
        - $ref: '#/components/schemas/TaskAwaitingInputQuestions'
        - $ref: '#/components/schemas/TaskAwaitingInputPlan'
    TaskRepositoryBinding:
      additionalProperties: false
      properties:
        base_branch:
          minLength: 1
          pattern: \S
          type: string
        bound_at:
          format: date-time
          type: string
      required:
        - base_branch
        - bound_at
      type: object
    TaskCampaignSummary:
      additionalProperties: false
      properties:
        active_descendants:
          format: int64
          minimum: 0
          type: integer
        attention:
          enum:
            - error
            - waiting
          type:
            - string
            - 'null'
        descendants_merged:
          format: int64
          minimum: 0
          type: integer
        descendants_total:
          format: int64
          minimum: 1
          type: integer
      required:
        - descendants_total
        - descendants_merged
        - active_descendants
        - attention
      type: object
    TaskAbilities:
      additionalProperties: false
      description: >-
        What the caller can do with the task as things stand, each ability
        computed for them and the kind of credential they hold: add_chat,
        starting a chat beside its main chat; rename, giving it a name; archive,
        archiving it and restoring it; pin, pinning it; change_pr_automation,
        its six pull-request switches (auto_fix_ci, auto_fix_pr_comments,
        auto_rebase, post_pr_screenshots, post_pr_demo_video, merge_when_ready),
        whose notes say when merge_when_ready cannot turn on; download,
        downloading its files; stop, stopping its main chat's turn; fork,
        carrying its main chat's work into a new task, in the cloud or, for a
        task on a computer, on a computer; connect_live, opening a live
        connection to its machine (connectTask), available for a stopped
        sandbox, which the connection can start. The operation an ability
        governs refuses with the code and sentence the ability shows. A download
        may still be refused by what only its workspace knows:
        task_has_no_files, task_branch_missing and workspace_outdated; a live
        connection by what only the call knows: live_protocol_unsupported,
        too_many_live_connections, and the account's standing when it starts a
        sandbox.
      properties:
        add_chat:
          $ref: '#/components/schemas/Ability'
        archive:
          $ref: '#/components/schemas/Ability'
        change_pr_automation:
          $ref: '#/components/schemas/Ability'
        connect_live:
          $ref: '#/components/schemas/Ability'
        download:
          $ref: '#/components/schemas/Ability'
        fork:
          $ref: '#/components/schemas/Ability'
        pin:
          $ref: '#/components/schemas/Ability'
        rename:
          $ref: '#/components/schemas/Ability'
        stop:
          $ref: '#/components/schemas/Ability'
      required:
        - add_chat
        - archive
        - change_pr_automation
        - connect_live
        - download
        - fork
        - pin
        - rename
        - stop
      type: object
    TaskConversation:
      additionalProperties: false
      properties:
        active_turn_id:
          format: uuid
          not:
            enum:
              - 00000000-0000-0000-0000-000000000000
          type:
            - string
            - 'null'
        processing_started_at:
          format: date-time
          type:
            - string
            - 'null'
      required:
        - active_turn_id
        - processing_started_at
      type: object
    TaskMachine:
      description: >-
        Where the task runs: a cloud sandbox, or a folder on one of its
        creator's computers.
      discriminator:
        mapping:
          computer: '#/components/schemas/TaskMachineComputer'
          sandbox: '#/components/schemas/TaskMachineSandbox'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/TaskMachineSandbox'
        - $ref: '#/components/schemas/TaskMachineComputer'
    TaskPlanProgress:
      additionalProperties: false
      properties:
        completed:
          format: int64
          minimum: 0
          type: integer
        current_step:
          minLength: 1
          pattern: \S
          type: string
        total:
          format: int64
          minimum: 1
          type: integer
      required:
        - completed
        - total
      type: object
    TaskPRReviewSummary:
      additionalProperties: false
      properties:
        comment_count:
          format: int64
          minimum: 0
          type:
            - integer
            - 'null'
        pull_request_id:
          format: uuid
          type: string
        review_task_id:
          format: uuid
          type: string
        run_count:
          format: int64
          minimum: 1
          type: integer
        run_status:
          $ref: '#/components/schemas/ReviewRunStatus'
        severity_counts:
          $ref: '#/components/schemas/PRReviewSeverityCounts'
        summary_severity:
          $ref: '#/components/schemas/PRReviewSummarySeverity'
        verdict:
          $ref: '#/components/schemas/PRReviewSummaryVerdict'
      required:
        - review_task_id
        - pull_request_id
        - run_status
        - comment_count
        - run_count
      type: object
    TaskPullRequest:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        base_branch:
          description: >-
            The branch the pull request targets on GitHub now, which may differ
            from the task's base after a retarget. Absent while it is unknown:
            before the pull request is synced from GitHub, or for one recorded
            before the mirror with its state alone. Never present without state.
          minLength: 1
          type: string
        branch_name:
          minLength: 1
          type: string
        checks_failed:
          format: int64
          minimum: 0
          type: integer
        checks_passed:
          format: int64
          minimum: 0
          type: integer
        checks_total:
          format: int64
          minimum: 0
          type: integer
        ci_status:
          enum:
            - pending
            - passed
            - failed
          type: string
        commits:
          format: int64
          minimum: 0
          type: integer
        deletions:
          format: int64
          minimum: 0
          type: integer
        html_url:
          minLength: 1
          type: string
        lines_changed:
          format: int64
          minimum: 0
          type: integer
        merge_when_ready_blocker:
          additionalProperties: false
          description: >-
            Present on an open pull request whose task opts into
            merge_when_ready while the latest evaluation found its head blocked:
            blocker names the first unmet condition at head_sha, first found
            there at observed_at. no_aether_review_in_org and
            base_not_authorized clear only when a person acts (turn on the
            project's review of its tasks' pull requests, or retarget the pull
            request to the task's branch), and the pull request carries a line
            saying so; every other blocker clears as CI, Aether Review, the task
            or GitHub moves on.
          properties:
            blocker:
              enum:
                - not_ready_for_merge
                - base_not_authorized
                - no_external_ci
                - no_aether_review_in_org
                - not_approved_at_head
                - unresolved_review_threads
                - task_running
                - not_cleanly_mergeable
              type: string
            head_sha:
              maxLength: 40
              minLength: 40
              pattern: ^[0-9a-f]{40}$
              type: string
            observed_at:
              format: date-time
              type: string
          required:
            - blocker
            - head_sha
            - observed_at
          type: object
        merged_at:
          format: date-time
          type: string
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pull_request_id:
          format: uuid
          type: string
        state:
          enum:
            - open
            - closed
            - merged
          type: string
        title:
          type: string
      required:
        - pull_request_id
        - pr_number
        - html_url
        - title
        - checks_passed
        - checks_failed
        - checks_total
        - commits
        - lines_changed
        - additions
        - deletions
      type: object
    TaskProjectContext:
      discriminator:
        mapping:
          active: '#/components/schemas/TaskActiveProject'
          archived: '#/components/schemas/TaskArchivedProject'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskActiveProject'
        - $ref: '#/components/schemas/TaskArchivedProject'
    TaskReviewSubjectPullRequest:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        base_branch:
          description: >-
            The branch the pull request targets on GitHub now, which may differ
            from the task's base after a retarget. Absent while it is unknown:
            before the pull request is synced from GitHub, or for one recorded
            before the mirror with its state alone. Never present without state.
          minLength: 1
          type: string
        branch_name:
          minLength: 1
          type: string
        checks_failed:
          format: int64
          minimum: 0
          type: integer
        checks_passed:
          format: int64
          minimum: 0
          type: integer
        checks_total:
          format: int64
          minimum: 0
          type: integer
        ci_status:
          enum:
            - pending
            - passed
            - failed
          type: string
        commits:
          format: int64
          minimum: 0
          type: integer
        deletions:
          format: int64
          minimum: 0
          type: integer
        html_url:
          minLength: 1
          type: string
        lines_changed:
          format: int64
          minimum: 0
          type: integer
        merge_when_ready_blocker:
          additionalProperties: false
          description: >-
            Present on an open pull request whose task opts into
            merge_when_ready while the latest evaluation found its head blocked:
            blocker names the first unmet condition at head_sha, first found
            there at observed_at. no_aether_review_in_org and
            base_not_authorized clear only when a person acts (turn on the
            project's review of its tasks' pull requests, or retarget the pull
            request to the task's branch), and the pull request carries a line
            saying so; every other blocker clears as CI, Aether Review, the task
            or GitHub moves on.
          properties:
            blocker:
              enum:
                - not_ready_for_merge
                - base_not_authorized
                - no_external_ci
                - no_aether_review_in_org
                - not_approved_at_head
                - unresolved_review_threads
                - task_running
                - not_cleanly_mergeable
              type: string
            head_sha:
              maxLength: 40
              minLength: 40
              pattern: ^[0-9a-f]{40}$
              type: string
            observed_at:
              format: date-time
              type: string
          required:
            - blocker
            - head_sha
            - observed_at
          type: object
        merged_at:
          format: date-time
          type: string
        origin_task_id:
          format: uuid
          type: string
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pull_request_id:
          format: uuid
          type: string
        review_check_conclusion:
          enum:
            - success
            - failure
            - cancelled
            - neutral
          type: string
        review_trigger:
          enum:
            - automatic
            - comment_command
            - manual
          type: string
        state:
          enum:
            - open
            - closed
            - merged
          type: string
        title:
          type: string
      required:
        - pull_request_id
        - pr_number
        - html_url
        - title
        - checks_passed
        - checks_failed
        - checks_total
        - commits
        - lines_changed
        - additions
        - deletions
        - review_trigger
      type: object
    TaskRunContext:
      additionalProperties: false
      properties:
        started_at:
          format: date-time
          type: string
        workspace_id:
          format: uuid
          type: string
      required:
        - workspace_id
        - started_at
      type: object
    TaskRunsOn:
      discriminator:
        mapping:
          aether: '#/components/schemas/TaskRunsOnAether'
          disconnected: '#/components/schemas/TaskRunsOnDisconnected'
          stored: '#/components/schemas/TaskRunsOnStored'
        propertyName: runs_on
      oneOf:
        - $ref: '#/components/schemas/TaskRunsOnAether'
        - $ref: '#/components/schemas/TaskRunsOnStored'
        - $ref: '#/components/schemas/TaskRunsOnDisconnected'
    TaskRuntimeTiming:
      discriminator:
        mapping:
          active: '#/components/schemas/TaskRuntimeTimingActive'
          inactive: '#/components/schemas/TaskRuntimeTimingInactive'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskRuntimeTimingInactive'
        - $ref: '#/components/schemas/TaskRuntimeTimingActive'
    TaskSaveToGitHub:
      enum:
        - offered
        - saved
        - not_started
        - agent_child
        - bound_at_creation
      type: string
    TaskSource:
      enum:
        - manual
        - web
        - mobile
        - cli
        - ci
        - sentry
        - linear
        - slack
        - automation
        - pr_review
        - teleport
        - agent
        - delegation
      type: string
    TaskStart:
      description: >-
        What still has to happen on the task's computer before its first turn
        runs. null for a cloud task, for a person's own checkout, and once the
        first run has started or ended.
      discriminator:
        mapping:
          failed: '#/components/schemas/TaskStartFailed'
          pending: '#/components/schemas/TaskStartPending'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskStartPending'
        - $ref: '#/components/schemas/TaskStartFailed'
    TaskUsage:
      additionalProperties: false
      properties:
        tokens_in:
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        tokens_out:
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        vm_uptime_seconds:
          format: int64
          minimum: 0
          type: integer
      required:
        - tokens_in
        - tokens_out
        - vm_uptime_seconds
      type: object
    TaskFailure:
      additionalProperties: false
      properties:
        org_id:
          format: uuid
          type: string
        reason:
          $ref: '#/components/schemas/TaskFailureReason'
      required:
        - reason
        - org_id
      type: object
    McpServerRepoDeclaration:
      additionalProperties: false
      properties:
        cataloged:
          type: boolean
        file:
          enum:
            - .mcp.json
            - .codex/config.toml
          type: string
      required:
        - file
        - cataloged
      type: object
    FileSelection:
      additionalProperties: false
      properties:
        end_line:
          format: int64
          minimum: 1
          type: integer
        start_line:
          format: int64
          minimum: 1
          type: integer
      required:
        - start_line
        - end_line
      type: object
    TaskAwaitingInputMessage:
      additionalProperties: false
      properties:
        idle_compaction:
          $ref: '#/components/schemas/TaskIdleCompaction'
        kind:
          enum:
            - message
          type: string
      required:
        - kind
      type: object
    TaskAwaitingInputPlan:
      additionalProperties: false
      properties:
        input:
          $ref: '#/components/schemas/ProposePlanToolInput'
        kind:
          enum:
            - plan
          type: string
        tool_id:
          minLength: 1
          type: string
      required:
        - kind
        - tool_id
        - input
      type: object
    TaskAwaitingInputQuestions:
      additionalProperties: false
      properties:
        input:
          $ref: '#/components/schemas/AskUserToolInput'
        kind:
          enum:
            - questions
          type: string
        tool_id:
          minLength: 1
          type: string
      required:
        - kind
        - tool_id
        - input
      type: object
    Ability:
      discriminator:
        mapping:
          available: '#/components/schemas/AbilityAvailable'
          not_now: '#/components/schemas/AbilityNotNow'
          not_permitted: '#/components/schemas/AbilityNotPermitted'
          unsupported: '#/components/schemas/AbilityUnsupported'
        propertyName: availability
      oneOf:
        - $ref: '#/components/schemas/AbilityAvailable'
        - $ref: '#/components/schemas/AbilityNotNow'
        - $ref: '#/components/schemas/AbilityUnsupported'
        - $ref: '#/components/schemas/AbilityNotPermitted'
    TaskMachineComputer:
      additionalProperties: false
      description: >-
        The task runs in a folder on one of its creator's computers, on the
        branch last seen there, null while none is known.
      properties:
        branch:
          maxLength: 255
          minLength: 1
          pattern: "^[^\\0- \\x7f-\\xa0  - \L\P  　]+$"
          type:
            - string
            - 'null'
          x-aether-string-length-unit: unicode-code-point
        computer_id:
          format: uuid
          type: string
        computer_name:
          description: The computer's name, which every reader of the task sees.
          maxLength: 100
          minLength: 1
          type: string
          x-aether-string-length-unit: unicode-code-point
        folder:
          maxLength: 4096
          minLength: 1
          pattern: ^/
          type: string
          x-aether-string-length-unit: unicode-code-point
        folder_kind:
          $ref: '#/components/schemas/TaskFolderKind'
        kind:
          enum:
            - computer
          type: string
        reachable:
          description: >-
            Whether the computer's machine bridge is connected, which every
            reader of the task sees.
          type: boolean
      required:
        - kind
        - computer_id
        - computer_name
        - reachable
        - folder
        - branch
        - folder_kind
      type: object
    TaskMachineSandbox:
      additionalProperties: false
      description: The task runs in a cloud sandbox of this hardware.
      properties:
        hardware:
          $ref: '#/components/schemas/HardwareConfig'
        kind:
          enum:
            - sandbox
          type: string
      required:
        - kind
        - hardware
      type: object
    ReviewRunStatus:
      enum:
        - reviewing
        - completed
        - failed
        - cancelled
        - superseded
        - archived
      type: string
    PRReviewSeverityCounts:
      additionalProperties: false
      properties:
        confirmed:
          format: int64
          minimum: 0
          type: integer
        nit:
          format: int64
          minimum: 0
          type: integer
        p1:
          format: int64
          minimum: 0
          type: integer
        p2:
          format: int64
          minimum: 0
          type: integer
        question:
          format: int64
          minimum: 0
          type: integer
      required:
        - p1
        - p2
        - nit
        - question
        - confirmed
      type: object
    PRReviewSummarySeverity:
      enum:
        - p1
        - p2
        - nit
      type: string
    PRReviewSummaryVerdict:
      enum:
        - approve
        - request_changes
        - comment
        - dismissed
        - superseded
      type: string
    TaskActiveProject:
      additionalProperties: false
      properties:
        name:
          minLength: 1
          pattern: \S
          type: string
        repository:
          anyOf:
            - $ref: '#/components/schemas/ProjectRepository'
            - type: 'null'
        state:
          enum:
            - active
          type: string
      required:
        - state
        - name
        - repository
      type: object
    TaskArchivedProject:
      additionalProperties: false
      properties:
        state:
          enum:
            - archived
          type: string
      required:
        - state
      type: object
    TaskRunsOnAether:
      additionalProperties: false
      properties:
        runs_on:
          enum:
            - aether
          type: string
      required:
        - runs_on
      type: object
    TaskRunsOnDisconnected:
      additionalProperties: false
      properties:
        runs_on:
          enum:
            - disconnected
          type: string
      required:
        - runs_on
      type: object
    TaskRunsOnStored:
      additionalProperties: false
      properties:
        id:
          format: uuid
          type: string
        name:
          minLength: 1
          type: string
        option:
          enum:
            - claude_plan
            - anthropic_api_key
            - chatgpt_plan
            - openai_api_key
            - openrouter_api_key
            - opencode_auth_file
          type: string
        runs_on:
          enum:
            - stored
          type: string
      required:
        - runs_on
        - id
        - option
        - name
      type: object
    TaskRuntimeTimingActive:
      additionalProperties: false
      properties:
        active_started_at:
          format: date-time
          type: string
        state:
          enum:
            - active
          type: string
      required:
        - state
        - active_started_at
      type: object
    TaskRuntimeTimingInactive:
      additionalProperties: false
      properties:
        state:
          enum:
            - inactive
          type: string
      required:
        - state
      type: object
    TaskStartFailed:
      additionalProperties: false
      description: >-
        The start failed: checkout_missing, base_branch_unreachable,
        work_tree_failed or session_unplaced.
      properties:
        failure:
          $ref: '#/components/schemas/TaskStartReason'
        state:
          enum:
            - failed
          type: string
      required:
        - state
        - failure
      type: object
    TaskStartPending:
      additionalProperties: false
      description: >-
        The start is under way or held back: making_work_tree while the computer
        makes the task's work tree; placing_session while it makes a fork's and
        places the forked session in it; computer_unreachable while the
        computer's machine bridge is not connected (its message says what to run
        there while the computer needs setting up or its aether CLI is too old);
        agent_starts_off while the computer does not let Aether start agents;
        and, once the work tree is made, starting_agent until the computer asks
        to run the first turn, then what holds that run back: agent_limit,
        not_signed_in, agent_not_installed, chat_busy or open_in_terminal.
      properties:
        state:
          enum:
            - pending
          type: string
        waiting:
          $ref: '#/components/schemas/TaskStartReason'
      required:
        - state
        - waiting
      type: object
    TaskFailureReason:
      enum:
        - inference_balance_empty
        - runtime_credits_exhausted
      type: string
    TaskIdleCompaction:
      additionalProperties: false
      description: >-
        Present while Aether will compact the waiting task's idle conversation:
        at fires_at, just before the prompt cache of the turn that left it idle
        at idle_since expires, it replaces the context_tokens-token conversation
        with a summary. Absent when none is scheduled, a newer turn superseded
        it, the person kept the full context (keepTaskFullContext), or it fired
        or was skipped.
      properties:
        context_tokens:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        fires_at:
          format: date-time
          type: string
        idle_since:
          format: date-time
          type: string
      required:
        - idle_since
        - fires_at
        - context_tokens
      type: object
    ProposePlanToolInput:
      additionalProperties: true
      properties:
        plan:
          type: string
        summary:
          type: string
      required:
        - summary
        - plan
      type: object
    AskUserToolInput:
      additionalProperties: true
      properties:
        questions:
          items:
            $ref: '#/components/schemas/AskUserQuestion'
          minItems: 1
          type: array
      required:
        - questions
      type: object
    AbilityAvailable:
      additionalProperties: false
      description: The action will be carried out.
      properties:
        availability:
          enum:
            - available
          type: string
        notes:
          description: >-
            What a person reads before taking the action; empty when there is
            nothing to note.
          items:
            $ref: '#/components/schemas/AbilityMessage'
          type: array
      required:
        - availability
        - notes
      type: object
    AbilityNotNow:
      additionalProperties: false
      description: The action is possible for this chat or task, but not as things stand.
      properties:
        availability:
          enum:
            - not_now
          type: string
        reason:
          $ref: '#/components/schemas/AbilityMessage'
      required:
        - availability
        - reason
      type: object
    AbilityNotPermitted:
      additionalProperties: false
      description: The caller may not take the action.
      properties:
        availability:
          enum:
            - not_permitted
          type: string
        reason:
          $ref: '#/components/schemas/AbilityMessage'
      required:
        - availability
        - reason
      type: object
    AbilityUnsupported:
      additionalProperties: false
      description: >-
        The action is not possible for this chat or task as it is, and nothing
        the person does here changes that.
      properties:
        availability:
          enum:
            - unsupported
          type: string
        reason:
          $ref: '#/components/schemas/AbilityMessage'
      required:
        - availability
        - reason
      type: object
    TaskFolderKind:
      additionalProperties: false
      description: >-
        The kind of the task's folder: checkout, the person's own checkout,
        which only they see; aether_made, a work tree Aether made, which the
        organization sees. label is what a client shows for it.
      properties:
        code:
          enum:
            - checkout
            - aether_made
          type: string
        label:
          minLength: 1
          pattern: \S
          type: string
      required:
        - code
        - label
      type: object
    HardwareConfig:
      additionalProperties: false
      properties:
        cpu_kind:
          enum:
            - shared
            - performance
          type: string
        cpus:
          format: int64
          maximum: 16
          minimum: 1
          type: integer
        gpu_kind:
          enum:
            - a10
            - l40s
            - a100-40gb
            - a100-80gb
          type:
            - string
            - 'null'
        memory_mb:
          format: int64
          maximum: 32768
          minimum: 256
          type: integer
        volume_size_gb:
          format: int64
          maximum: 500
          minimum: 1
          type: integer
      required:
        - cpu_kind
        - cpus
        - memory_mb
        - volume_size_gb
        - gpu_kind
      type: object
    ProjectRepository:
      additionalProperties: false
      description: >-
        A project's one linked GitHub repository: its identity and the state of
        the link that reaches it.
      properties:
        default_branch:
          minLength: 1
          pattern: \S
          type: string
        github_repo_id:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        link:
          $ref: '#/components/schemas/ProjectRepositoryLink'
        name:
          minLength: 1
          pattern: \S
          type: string
        owner:
          minLength: 1
          pattern: \S
          type: string
        url:
          minLength: 1
          pattern: \S
          type: string
      required:
        - url
        - owner
        - name
        - github_repo_id
        - default_branch
        - link
      type: object
    TaskStartReason:
      additionalProperties: false
      description: What a start waits on or why it failed, as a code and a sentence.
      properties:
        code:
          description: >-
            What the start waits on or why it failed. The set of codes is open:
            a client shows the message of a code it does not know.
          pattern: ^[a-z][a-z0-9_]*$
          type: string
        message:
          description: A plain-text sentence the API writes for the task's readers.
          maxLength: 200
          minLength: 1
          type: string
          x-aether-string-length-unit: unicode-code-point
      required:
        - code
        - message
      type: object
    AskUserQuestion:
      additionalProperties: false
      properties:
        header:
          type: string
        id:
          type: string
        multi_select:
          type: boolean
        options:
          items:
            $ref: '#/components/schemas/AskUserQuestionOption'
          type: array
        question:
          minLength: 1
          pattern: \S
          type: string
      required:
        - question
        - options
      type: object
    AbilityMessage:
      additionalProperties: false
      description: >-
        A note on an available ability, or the reason a refused ability is
        refused.
      properties:
        code:
          description: >-
            What the note or reason is, as a code a client may branch on. An
            open set: a client shows the message of a code it does not know.
          pattern: ^[a-z][a-z0-9_]*$
          type: string
        message:
          description: A full sentence in plain text, written for the person who reads it.
          maxLength: 200
          minLength: 1
          type: string
          x-aether-string-length-unit: unicode-code-point
      required:
        - code
        - message
      type: object
    ProjectRepositoryLink:
      description: >-
        The link state: connected through the installation that reaches the
        repository, or disconnected while the repository identity is kept.
      discriminator:
        mapping:
          connected: '#/components/schemas/ProjectRepositoryLinkConnected'
          disconnected: '#/components/schemas/ProjectRepositoryLinkDisconnected'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/ProjectRepositoryLinkConnected'
        - $ref: '#/components/schemas/ProjectRepositoryLinkDisconnected'
    AskUserQuestionOption:
      additionalProperties: false
      properties:
        description:
          type: string
        label:
          minLength: 1
          pattern: \S
          type: string
        preview:
          type: string
      required:
        - label
      type: object
    ProjectRepositoryLinkConnected:
      additionalProperties: false
      properties:
        installation_id:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        state:
          enum:
            - connected
          type: string
      required:
        - state
        - installation_id
      type: object
    ProjectRepositoryLinkDisconnected:
      additionalProperties: false
      properties:
        state:
          enum:
            - disconnected
          type: string
      required:
        - state
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.