# Generated by `npm run gen:openapi` from packages/api/routeRegistry.ts and
# packages/api/openapi. Do not edit; `npm run gen:openapi:check` fails when stale.
openapi: 3.1.0
info:
  title: ProPR Dashboard API
  version: 2026-06-27
  summary: REST API of a self-hosted ProPR instance.
  description: |-
    The HTTP API the ProPR web UI, desktop app and CLI use. It is served by the dashboard API process under `/api`.

    ## Authentication

    Unless an operation says otherwise, send one of:

    - the browser session cookie set by `GET /api/auth/github`;
    - `Authorization: Bearer <GitHub token>`, accepted while `ENABLE_BEARER_AUTH` is not `false` (the default);
    - `Authorization: Bearer propr_it_…`, a desktop or CLI instance token issued by pairing.

    The caller's GitHub account must be allowed on the instance. Operations with `x-propr-permission` also need that instance permission (admins have all of them). Demo instances reject every mutating request.

    ## Errors

    New routes answer every error with the `ErrorEnvelope` (`code`, `message`, optional `hint`). Existing routes still return the ad-hoc `LegacyError` (`{ "error": "…" }`) and are marked `x-legacy-error: true`.

    ## Coverage

    Every registered route is listed. Routes without an annotation carry `x-undocumented: true`; `info.x-route-coverage` counts them.
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  x-route-coverage:
    total: 303
    documented: 68
    undocumented: 235
servers:
  - url: "{origin}"
    description: Your ProPR API origin, for example the value of `API_PUBLIC_URL`.
    variables:
      origin:
        default: http://localhost:4000
tags:
  - name: System
    description: Health, compatibility and status.
  - name: Authentication
    description: Browser login and the signed-in user.
  - name: Tasks
    description: Task runs, their events, output and follow-ups.
  - name: Task submissions
    description: Idempotent creation of new tasks from an instruction.
  - name: Goals
    description: Long-running goals and their inputs.
  - name: Planner
    description: Plan Studio drafts, revisions and generation.
  - name: Repositories
    description: "Repository context: summaries, chat, to-dos, media and GitHub metadata."
  - name: Observability
    description: Dashboard, statistics, queue, activity and LLM metrics.
  - name: Notifications
    description: Inbox notifications, preferences and Web Push subscriptions.
  - name: Voice
    description: Spoken briefings.
  - name: Desktop
    description: Desktop and CLI discovery, pairing and instance tokens.
  - name: Configuration
    description: Instance settings. Most routes require a management permission.
  - name: Agents
    description: Agent login, images, runtime packages and health.
  - name: Automations
    description: Saved automation definitions, their runs, reports and approvals. The agent-definitions and agent-runs paths are deprecated compatibility aliases.
  - name: Administration
    description: Instance members and MCP administration.
  - name: MCP
    description: The Model Context Protocol endpoint, its OAuth 2.1 authorization server and its browser pages.
  - name: Webhooks
    description: GitHub webhook intake.
paths:
  /.well-known/oauth-authorization-server:
    get:
      operationId: getOAuthAuthorizationServerMetadata
      summary: OAuth authorization server metadata for MCP clients
      tags:
        - MCP
      security: []
      responses:
        "200":
          description: RFC 8414 metadata.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /.well-known/oauth-protected-resource/api/mcp:
    get:
      operationId: getOAuthProtectedResourceMetadata
      summary: OAuth protected resource metadata of the MCP endpoint
      description: RFC 9728 metadata naming this instance as the authorization server of `/api/mcp`. Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp).
      tags:
        - MCP
      security: []
      responses:
        "200":
          description: RFC 9728 metadata.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/activity:
    get:
      operationId: getApiActivity
      summary: GET /api/activity
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/admin/followup-handoffs:
    get:
      operationId: listFollowupHandoffs
      summary: List durable follow-up publication handoffs awaiting recovery or an operator decision
      description: |-
        Each record names its recovery phase, predecessor/successor task lineage, retained worktree path and the next action. Responses are `Cache-Control: no-store`.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Every recorded handoff, including operator-held ones.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FollowupHandoffList"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        "429":
          description: The operator recovery quota (`PROPR_OPERATOR_RATE_LIMIT_MAX` per `PROPR_OPERATOR_RATE_LIMIT_WINDOW_MS`, default 30 per minute) is exhausted; code `RATE_LIMIT_EXCEEDED`. Charged only after the admin guard passes, shared by every follow-up handoff route.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-legacy-error: true
  /api/admin/followup-handoffs/{owner}/{repo}/{pr}:
    get:
      operationId: getFollowupHandoff
      summary: Inspect one pull request's follow-up publication handoff
      description: Requires the `instance.manage_runtime` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          description: Repository owner (case-insensitive).
          schema:
            type: string
        - name: repo
          in: path
          required: true
          description: Repository name (case-insensitive).
          schema:
            type: string
        - name: pr
          in: path
          required: true
          description: Pull request number.
          schema:
            type: string
      responses:
        "200":
          description: The handoff status.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FollowupHandoffDetail"
        "400":
          description: The target is not a sane `owner/repo/pr` address.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        "404":
          description: No handoff is recorded for the pull request.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "429":
          description: The operator recovery quota (`PROPR_OPERATOR_RATE_LIMIT_MAX` per `PROPR_OPERATOR_RATE_LIMIT_WINDOW_MS`, default 30 per minute) is exhausted; code `RATE_LIMIT_EXCEEDED`. Charged only after the admin guard passes, shared by every follow-up handoff route.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-legacy-error: true
  /api/admin/followup-handoffs/{owner}/{repo}/{pr}/release:
    post:
      operationId: releaseFollowupHandoff
      summary: Release the handoff's branch from its retained worktree and retire the record
      description: |-
        Detaches the retained worktree's HEAD (keeping every file) so the branch is usable again, then marks the record released. Refuses while the bound agent is live or unverifiable, while another writer holds the PR lease, or when unpublished work remains — pass `force: true` to release despite unpublished work. Releasing a `usage_limit_retry_unconfirmed` hold records that the usage-limit retry job exists and owns the request (settlement becomes `usage_limit_retry_scheduled`), so its comments are never suppressed as a cancellation; resume instead when no retry job exists. Worktree files are never deleted.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          description: Repository owner (case-insensitive).
          schema:
            type: string
        - name: repo
          in: path
          required: true
          description: Repository name (case-insensitive).
          schema:
            type: string
        - name: pr
          in: path
          required: true
          description: Pull request number.
          schema:
            type: string
      requestBody:
        required: true
        description: Optional flags; `{}` performs a safe release.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/FollowupHandoffReleaseRequest"
      responses:
        "200":
          description: The branch is free and the record retired.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FollowupHandoffReleaseResult"
        "400":
          description: Invalid target or non-boolean flag.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        "404":
          description: No handoff is recorded for the pull request (code `not_found`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: "Refused; `reason` names why: `agent_still_running`, `liveness_unavailable`, `lease_held_by_live_writer`, `worktree_holds_unpublished_work`, `branch_still_registered`, `worktree_registrations_unavailable`, `cancelled_claims_withdrawal_failed` or `superseded` (the handoff changed concurrently, for example an operator re-armed it)."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FollowupHandoffReleaseResult"
        "429":
          description: The operator recovery quota (`PROPR_OPERATOR_RATE_LIMIT_MAX` per `PROPR_OPERATOR_RATE_LIMIT_WINDOW_MS`, default 30 per minute) is exhausted; code `RATE_LIMIT_EXCEEDED`. Charged only after the admin guard passes, shared by every follow-up handoff route.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-legacy-error: true
  /api/admin/followup-handoffs/{owner}/{repo}/{pr}/resume:
    post:
      operationId: resumeFollowupHandoff
      summary: Re-arm an operator-held handoff and run a recovery pass keyed to this pull request
      description: |-
        Without flags, an `awaiting_operator` record returns to `active` and one strictly keyed recovery pass runs: it resumes the exact missing publication phase idempotently and then releases the branch. Work the user cancelled is refused with code `requires_cancellation_authorization` until the request carries `authorizeCancelled: true` (for example after fixing a `worktree_missing` hold: restore the worktree, then resume). Publication side effects are limited to the addressed pull request.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          description: Repository owner (case-insensitive).
          schema:
            type: string
        - name: repo
          in: path
          required: true
          description: Repository name (case-insensitive).
          schema:
            type: string
        - name: pr
          in: path
          required: true
          description: Pull request number.
          schema:
            type: string
      requestBody:
        required: true
        description: Optional flags; `{}` resumes a non-cancelled operator hold.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/FollowupHandoffResumeRequest"
      responses:
        "200":
          description: The keyed pass ran; `summary` counts its outcome and `status` is the state afterwards.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FollowupHandoffResumeResult"
        "400":
          description: Invalid target or non-boolean flag.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        "404":
          description: No handoff is recorded for the pull request (code `not_found`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: "The handoff cannot be resumed. `code` names why: `requires_cancellation_authorization`, `cancellation_authorization_unavailable` (also returned while another writer holds the PR lease), `lease_held_by_live_writer`, `released` or `superseded`."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "429":
          description: The operator recovery quota (`PROPR_OPERATOR_RATE_LIMIT_MAX` per `PROPR_OPERATOR_RATE_LIMIT_WINDOW_MS`, default 30 per minute) is exhausted; code `RATE_LIMIT_EXCEEDED`. Charged only after the admin guard passes, shared by every follow-up handoff route.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-legacy-error: true
  /api/admin/mcp:
    get:
      operationId: getApiAdminMcp
      summary: GET /api/admin/mcp
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    put:
      operationId: putApiAdminMcp
      summary: PUT /api/admin/mcp
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/admin/mcp/logs:
    get:
      operationId: getApiAdminMcpLogs
      summary: GET /api/admin/mcp/logs
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/admin/mcp/logs/stats:
    get:
      operationId: getApiAdminMcpLogsStats
      summary: GET /api/admin/mcp/logs/stats
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/admin/mcp/revoke-all:
    post:
      operationId: postApiAdminMcpRevokeAll
      summary: POST /api/admin/mcp/revoke-all
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/admin/members:
    get:
      operationId: getApiAdminMembers
      summary: GET /api/admin/members
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiAdminMembers
      summary: POST /api/admin/members
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
  /api/admin/members/claim:
    post:
      operationId: postApiAdminMembersClaim
      summary: POST /api/admin/members/claim
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
  /api/admin/members/{githubUserId}:
    patch:
      operationId: patchApiAdminMembersGithubUserId
      summary: PATCH /api/admin/members/{githubUserId}
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: githubUserId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiAdminMembersGithubUserId
      summary: DELETE /api/admin/members/{githubUserId}
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: githubUserId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
  /api/admin/role-audit:
    get:
      operationId: getApiAdminRoleAudit
      summary: GET /api/admin/role-audit
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_members` instance permission.
      tags:
        - Administration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_members
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions:
    get:
      operationId: getApiAgentDefinitions
      summary: GET /api/agent-definitions
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiAgentDefinitions
      summary: POST /api/agent-definitions
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/contract:
    get:
      operationId: getApiAgentDefinitionsContract
      summary: GET /api/agent-definitions/contract
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/{id}:
    get:
      operationId: getApiAgentDefinitionsId
      summary: GET /api/agent-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    patch:
      operationId: patchApiAgentDefinitionsId
      summary: PATCH /api/agent-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiAgentDefinitionsId
      summary: DELETE /api/agent-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/{id}/attachments:
    post:
      operationId: postApiAgentDefinitionsIdAttachments
      summary: POST /api/agent-definitions/{id}/attachments
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/{id}/attachments/{attachmentId}:
    delete:
      operationId: deleteApiAgentDefinitionsIdAttachmentsAttachmentId
      summary: DELETE /api/agent-definitions/{id}/attachments/{attachmentId}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: attachmentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/{id}/capacity:
    get:
      operationId: getApiAgentDefinitionsIdCapacity
      summary: GET /api/agent-definitions/{id}/capacity
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-definitions/{id}/runs:
    get:
      operationId: getApiAgentDefinitionsIdRuns
      summary: GET /api/agent-definitions/{id}/runs
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiAgentDefinitionsIdRuns
      summary: POST /api/agent-definitions/{id}/runs
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runs/{runId}:
    get:
      operationId: getApiAgentRunsRunId
      summary: GET /api/agent-runs/{runId}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runs/{runId}/approve:
    post:
      operationId: postApiAgentRunsRunIdApprove
      summary: POST /api/agent-runs/{runId}/approve
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runs/{runId}/cancel:
    post:
      operationId: postApiAgentRunsRunIdCancel
      summary: POST /api/agent-runs/{runId}/cancel
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runs/{runId}/reject:
    post:
      operationId: postApiAgentRunsRunIdReject
      summary: POST /api/agent-runs/{runId}/reject
      description: This route is registered but not documented yet.
      tags:
        - Automations
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runtime/packages:
    get:
      operationId: getApiAgentRuntimePackages
      summary: GET /api/agent-runtime/packages
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
    put:
      operationId: putApiAgentRuntimePackages
      summary: PUT /api/agent-runtime/packages
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runtime/packages/apply:
    post:
      operationId: postApiAgentRuntimePackagesApply
      summary: POST /api/agent-runtime/packages/apply
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runtime/packages/search:
    get:
      operationId: getApiAgentRuntimePackagesSearch
      summary: GET /api/agent-runtime/packages/search
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runtime/packages/validate:
    post:
      operationId: postApiAgentRuntimePackagesValidate
      summary: POST /api/agent-runtime/packages/validate
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
  /api/agent-runtime/packages/verify:
    post:
      operationId: postApiAgentRuntimePackagesVerify
      summary: POST /api/agent-runtime/packages/verify
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_runtime` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_runtime
      x-undocumented: true
      x-legacy-error: true
  /api/agents/chat:
    post:
      operationId: postApiAgentsChat
      summary: POST /api/agents/chat
      description: This route is registered but not documented yet.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/agents/opencode/models:
    get:
      operationId: getApiAgentsOpencodeModels
      summary: GET /api/agents/opencode/models
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/resolve-version:
    post:
      operationId: postApiAgentsResolveVersion
      summary: POST /api/agents/resolve-version
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/versions/{agentType}:
    get:
      operationId: getApiAgentsVersionsAgentType
      summary: GET /api/agents/versions/{agentType}
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentType
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentId}/build-image:
    post:
      operationId: postApiAgentsAgentIdBuildImage
      summary: POST /api/agents/{agentId}/build-image
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentId}/health:
    post:
      operationId: postApiAgentsAgentIdHealth
      summary: POST /api/agents/{agentId}/health
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentId}/login-sessions:
    post:
      operationId: postApiAgentsAgentIdLoginSessions
      summary: POST /api/agents/{agentId}/login-sessions
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentId}/login-sessions/{sessionId}:
    get:
      operationId: getApiAgentsAgentIdLoginSessionsSessionId
      summary: GET /api/agents/{agentId}/login-sessions/{sessionId}
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiAgentsAgentIdLoginSessionsSessionId
      summary: DELETE /api/agents/{agentId}/login-sessions/{sessionId}
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentId}/login-sessions/{sessionId}/input:
    post:
      operationId: postApiAgentsAgentIdLoginSessionsSessionIdInput
      summary: POST /api/agents/{agentId}/login-sessions/{sessionId}/input
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentType}/image-tag:
    get:
      operationId: getApiAgentsAgentTypeImageTag
      summary: GET /api/agents/{agentType}/image-tag
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentType
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentType}/images:
    get:
      operationId: getApiAgentsAgentTypeImages
      summary: GET /api/agents/{agentType}/images
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentType
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/agents/{agentType}/images/cleanup:
    delete:
      operationId: deleteApiAgentsAgentTypeImagesCleanup
      summary: DELETE /api/agents/{agentType}/images/cleanup
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Agents
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: agentType
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/auth/demo-mode:
    get:
      operationId: getDemoMode
      summary: Report whether the instance runs in read-only demo mode
      tags:
        - Authentication
      security: []
      responses:
        "200":
          description: Demo mode flag.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DemoModeStatus"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/auth/github:
    get:
      operationId: startGitHubLogin
      summary: Start the GitHub OAuth login (browser)
      tags:
        - Authentication
      security: []
      responses:
        "302":
          description: Redirect to GitHub.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/auth/github/callback:
    get:
      operationId: completeGitHubLogin
      summary: GitHub OAuth callback (browser)
      tags:
        - Authentication
      security: []
      responses:
        "302":
          description: Redirect to the web UI with a session cookie set.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/auth/logout:
    get:
      operationId: logout
      summary: End the browser session
      tags:
        - Authentication
      security: []
      responses:
        "302":
          description: Redirect to the login page.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/auth/user:
    get:
      operationId: getAuthenticatedUser
      summary: Get the signed-in user
      tags:
        - Authentication
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: The caller and their instance role.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuthenticatedUser"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/automation-definitions:
    get:
      operationId: getApiAutomationDefinitions
      summary: GET /api/automation-definitions
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiAutomationDefinitions
      summary: POST /api/automation-definitions
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/contract:
    get:
      operationId: getApiAutomationDefinitionsContract
      summary: GET /api/automation-definitions/contract
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/{id}:
    get:
      operationId: getApiAutomationDefinitionsId
      summary: GET /api/automation-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    patch:
      operationId: patchApiAutomationDefinitionsId
      summary: PATCH /api/automation-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiAutomationDefinitionsId
      summary: DELETE /api/automation-definitions/{id}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/{id}/attachments:
    post:
      operationId: postApiAutomationDefinitionsIdAttachments
      summary: POST /api/automation-definitions/{id}/attachments
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/{id}/attachments/{attachmentId}:
    delete:
      operationId: deleteApiAutomationDefinitionsIdAttachmentsAttachmentId
      summary: DELETE /api/automation-definitions/{id}/attachments/{attachmentId}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: attachmentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/{id}/capacity:
    get:
      operationId: getApiAutomationDefinitionsIdCapacity
      summary: GET /api/automation-definitions/{id}/capacity
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-definitions/{id}/runs:
    get:
      operationId: getApiAutomationDefinitionsIdRuns
      summary: GET /api/automation-definitions/{id}/runs
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiAutomationDefinitionsIdRuns
      summary: POST /api/automation-definitions/{id}/runs
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-runs/{runId}:
    get:
      operationId: getApiAutomationRunsRunId
      summary: GET /api/automation-runs/{runId}
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-runs/{runId}/approve:
    post:
      operationId: postApiAutomationRunsRunIdApprove
      summary: POST /api/automation-runs/{runId}/approve
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-runs/{runId}/cancel:
    post:
      operationId: postApiAutomationRunsRunIdCancel
      summary: POST /api/automation-runs/{runId}/cancel
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/automation-runs/{runId}/reject:
    post:
      operationId: postApiAutomationRunsRunIdReject
      summary: POST /api/automation-runs/{runId}/reject
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/catalog:
    get:
      operationId: getApiCatalog
      summary: GET /api/catalog
      description: This route is registered but not documented yet.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/compatibility:
    get:
      operationId: getCompatibility
      summary: Get version and compatibility metadata
      description: Unauthenticated. Clients compare `apiCompatibility` with the date they were built against before calling other routes.
      tags:
        - System
      security: []
      responses:
        "200":
          description: Version and capability metadata.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Compatibility"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/config/agent-tank:
    get:
      operationId: getApiConfigAgentTank
      summary: GET /api/config/agent-tank
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigAgentTank
      summary: POST /api/config/agent-tank
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/agent-tank/detect:
    get:
      operationId: getApiConfigAgentTankDetect
      summary: GET /api/config/agent-tank/detect
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/agent-tank/refresh:
    post:
      operationId: postApiConfigAgentTankRefresh
      summary: POST /api/config/agent-tank/refresh
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/agent-tank/status:
    get:
      operationId: getApiConfigAgentTankStatus
      summary: GET /api/config/agent-tank/status
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/agent-tank/usage:
    get:
      operationId: getApiConfigAgentTankUsage
      summary: GET /api/config/agent-tank/usage
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/agents:
    get:
      operationId: getApiConfigAgents
      summary: GET /api/config/agents
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigAgents
      summary: POST /api/config/agents
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/ai-primary-tag:
    get:
      operationId: getApiConfigAiPrimaryTag
      summary: GET /api/config/ai-primary-tag
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigAiPrimaryTag
      summary: POST /api/config/ai-primary-tag
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/followup-ignore-keywords:
    get:
      operationId: getApiConfigFollowupIgnoreKeywords
      summary: GET /api/config/followup-ignore-keywords
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigFollowupIgnoreKeywords
      summary: POST /api/config/followup-ignore-keywords
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/followup-keywords:
    get:
      operationId: getApiConfigFollowupKeywords
      summary: GET /api/config/followup-keywords
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigFollowupKeywords
      summary: POST /api/config/followup-keywords
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/pr-label:
    get:
      operationId: getApiConfigPrLabel
      summary: GET /api/config/pr-label
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigPrLabel
      summary: POST /api/config/pr-label
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/preview-storage:
    get:
      operationId: getApiConfigPreviewStorage
      summary: GET /api/config/preview-storage
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/primary-processing-labels:
    get:
      operationId: getApiConfigPrimaryProcessingLabels
      summary: GET /api/config/primary-processing-labels
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigPrimaryProcessingLabels
      summary: POST /api/config/primary-processing-labels
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/repos:
    get:
      operationId: getApiConfigRepos
      summary: GET /api/config/repos
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigRepos
      summary: POST /api/config/repos
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/repos/indexing-status:
    get:
      operationId: getApiConfigReposIndexingStatus
      summary: GET /api/config/repos/indexing-status
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/repos/stop-indexing:
    post:
      operationId: postApiConfigReposStopIndexing
      summary: POST /api/config/repos/stop-indexing
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/repos/trigger-indexing:
    post:
      operationId: postApiConfigReposTriggerIndexing
      summary: POST /api/config/repos/trigger-indexing
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/settings:
    get:
      operationId: getApiConfigSettings
      summary: GET /api/config/settings
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigSettings
      summary: POST /api/config/settings
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/summarization:
    get:
      operationId: getApiConfigSummarization
      summary: GET /api/config/summarization
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigSummarization
      summary: POST /api/config/summarization
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/summarization/reindex-all:
    post:
      operationId: postApiConfigSummarizationReindexAll
      summary: POST /api/config/summarization/reindex-all
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/synthetic-agents:
    get:
      operationId: getApiConfigSyntheticAgents
      summary: GET /api/config/synthetic-agents
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigSyntheticAgents
      summary: POST /api/config/synthetic-agents
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_agents` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_agents
      x-undocumented: true
      x-legacy-error: true
  /api/config/visual-preview-auth:
    get:
      operationId: getApiConfigVisualPreviewAuth
      summary: GET /api/config/visual-preview-auth
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiConfigVisualPreviewAuth
      summary: POST /api/config/visual-preview-auth
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiConfigVisualPreviewAuth
      summary: DELETE /api/config/visual-preview-auth
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/config/visual-preview-auth/token:
    put:
      operationId: putApiConfigVisualPreviewAuthToken
      summary: PUT /api/config/visual-preview-auth/token
      description: |-
        This route is registered but not documented yet.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-undocumented: true
      x-legacy-error: true
  /api/dashboard/active:
    get:
      operationId: getApiDashboardActive
      summary: GET /api/dashboard/active
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/dashboard/attention:
    get:
      operationId: getApiDashboardAttention
      summary: GET /api/dashboard/attention
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/dashboard/narrative:
    get:
      operationId: getApiDashboardNarrative
      summary: GET /api/dashboard/narrative
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/dashboard/outcomes:
    get:
      operationId: getApiDashboardOutcomes
      summary: GET /api/dashboard/outcomes
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/dashboard/summary:
    get:
      operationId: getApiDashboardSummary
      summary: GET /api/dashboard/summary
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/desktop/active-work:
    get:
      operationId: getApiDesktopActiveWork
      summary: GET /api/desktop/active-work
      description: This route is registered but not documented yet.
      tags:
        - Desktop
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/desktop/discovery:
    get:
      operationId: getDesktopDiscovery
      summary: Get public desktop discovery metadata
      description: Unauthenticated and credential-free. See the desktop pairing guide (docs/operations/desktop-pairing) for the protocol.
      tags:
        - Desktop
      security: []
      responses:
        "200":
          description: Discovery metadata.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopDiscovery"
        "503":
          description: The public instance identity is unavailable.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/desktop/pairings:
    post:
      operationId: startDesktopPairing
      summary: Start a desktop or CLI pairing
      description: See the desktop pairing guide (docs/operations/desktop-pairing) for the protocol.
      tags:
        - Desktop
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DesktopPairingStartRequest"
      responses:
        "201":
          description: Pairing started; the user opens `approvalUrl` to approve it.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopPairingStart"
        "400":
          description: "`INVALID_CLIENT_NAME` or `INVALID_PAIRING_BINDING`."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/activate:
    post:
      operationId: activateDesktopPairing
      summary: Activate an approved pairing
      description: See the desktop pairing guide (docs/operations/desktop-pairing) for the protocol.
      tags:
        - Desktop
      security: []
      parameters:
        - name: pairingId
          in: path
          required: true
          description: Pairing identifier returned when the pairing started.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DesktopPairingTicket"
      responses:
        "200":
          description: Activation receipt.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopPairingActivationReceipt"
        "404":
          description: Unknown pairing, or the secret, ticket or binding does not match (`PAIRING_NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/approval:
    get:
      operationId: getApiDesktopPairingsPairingIdApproval
      summary: GET /api/desktop/pairings/{pairingId}/approval
      description: This route is registered but not documented yet.
      tags:
        - Desktop
      security:
        - sessionCookie: []
      parameters:
        - name: pairingId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/approve:
    post:
      operationId: postApiDesktopPairingsPairingIdApprove
      summary: POST /api/desktop/pairings/{pairingId}/approve
      description: This route is registered but not documented yet.
      tags:
        - Desktop
      security:
        - sessionCookie: []
      parameters:
        - name: pairingId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/browser:
    get:
      operationId: getApiDesktopPairingsPairingIdBrowser
      summary: GET /api/desktop/pairings/{pairingId}/browser
      description: This route is registered but not documented yet.
      tags:
        - Desktop
      security: []
      parameters:
        - name: pairingId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-undocumented: true
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/cancel:
    post:
      operationId: cancelDesktopPairing
      summary: Cancel a pending pairing
      description: See the desktop pairing guide (docs/operations/desktop-pairing) for the protocol.
      tags:
        - Desktop
      security: []
      parameters:
        - name: pairingId
          in: path
          required: true
          description: Pairing identifier returned when the pairing started.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DesktopPairingTicket"
      responses:
        "200":
          description: Cancellation receipt; repeating the request returns the first one.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopPairingCancellation"
        "404":
          description: Unknown pairing, or the secret, ticket or binding does not match (`PAIRING_NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/desktop/pairings/{pairingId}/poll:
    post:
      operationId: pollDesktopPairing
      summary: Poll a pairing for approval
      description: See the desktop pairing guide (docs/operations/desktop-pairing) for the protocol.
      tags:
        - Desktop
      security: []
      parameters:
        - name: pairingId
          in: path
          required: true
          description: Pairing identifier returned when the pairing started.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DesktopPairingPollRequest"
      responses:
        "200":
          description: "Approved: a provisional token and the activation ticket."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopPairingPoll"
        "202":
          description: Not approved yet; poll again after `interval` seconds.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DesktopPairingPoll"
        "404":
          description: Unknown pairing or wrong device secret (`PAIRING_NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /api/desktop/tokens:
    get:
      operationId: listInstanceTokens
      summary: List your desktop and CLI instance tokens
      tags:
        - Desktop
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: "`{ tokens: [...] }`: your instance tokens, never the secret values."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/desktop/tokens/current:
    delete:
      operationId: revokeCurrentInstanceToken
      summary: Revoke the instance token used for this request
      tags:
        - Desktop
      security:
        - bearerAuth: []
      responses:
        "204":
          description: Revoked.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: The token does not exist.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: instanceToken
      x-legacy-error: true
  /api/desktop/tokens/{tokenId}:
    delete:
      operationId: revokeInstanceToken
      summary: Revoke one of your instance tokens
      tags:
        - Desktop
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: tokenId
          in: path
          required: true
          description: Token identifier from `listInstanceTokens`.
          schema:
            type: string
      responses:
        "204":
          description: Revoked.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/execution/{sessionId}/logs:
    get:
      operationId: getApiExecutionSessionIdLogs
      summary: GET /api/execution/{sessionId}/logs
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/execution/{sessionId}/logs/{type}:
    get:
      operationId: getApiExecutionSessionIdLogsType
      summary: GET /api/execution/{sessionId}/logs/{type}
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
        - name: type
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/execution/{sessionId}/prompt:
    get:
      operationId: getApiExecutionSessionIdPrompt
      summary: GET /api/execution/{sessionId}/prompt
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/extensions/mcp/{serverName}:
    post:
      operationId: callAgentExtensionMcp
      summary: Run-scoped bounded MCP gateway; no browser or OAuth authority.
      tags:
        - MCP
      security:
        - extensionBearer: []
      parameters:
        - name: serverName
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: JSON-RPC initialize, ping, initialized notification, tools/list or explicitly authorized tools/call.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Sanitized MCP response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "202":
          description: Notification accepted.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: extensionGrant
      x-legacy-error: true
  /api/github/repos:
    get:
      operationId: getApiGithubRepos
      summary: GET /api/github/repos
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/github/repos/{owner}/{repo}/branches:
    get:
      operationId: getApiGithubReposOwnerRepoBranches
      summary: GET /api/github/repos/{owner}/{repo}/branches
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/github/repos/{owner}/{repo}/workflows:
    get:
      operationId: getApiGithubReposOwnerRepoWorkflows
      summary: GET /api/github/repos/{owner}/{repo}/workflows
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals:
    get:
      operationId: getApiGoals
      summary: GET /api/goals
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiGoals
      summary: POST /api/goals
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/attention:
    get:
      operationId: getApiGoalsAttention
      summary: GET /api/goals/attention
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/capabilities:
    get:
      operationId: getApiGoalsCapabilities
      summary: GET /api/goals/capabilities
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}:
    get:
      operationId: getApiGoalsGoalId
      summary: GET /api/goals/{goalId}
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiGoalsGoalId
      summary: DELETE /api/goals/{goalId}
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/attachments/{attachmentId}:
    get:
      operationId: getApiGoalsGoalIdAttachmentsAttachmentId
      summary: GET /api/goals/{goalId}/attachments/{attachmentId}
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
        - name: attachmentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/cancel:
    post:
      operationId: postApiGoalsGoalIdCancel
      summary: POST /api/goals/{goalId}/cancel
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/detail:
    get:
      operationId: getApiGoalsGoalIdDetail
      summary: GET /api/goals/{goalId}/detail
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/input:
    post:
      operationId: postApiGoalsGoalIdInput
      summary: POST /api/goals/{goalId}/input
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/inputs:
    get:
      operationId: getApiGoalsGoalIdInputs
      summary: GET /api/goals/{goalId}/inputs
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/model:
    patch:
      operationId: patchApiGoalsGoalIdModel
      summary: PATCH /api/goals/{goalId}/model
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/pause:
    post:
      operationId: postApiGoalsGoalIdPause
      summary: POST /api/goals/{goalId}/pause
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/previews:
    get:
      operationId: getApiGoalsGoalIdPreviews
      summary: GET /api/goals/{goalId}/previews
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/resume:
    post:
      operationId: postApiGoalsGoalIdResume
      summary: POST /api/goals/{goalId}/resume
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/goals/{goalId}/wait:
    get:
      operationId: getApiGoalsGoalIdWait
      summary: GET /api/goals/{goalId}/wait
      description: This route is registered but not documented yet.
      tags:
        - Goals
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: goalId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/import-tasks:
    post:
      operationId: postApiImportTasks
      summary: POST /api/import-tasks
      description: This route is registered but not documented yet.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/instance/catalog:
    get:
      operationId: getApiInstanceCatalog
      summary: GET /api/instance/catalog
      description: This route is registered but not documented yet.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/instance/extensions/v1:
    get:
      operationId: listAgentExtensionProfiles
      summary: List secret-free current extension revisions, the versioned contract and operator catalog identity/digest, tools/capability and opaque secret count/configuration status.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Current durable instance administrators only; works without Connect.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/delete:
    post:
      operationId: deleteAgentExtensionProfile
      summary: Disable new launches without changing active snapshots.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: "selection: exact instanceId, profileId and revision."
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Profile tombstoned.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/profiles:
    post:
      operationId: saveAgentExtensionProfile
      summary: Create an immutable revision with optional write-only secret replacements.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: X-ProPR-Extensions
          in: header
          required: true
          description: Must be 1. JSON requests only.
          schema:
            type: string
      requestBody:
        required: true
        description: input follows ExtensionProfileInput v1; expected is the exact instance/profile/revision selection for updates. secrets maps server names to replacement tokens or null; values are never returned.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExtensionProfileSave"
      responses:
        "200":
          description: Secret-free revision.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/profiles/{profileId}/history:
    get:
      operationId: getAgentExtensionProfileHistory
      summary: Read immutable, secret-free revision history.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: profileId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Revision history.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/skills/archive:
    post:
      operationId: importAgentExtensionSkillArchive
      summary: Import a bounded strict tar or tar.gz skill bundle.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: filename and base64 archive, at most 5 MiB compressed and 4 MiB expanded. Requires SKILL.md.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Immutable digest and provenance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/skills/github:
    post:
      operationId: importAgentExtensionGitSkill
      summary: Import an authorized GitHub skill at an exact commit and relative directory.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: repository, 40-character commit SHA, directory. Caller repository authorization is required.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Immutable digest and exact source commit.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/skills/github-source:
    post:
      operationId: resolveAgentExtensionGitSource
      summary: List branches and tags or resolve a selected ref to an immutable commit.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: Authorized repository and optional ref. Lists at most 100 branches and 100 tags.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Ref choices or exact commit for confirmation.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/tools/discover:
    post:
      operationId: discoverAgentExtensionTools
      summary: Probe a public HTTPS MCP endpoint without credentials; return valid tool names only.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: url only. Requires the extension preflight JSON header.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Tool names only.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/extensions/v1/validate:
    post:
      operationId: validateAgentExtensionMcp
      summary: Validate connectivity without disclosing any upstream response content.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - Configuration
      security:
        - sessionCookie: []
        - bearerAuth: []
      requestBody:
        required: true
        description: "selection: exact instanceId, profileId and revision."
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Server names and reachable booleans only.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/capabilities:
    get:
      operationId: getInstanceStorageCapabilities
      summary: Negotiate native instance storage capabilities and process generation.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Instance administrator capabilities; no Connect subscription required.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStorageCapabilities"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/cleanup/execute:
    post:
      operationId: executeInstanceStorageCleanup
      summary: Consume a principal-bound confirmation and revalidate before deleting any candidate.
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1; browser calls require an authorized CORS preflight.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceStorageExecuteRequest"
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStorageResult"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/cleanup/operations/{operationId}:
    get:
      operationId: getInstanceStorageCleanupResult
      summary: Read the initiating principal’s durable cleanup result.
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: operationId
          in: path
          required: true
          schema:
            type: string
        - name: instanceId
          in: query
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStorageResult"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: InstanceStorageResultQuery
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/cleanup/preview:
    post:
      operationId: previewInstanceStorageCleanup
      summary: Preview an explicit instance/category selection; worktrees includes only proven generated payloads; terminal task history requires explicit taskIds.
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1; browser calls require an authorized CORS preflight.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceStoragePreviewRequest"
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStoragePreview"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/exports:
    post:
      operationId: startInstanceDatabaseExport
      summary: Start a private asynchronous customer database snapshot.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceDatabaseExportRequest"
      responses:
        "202":
          description: Actor-bound expiring export job.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceDatabaseExport"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/exports/{operationId}:
    get:
      operationId: getInstanceDatabaseExport
      summary: Read the initiating administrator’s export status.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: operationId
          in: path
          required: true
          schema:
            type: string
        - name: instanceId
          in: query
          required: true
          schema:
            type: string
        - name: generation
          in: query
          required: true
          schema:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      responses:
        "200":
          description: Export state, digest, size and schema version.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceDatabaseExport"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: InstanceDatabaseExportQuery
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/exports/{operationId}/cancel:
    post:
      operationId: cancelInstanceDatabaseExport
      summary: Abort and discard an administrator’s private export.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: operationId
          in: path
          required: true
          schema:
            type: string
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceDatabaseExportRequest"
      responses:
        "200":
          description: Export discarded.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/exports/{operationId}/download:
    post:
      operationId: downloadInstanceDatabaseExport
      summary: Redeem an export once using current instance-admin authority.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: operationId
          in: path
          required: true
          schema:
            type: string
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceDatabaseExportRequest"
      responses:
        "200":
          description: Integrity-checked SQLite snapshot; attachment, no-store.
          content:
            application/vnd.sqlite3:
              schema:
                type: string
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/policy:
    get:
      operationId: getInstanceStoragePolicy
      summary: Get opt-in repository cleanup policy (disabled, 24 idle hours by default).
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStoragePolicy"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
    put:
      operationId: updateInstanceStoragePolicy
      summary: Persist the explicitly selected instance cleanup policy.
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: X-ProPR-Storage
          in: header
          required: true
          description: Must equal 1; browser calls require an authorized CORS preflight.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/InstanceStoragePolicyRequest"
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStoragePolicy"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/repositories:
    get:
      operationId: getInstanceRepositoryInventory
      summary: Read a bounded partial repository storage inventory with protection reasons.
      description: Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Safe identifiers and sizes; no host paths or contents.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceRepositoryInventory"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/instance/storage/v1/usage:
    get:
      operationId: getInstanceStorageUsage
      summary: Get bounded asynchronous per-instance storage observations.
      description: |-
        Version 1 contract: docs/architecture/instance-storage-v1. Instance administrator required. Mutations require application/json and X-ProPR-Storage: 1. Offline/unknown usage is never zero.

        Requires the `instance.manage_settings` instance permission.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Versioned instance storage response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InstanceStorageUsage"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          $ref: "#/components/responses/LegacyForbidden"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-propr-permission: instance.manage_settings
      x-legacy-error: true
  /api/internal/agent-runs/{runId}/mcp-grants:
    post:
      operationId: postApiInternalAgentRunsRunIdMcpGrants
      summary: POST /api/internal/agent-runs/{runId}/mcp-grants
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-undocumented: true
      x-legacy-error: true
  /api/internal/agent-runs/{runId}/mcp-grants/revoke:
    post:
      operationId: postApiInternalAgentRunsRunIdMcpGrantsRevoke
      summary: POST /api/internal/agent-runs/{runId}/mcp-grants/revoke
      description: This route is registered but not documented yet.
      tags:
        - Automations
      security: []
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-undocumented: true
      x-legacy-error: true
  /api/internal/hosted/bootstrap:
    get:
      operationId: getApiInternalHostedBootstrap
      summary: GET /api/internal/hosted/bootstrap
      description: This route is registered but not documented yet.
      tags:
        - System
      security:
        - fleetSecret: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: fleetSecret
      x-undocumented: true
      x-legacy-error: true
  /api/internal/hosted/queue:
    get:
      operationId: getApiInternalHostedQueue
      summary: GET /api/internal/hosted/queue
      description: This route is registered but not documented yet.
      tags:
        - System
      security:
        - fleetSecret: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: fleetSecret
      x-undocumented: true
      x-legacy-error: true
  /api/internal/hosted/status:
    get:
      operationId: getApiInternalHostedStatus
      summary: GET /api/internal/hosted/status
      description: This route is registered but not documented yet.
      tags:
        - System
      security:
        - fleetSecret: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: fleetSecret
      x-undocumented: true
      x-legacy-error: true
  /api/llm-logs:
    get:
      operationId: getApiLlmLogs
      summary: GET /api/llm-logs
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/llm-metrics:
    get:
      operationId: getApiLlmMetrics
      summary: GET /api/llm-metrics
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/llm-metrics/{correlationId}:
    get:
      operationId: getApiLlmMetricsCorrelationId
      summary: GET /api/llm-metrics/{correlationId}
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: correlationId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/mcp:
    get:
      operationId: getApiMcp
      summary: GET /api/mcp
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - mcpOAuth:
            - read
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: mcp
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: mcpRequest
      summary: MCP Streamable HTTP endpoint
      description: JSON-RPC requests of the Model Context Protocol. Each tool checks the token's scopes. Returns `404` while MCP is disabled. See the MCP guide (docs/features/mcp) for the tool catalogue.
      tags:
        - MCP
      security:
        - mcpOAuth:
            - read
      requestBody:
        required: true
        description: A JSON-RPC 2.0 request or notification.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: JSON-RPC response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "202":
          description: Notification accepted.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: mcp
      x-legacy-error: true
    delete:
      operationId: deleteApiMcp
      summary: DELETE /api/mcp
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - mcpOAuth:
            - read
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: mcp
      x-undocumented: true
      x-legacy-error: true
  /api/metrics:
    get:
      operationId: getApiMetrics
      summary: GET /api/metrics
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications:
    get:
      operationId: getApiNotifications
      summary: GET /api/notifications
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/capabilities:
    get:
      operationId: getApiNotificationsCapabilities
      summary: GET /api/notifications/capabilities
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/config:
    get:
      operationId: getApiNotificationsConfig
      summary: GET /api/notifications/config
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/dismiss-all:
    post:
      operationId: postApiNotificationsDismissAll
      summary: POST /api/notifications/dismiss-all
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/preferences:
    get:
      operationId: getApiNotificationsPreferences
      summary: GET /api/notifications/preferences
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    patch:
      operationId: patchApiNotificationsPreferences
      summary: PATCH /api/notifications/preferences
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/push-subscriptions:
    get:
      operationId: getApiNotificationsPushSubscriptions
      summary: GET /api/notifications/push-subscriptions
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiNotificationsPushSubscriptions
      summary: POST /api/notifications/push-subscriptions
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiNotificationsPushSubscriptions
      summary: DELETE /api/notifications/push-subscriptions
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/push-subscriptions/{subscriptionId}:
    delete:
      operationId: deleteApiNotificationsPushSubscriptionsSubscriptionId
      summary: DELETE /api/notifications/push-subscriptions/{subscriptionId}
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: subscriptionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/unread-count:
    get:
      operationId: getNotificationUnreadCount
      summary: Count unread inbox notifications
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Unread notifications of the caller.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/NotificationUnreadCount"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/notifications/{id}/dismiss:
    post:
      operationId: postApiNotificationsIdDismiss
      summary: POST /api/notifications/{id}/dismiss
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/notifications/{id}/read:
    post:
      operationId: postApiNotificationsIdRead
      summary: POST /api/notifications/{id}/read
      description: This route is registered but not documented yet.
      tags:
        - Notifications
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/abort:
    post:
      operationId: postApiPlannerAbort
      summary: POST /api/planner/abort
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/abort-refinement:
    post:
      operationId: postApiPlannerAbortRefinement
      summary: POST /api/planner/abort-refinement
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/context/stats:
    post:
      operationId: postApiPlannerContextStats
      summary: POST /api/planner/context/stats
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts:
    get:
      operationId: getApiPlannerDrafts
      summary: GET /api/planner/drafts
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiPlannerDrafts
      summary: POST /api/planner/drafts
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/repositories:
    get:
      operationId: getApiPlannerDraftsRepositories
      summary: GET /api/planner/drafts/repositories
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}:
    get:
      operationId: getApiPlannerDraftsId
      summary: GET /api/planner/drafts/{id}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    put:
      operationId: putApiPlannerDraftsId
      summary: PUT /api/planner/drafts/{id}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiPlannerDraftsId
      summary: DELETE /api/planner/drafts/{id}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/attachments:
    post:
      operationId: postApiPlannerDraftsIdAttachments
      summary: POST /api/planner/drafts/{id}/attachments
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/attachments/{attachmentId}:
    get:
      operationId: getApiPlannerDraftsIdAttachmentsAttachmentId
      summary: GET /api/planner/drafts/{id}/attachments/{attachmentId}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: attachmentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiPlannerDraftsIdAttachmentsAttachmentId
      summary: DELETE /api/planner/drafts/{id}/attachments/{attachmentId}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: attachmentId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/execution-queue:
    get:
      operationId: getApiPlannerDraftsIdExecutionQueue
      summary: GET /api/planner/drafts/{id}/execution-queue
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiPlannerDraftsIdExecutionQueue
      summary: POST /api/planner/drafts/{id}/execution-queue
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/execution-settings:
    patch:
      operationId: patchApiPlannerDraftsIdExecutionSettings
      summary: PATCH /api/planner/drafts/{id}/execution-settings
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/issues:
    get:
      operationId: getApiPlannerDraftsIdIssues
      summary: GET /api/planner/drafts/{id}/issues
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/issues/{issueNumber}:
    patch:
      operationId: patchApiPlannerDraftsIdIssuesIssueNumber
      summary: PATCH /api/planner/drafts/{id}/issues/{issueNumber}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: issueNumber
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/issues/{issueNumber}/implement:
    post:
      operationId: postApiPlannerDraftsIdIssuesIssueNumberImplement
      summary: POST /api/planner/drafts/{id}/issues/{issueNumber}/implement
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: issueNumber
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/pause:
    post:
      operationId: postApiPlannerDraftsIdPause
      summary: POST /api/planner/drafts/{id}/pause
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/repository-info:
    get:
      operationId: getApiPlannerDraftsIdRepositoryInfo
      summary: GET /api/planner/drafts/{id}/repository-info
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/reset-to-setup:
    post:
      operationId: postApiPlannerDraftsIdResetToSetup
      summary: POST /api/planner/drafts/{id}/reset-to-setup
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/resume:
    post:
      operationId: postApiPlannerDraftsIdResume
      summary: POST /api/planner/drafts/{id}/resume
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/revise:
    post:
      operationId: postApiPlannerDraftsIdRevise
      summary: POST /api/planner/drafts/{id}/revise
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/revisions:
    get:
      operationId: getApiPlannerDraftsIdRevisions
      summary: GET /api/planner/drafts/{id}/revisions
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/revisions/{revisionId}:
    get:
      operationId: getApiPlannerDraftsIdRevisionsRevisionId
      summary: GET /api/planner/drafts/{id}/revisions/{revisionId}
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: revisionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/drafts/{id}/revisions/{revisionId}/restore:
    post:
      operationId: postApiPlannerDraftsIdRevisionsRevisionIdRestore
      summary: POST /api/planner/drafts/{id}/revisions/{revisionId}/restore
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: revisionId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/finalize:
    post:
      operationId: postApiPlannerFinalize
      summary: POST /api/planner/finalize
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/generate:
    post:
      operationId: postApiPlannerGenerate
      summary: POST /api/planner/generate
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/preview:
    post:
      operationId: postApiPlannerPreview
      summary: POST /api/planner/preview
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/preview/context:
    post:
      operationId: postApiPlannerPreviewContext
      summary: POST /api/planner/preview/context
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/refine:
    post:
      operationId: postApiPlannerRefine
      summary: POST /api/planner/refine
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/relevance:
    post:
      operationId: postApiPlannerRelevance
      summary: POST /api/planner/relevance
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/planner/validate-context-repository:
    post:
      operationId: postApiPlannerValidateContextRepository
      summary: POST /api/planner/validate-context-repository
      description: This route is registered but not documented yet.
      tags:
        - Planner
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/preview-media/comments/{owner}/{repo}/{number}/{assetId}:
    get:
      operationId: getApiPreviewMediaCommentsOwnerRepoNumberAssetId
      summary: GET /api/preview-media/comments/{owner}/{repo}/{number}/{assetId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
        - name: number
          in: path
          required: true
          schema:
            type: string
        - name: assetId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/preview-media/pulls/{owner}/{repo}/{number}/{assetId}:
    get:
      operationId: getApiPreviewMediaPullsOwnerRepoNumberAssetId
      summary: GET /api/preview-media/pulls/{owner}/{repo}/{number}/{assetId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
        - name: number
          in: path
          required: true
          schema:
            type: string
        - name: assetId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/pull-requests/{number}/scores:
    get:
      operationId: getApiPullRequestsNumberScores
      summary: GET /api/pull-requests/{number}/scores
      description: This route is registered but not documented yet.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: number
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/queue/stats:
    get:
      operationId: getApiQueueStats
      summary: GET /api/queue/stats
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/chat:
    post:
      operationId: postApiReposChat
      summary: POST /api/repos/chat
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/chat/messages:
    get:
      operationId: getApiReposChatMessages
      summary: GET /api/repos/chat/messages
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiReposChatMessages
      summary: POST /api/repos/chat/messages
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiReposChatMessages
      summary: DELETE /api/repos/chat/messages
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/chat/messages/{messageId}:
    delete:
      operationId: deleteApiReposChatMessagesMessageId
      summary: DELETE /api/repos/chat/messages/{messageId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: messageId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/improvements:
    post:
      operationId: postApiReposImprovements
      summary: POST /api/repos/improvements
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/media:
    get:
      operationId: getApiReposMedia
      summary: GET /api/repos/media
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos:
    get:
      operationId: getApiReposTodos
      summary: GET /api/repos/todos
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiReposTodos
      summary: POST /api/repos/todos
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos/categories:
    get:
      operationId: getApiReposTodosCategories
      summary: GET /api/repos/todos/categories
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiReposTodosCategories
      summary: POST /api/repos/todos/categories
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos/categories/reorder:
    post:
      operationId: postApiReposTodosCategoriesReorder
      summary: POST /api/repos/todos/categories/reorder
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos/categories/{categoryId}:
    put:
      operationId: putApiReposTodosCategoriesCategoryId
      summary: PUT /api/repos/todos/categories/{categoryId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: categoryId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiReposTodosCategoriesCategoryId
      summary: DELETE /api/repos/todos/categories/{categoryId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: categoryId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos/reorder:
    post:
      operationId: postApiReposTodosReorder
      summary: POST /api/repos/todos/reorder
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repos/todos/{todoId}:
    get:
      operationId: getApiReposTodosTodoId
      summary: GET /api/repos/todos/{todoId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: todoId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    put:
      operationId: putApiReposTodosTodoId
      summary: PUT /api/repos/todos/{todoId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: todoId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    delete:
      operationId: deleteApiReposTodosTodoId
      summary: DELETE /api/repos/todos/{todoId}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: todoId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/repositories/indexing-status:
    get:
      operationId: getApiRepositoriesIndexingStatus
      summary: GET /api/repositories/indexing-status
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/dashboard:
    get:
      operationId: getApiStatsDashboard
      summary: GET /api/stats/dashboard
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/generating-plans:
    get:
      operationId: getApiStatsGeneratingPlans
      summary: GET /api/stats/generating-plans
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/overview:
    get:
      operationId: getApiStatsOverview
      summary: GET /api/stats/overview
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/repositories:
    get:
      operationId: getApiStatsRepositories
      summary: GET /api/stats/repositories
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/review-scores:
    get:
      operationId: getApiStatsReviewScores
      summary: GET /api/stats/review-scores
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/review-scores.csv:
    get:
      operationId: getApiStatsReviewScoresCsv
      summary: GET /api/stats/review-scores.csv
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/stats/tasks:
    get:
      operationId: getApiStatsTasks
      summary: GET /api/stats/tasks
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/status:
    get:
      operationId: getSystemStatus
      summary: Get the system health snapshot
      description: Redis, queue, worker and agent health, the same snapshot the dashboard header shows.
      tags:
        - System
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: The health snapshot.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/summaries/{owner}/{repo}/status:
    get:
      operationId: getApiSummariesOwnerRepoStatus
      summary: GET /api/summaries/{owner}/{repo}/status
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/summaries/{owner}/{repo}/summary/{path}:
    get:
      operationId: getApiSummariesOwnerRepoSummaryPath
      summary: GET /api/summaries/{owner}/{repo}/summary/{path}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
        - name: path
          in: path
          required: true
          description: Remaining path; may contain `/`.
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/summaries/{owner}/{repo}/tree:
    get:
      operationId: getApiSummariesOwnerRepoTree
      summary: GET /api/summaries/{owner}/{repo}/tree
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/summaries/{owner}/{repo}/tree/{path}:
    get:
      operationId: getApiSummariesOwnerRepoTreePath
      summary: GET /api/summaries/{owner}/{repo}/tree/{path}
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: owner
          in: path
          required: true
          schema:
            type: string
        - name: repo
          in: path
          required: true
          schema:
            type: string
        - name: path
          in: path
          required: true
          description: Remaining path; may contain `/`.
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/task-submissions:
    post:
      operationId: createTaskSubmission
      summary: Submit a task
      description: |-
        Opens a GitHub issue in the repository with the instruction, applies the routing labels and enqueues the implementation run.

        Submissions are idempotent per user and `Idempotency-Key`: repeating a request with the same key and content returns the existing submission and resumes it if it stopped part way. Reusing a key with different content is rejected with `409`.

        Send JSON, or `multipart/form-data` with the JSON in a `payload` field and up to 10 `files` attachments.
      tags:
        - Task submissions
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          description: Client-chosen identity of this submission, for example a UUID.
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TaskSubmissionRequest"
          multipart/form-data:
            schema:
              type: object
              required:
                - payload
              properties:
                payload:
                  type: string
                  description: The `TaskSubmissionRequest` as a JSON string.
                  contentMediaType: application/json
                files:
                  type: array
                  maxItems: 10
                  items:
                    type: string
                    contentMediaType: application/octet-stream
      responses:
        "200":
          description: The issue was created and the run is queued.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskSubmission"
        "202":
          description: The submission is in progress or stopped part way (`failed`); poll or retry it.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskSubmission"
        "400":
          description: Missing key, invalid body, or the repository, agent or model cannot be used.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          description: You lack write access to the repository, or the instance is in demo mode.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The key was already used with different content.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task-submissions/{key}:
    get:
      operationId: getTaskSubmission
      summary: Get a task submission
      tags:
        - Task submissions
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: key
          in: path
          required: true
          description: The `Idempotency-Key` the submission was created with.
          schema:
            type: string
      responses:
        "200":
          description: The submission.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskSubmission"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: No submission of yours has this key.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task-submissions/{key}/retry:
    post:
      operationId: retryTaskSubmission
      summary: Resume a task submission that stopped part way
      tags:
        - Task submissions
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: key
          in: path
          required: true
          description: The `Idempotency-Key` the submission was created with.
          schema:
            type: string
      responses:
        "200":
          description: The resumed submission.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskSubmission"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: No submission of yours has this key.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}:
    delete:
      operationId: deleteTaskLegacyPath
      summary: Delete a task run (legacy path)
      description: |-
        Same as `DELETE /api/tasks/{taskId}`.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      deprecated: true
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
        - name: force
          in: query
          required: false
          description: Delete even when the task is still active.
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "204":
          description: Deleted.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Task not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task belongs to a goal; use the goal controls.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: DeleteTaskQuery
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/assignable-users:
    get:
      operationId: listTaskAssignableUsers
      summary: List users that can be assigned to a task
      description: |-
        The assignable users of the task's repository, at most 300, sorted by login. Cached for 60 seconds per repository.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: The assignable users.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AssignableUsers"
        "400":
          description: The task id is invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Task not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task has no GitHub issue or pull request to assign.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "502":
          description: GitHub could not be reached.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/assignees:
    get:
      operationId: getTaskAssignees
      summary: Get the assignees of a task
      description: |-
        Reads the assignees of the task's GitHub issue or pull request from GitHub and stores them. With `refresh=false` the stored set is returned without calling GitHub. When GitHub cannot be read the stored set is returned with `synced: false`.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
        - name: refresh
          in: query
          required: false
          description: "`false` serves the stored set without calling GitHub."
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "200":
          description: The task's assignees.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskAssignees"
        "400":
          description: The task id is invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Task not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task has no GitHub issue or pull request to assign.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: TaskAssigneesQuery
      x-propr-auth: member
      x-legacy-error: true
    put:
      operationId: setTaskAssignees
      summary: Change the assignees of a task
      description: |-
        Assigns the task's GitHub issue or pull request on GitHub and returns the set GitHub confirmed. Requires write access to the repository on GitHub.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TaskAssigneesUpdate"
      responses:
        "200":
          description: The assignment GitHub confirmed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskAssigneesResult"
        "400":
          description: The body is malformed or names an unknown GitHub login.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "403":
          description: You lack write access to the repository on GitHub.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: Task not found, or the repository is not accessible.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task has no GitHub issue or pull request to assign.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "422":
          description: GitHub rejected the assignment, or did not assign some requested users (listed in `rejected`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "502":
          description: GitHub could not be reached.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/cancel:
    post:
      operationId: cancelTask
      summary: Cancel a task (alias of stop)
      description: "When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead."
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: The task was stopped or was already finished.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task belongs to a goal; use the goal controls.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/docker-info:
    get:
      operationId: getApiTaskTaskIdDockerInfo
      summary: GET /api/task/{taskId}/docker-info
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/task/{taskId}/docker-logs:
    get:
      operationId: getApiTaskTaskIdDockerLogs
      summary: GET /api/task/{taskId}/docker-logs
      description: |-
        This route is registered but not documented yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/task/{taskId}/file-changes:
    get:
      operationId: getTaskFileChanges
      summary: List the files a task changed
      description: "When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead."
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: Changed files with their diffs.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/history:
    get:
      operationId: getTaskHistory
      summary: Get a task with its lifecycle events
      description: |-
        Returns the task details and every recorded state change, oldest first, from the database, falling back to live worker state for runs that have not been persisted yet.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: The task and its events.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskHistory"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/live-details:
    get:
      operationId: getTaskLiveDetails
      summary: Get live agent output of a running task
      description: "When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead."
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: Parsed agent conversation and execution progress.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/task/{taskId}/stop:
    post:
      operationId: stopTask
      summary: Stop a running task
      description: "When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead."
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "200":
          description: The task was stopped or was already finished.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Not found, or the task belongs to another user's goal.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task belongs to a goal; use the goal controls.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/tasks:
    get:
      operationId: listTasks
      summary: List task runs
      description: Newest first. Filter by status, repository or search text, and page with `limit` and `offset`. With `groupBy=task`, paging counts tasks (the pull request or issue a run belongs to) and a page returns every matching run of its tasks.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: status
          in: query
          required: false
          description: "`all` (default), `active`, `waiting`, `attention`, or a worker state."
          schema:
            type: string
        - name: repository
          in: query
          required: false
          description: "`owner/name`, or `all` (default)."
          schema:
            type: string
        - name: search
          in: query
          required: false
          schema:
            type: string
            maxLength: 500
        - name: limit
          in: query
          required: false
          description: Page size; defaults to 50.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            maximum: 1000000
        - name: forReview
          in: query
          required: false
          description: Only runs whose pull request awaits review.
          schema:
            type: string
            enum:
              - "true"
              - "false"
        - name: excludeMerged
          in: query
          required: false
          schema:
            type: string
            enum:
              - "true"
              - "false"
        - name: groupBy
          in: query
          required: false
          description: Page by task instead of by run.
          schema:
            type: string
            const: task
        - name: task
          in: query
          required: false
          description: "With `groupBy=task`: only the task this run belongs to."
          schema:
            type: string
        - name: assignee
          in: query
          required: false
          description: "`all` (default), `me` (the signed-in user), `unassigned`, or comma-separated GitHub logins."
          schema:
            type: string
        - name: syncAssignees
          in: query
          required: false
          description: "With `task`: refresh that run's assignees from GitHub first."
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "200":
          description: A page of task runs.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskPage"
        "400":
          description: A filter or paging parameter is invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: ListTasksQuery
      x-propr-auth: member
      x-legacy-error: true
  /api/tasks/revert:
    post:
      operationId: postApiTasksRevert
      summary: POST /api/tasks/revert
      description: This route is registered but not documented yet.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/tasks/revert-preview:
    get:
      operationId: getApiTasksRevertPreview
      summary: GET /api/tasks/revert-preview
      description: This route is registered but not documented yet.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/tasks/{taskId}:
    delete:
      operationId: deleteTask
      summary: Delete a task run and its history
      description: "When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead."
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
        - name: force
          in: query
          required: false
          description: Delete even when the task is still active.
          schema:
            type: string
            enum:
              - "true"
              - "false"
      responses:
        "204":
          description: Deleted.
        "400":
          description: The task is still active; retry with `force=true`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Task not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: The task belongs to a goal; use the goal controls.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-query-type: DeleteTaskQuery
      x-propr-auth: member
      x-legacy-error: true
  /api/tasks/{taskId}/followup:
    post:
      operationId: postTaskFollowup
      summary: Post a follow-up instruction on a task
      description: |-
        Posts the comment on the task's pull request and queues a follow-up run for it. A failed implementation that has no pull request is retried on its issue instead: the comment is posted there and a new issue run is queued.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TaskFollowupRequest"
      responses:
        "202":
          description: The comment was posted; the outcome distinguishes queued, batched, handled, refused, failed and unknown submissions. An issue retry refuses the comment, without posting it, while it restarts an earlier retry whose start was never confirmed; `restartedRequest` reports that restart.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskFollowupResult"
        "400":
          description: The comment body or target is invalid, or a pull request command was sent for a task without a pull request.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        "404":
          description: Task not found.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: "The issue cannot be retried: the run has not failed, the issue is closed or done, a run is already queued, or an earlier retry may still start."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "502":
          description: The issue's label history could not be read from GitHub, so the retry could not be tied to its trigger and nothing was posted.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "503":
          description: The issue retry could not be recorded, so nothing was posted.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/tasks/{taskId}/review:
    post:
      operationId: postTaskReview
      summary: Request an AI review for a task pull request
      description: |-
        Checks the signed-in user’s repository access and PR assignment, dispatches /review through command handling, and returns the same receipt on repeated requests for the source run.

        When the task, session or correlation id belongs to a goal, only the goal owner can use this route (others get `404`), and only for reads: other methods answer `409` and the goal controls must be used instead.
      tags:
        - Tasks
      security:
        - sessionCookie: []
        - bearerAuth: []
      parameters:
        - name: taskId
          in: path
          required: true
          description: Task (run) identifier, as returned in `TaskSummary.id`.
          schema:
            type: string
      responses:
        "202":
          description: Review submission receipt. Only queued or batched is accepted; unknown requires reconciliation.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TaskReviewResult"
        "400":
          description: Invalid task or missing pull request.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "401":
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "403":
          description: GitHub authorization or PR assignment required.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: Task or repository not accessible.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "409":
          description: Pull request is closed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "503":
          description: Authorization could not be verified.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-legacy-error: true
  /api/usage-tips:
    get:
      operationId: getApiUsageTips
      summary: GET /api/usage-tips
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/usage-tips/dismiss:
    post:
      operationId: postApiUsageTipsDismiss
      summary: POST /api/usage-tips/dismiss
      description: This route is registered but not documented yet.
      tags:
        - Observability
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/user/repo-preferences:
    get:
      operationId: getApiUserRepoPreferences
      summary: GET /api/user/repo-preferences
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postApiUserRepoPreferences
      summary: POST /api/user/repo-preferences
      description: This route is registered but not documented yet.
      tags:
        - Repositories
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/voice/briefing:
    get:
      operationId: getApiVoiceBriefing
      summary: GET /api/voice/briefing
      description: This route is registered but not documented yet.
      tags:
        - Voice
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /api/voice/capabilities:
    get:
      operationId: getApiVoiceCapabilities
      summary: GET /api/voice/capabilities
      description: This route is registered but not documented yet.
      tags:
        - Voice
      security:
        - sessionCookie: []
        - bearerAuth: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        "401":
          $ref: "#/components/responses/LegacyUnauthorized"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: member
      x-undocumented: true
      x-legacy-error: true
  /authorize:
    get:
      operationId: authorizeMcpClient
      summary: Start an MCP OAuth authorization
      description: OAuth 2.1 authorization endpoint with PKCE (`S256`). Takes `response_type=code`, `client_id`, `redirect_uri` (must match a registered URI exactly), `code_challenge`, `code_challenge_method`, and optionally `scope`, `state` and `resource` as query parameters, then redirects the browser to the consent page. Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp).
      tags:
        - MCP
      security: []
      responses:
        "302":
          description: Redirect to the consent page, or to `redirect_uri` with an OAuth error.
        "400":
          description: Unknown client or a `redirect_uri` that is not registered.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
    post:
      operationId: authorizeMcpClientForm
      summary: Start an MCP OAuth authorization (form post)
      description: Same as `GET /authorize`, with the parameters in an `application/x-www-form-urlencoded` body. Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp).
      tags:
        - MCP
      security: []
      responses:
        "302":
          description: Redirect to the consent page, or to `redirect_uri` with an OAuth error.
        "400":
          description: Unknown client or a `redirect_uri` that is not registered.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /health:
    get:
      operationId: getHealth
      summary: Liveness probe
      tags:
        - System
      security: []
      responses:
        "200":
          description: The API process is serving requests.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Health"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /mcp/apps:
    get:
      operationId: getMcpApps
      summary: GET /mcp/apps
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - sessionCookie: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /mcp/apps/revoke:
    post:
      operationId: postMcpAppsRevoke
      summary: POST /mcp/apps/revoke
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - sessionCookie: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /mcp/artifacts/{id}:
    get:
      operationId: getMcpArtifactsId
      summary: GET /mcp/artifacts/{id}
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - sessionCookie: []
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /mcp/consent:
    get:
      operationId: getMcpConsent
      summary: GET /mcp/consent
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - sessionCookie: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
    post:
      operationId: postMcpConsent
      summary: POST /mcp/consent
      description: This route is registered but not documented yet.
      tags:
        - MCP
      security:
        - sessionCookie: []
      responses:
        "200":
          description: Success. The response body is not documented yet.
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: browserSession
      x-undocumented: true
      x-legacy-error: true
  /register:
    post:
      operationId: registerMcpClient
      summary: Register an MCP OAuth client
      description: "RFC 7591 dynamic client registration. Clients register as public clients (`token_endpoint_auth_method: none`). Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp)."
      tags:
        - MCP
      security: []
      requestBody:
        required: true
        description: RFC 7591 client metadata, for example `client_name` and `redirect_uris`.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "201":
          description: The registered client, including its `client_id`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "400":
          description: RFC 7591 error, for example `invalid_client_metadata`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /revoke:
    post:
      operationId: revokeMcpToken
      summary: Revoke an MCP access or refresh token
      description: RFC 7009 revocation. The `application/x-www-form-urlencoded` body carries `token`, optionally `token_type_hint`, and `client_id`. Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp).
      tags:
        - MCP
      security: []
      responses:
        "200":
          description: The token is revoked, or was not valid. The body is `{}`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "400":
          description: RFC 7009 error.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /token:
    post:
      operationId: issueMcpToken
      summary: Exchange an authorization code or refresh token
      description: "OAuth 2.1 token endpoint for public clients (`token_endpoint_auth_method: none`). The `application/x-www-form-urlencoded` body carries `grant_type` (`authorization_code` with `code`, `code_verifier` and `redirect_uri`, or `refresh_token` with `refresh_token`), `client_id` and optionally `resource`. Served by the MCP SDK's OAuth router at the API origin root, and only while MCP is enabled. See the MCP guide (docs/features/mcp)."
      tags:
        - MCP
      security: []
      responses:
        "200":
          description: "RFC 6749 token response: `access_token`, `token_type`, `expires_in`, `scope` and `refresh_token`."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/JsonObject"
        "400":
          description: RFC 6749 error, for example `invalid_grant`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        "404":
          description: MCP is disabled on this instance.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: public
      x-legacy-error: true
  /webhook:
    post:
      operationId: receiveGitHubWebhook
      summary: Receive a GitHub webhook delivery
      description: Registered only when `GITHUB_EVENT_INTAKE_MODE=direct_webhook`. Deliveries must be signed with `GH_WEBHOOK_SECRET`.
      tags:
        - Webhooks
      security:
        - webhookSignature: []
      parameters:
        - name: X-GitHub-Event
          in: header
          required: true
          description: GitHub event name.
          schema:
            type: string
        - name: X-GitHub-Delivery
          in: header
          required: true
          description: GitHub delivery identifier.
          schema:
            type: string
      requestBody:
        required: true
        description: The GitHub event payload.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/JsonObject"
      responses:
        "200":
          description: Accepted.
          content:
            text/plain:
              schema:
                type: string
        "401":
          description: Missing or invalid signature.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LegacyError"
        default:
          $ref: "#/components/responses/LegacyUnexpectedError"
      x-propr-auth: webhook
      x-legacy-error: true
components:
  schemas:
    AssignableUsers:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: "#/components/schemas/AttributedUser"
        truncated:
          type: boolean
          description: True when the repository has more assignable users than were listed.
      required:
        - users
        - truncated
      additionalProperties: false
      description: Users that can be assigned to issues and pull requests of a repository.
    AttributedUser:
      type: object
      properties:
        id:
          type: string
          description: Stable GitHub numeric user id.
        login:
          type: string
        displayName:
          type:
            - string
            - "null"
        avatarUrl:
          type:
            - string
            - "null"
      required:
        - id
        - login
        - displayName
        - avatarUrl
      additionalProperties: false
      description: A GitHub user work is assigned or attributed to.
    AuthenticatedUser:
      type: object
      properties:
        id:
          type: string
        login:
          type: string
        username:
          type: string
        displayName:
          type:
            - string
            - "null"
        email:
          type:
            - string
            - "null"
        avatarUrl:
          type:
            - string
            - "null"
        role:
          type: string
          enum:
            - admin
            - member
        permissions:
          type: array
          items:
            type: string
            enum:
              - instance.manage_agents
              - instance.manage_members
              - instance.manage_runtime
              - instance.manage_settings
        authorizationSource:
          type: string
          enum:
            - bootstrap
            - local
            - managed
            - implicit
            - demo
      required:
        - id
        - login
        - username
        - role
        - permissions
        - authorizationSource
      additionalProperties: false
      description: The signed-in GitHub user and their instance role.
    Compatibility:
      type: object
      properties:
        version:
          type: string
          description: ProPR release version of the API server.
        apiCompatibility:
          type: string
          description: API compatibility date clients negotiate against.
        uiCompatibility:
          type: string
          description: Oldest web UI compatibility date the API accepts.
        desktopAuthentication:
          $ref: "#/components/schemas/DesktopAuthenticationCapabilities"
      required:
        - version
        - apiCompatibility
        - uiCompatibility
        - desktopAuthentication
      additionalProperties: false
      description: Version and capability metadata used for client compatibility negotiation.
    DemoModeStatus:
      type: object
      properties:
        demoMode:
          type: boolean
      required:
        - demoMode
      additionalProperties: false
    DesktopAuthenticationCapabilities:
      type: object
      properties:
        protocolVersion:
          type: number
          const: 2
        browserPairing:
          type: boolean
        instanceBearerTokens:
          type: boolean
        socketIoBearerAuthentication:
          type: boolean
      required:
        - protocolVersion
        - browserPairing
        - instanceBearerTokens
        - socketIoBearerAuthentication
      additionalProperties: false
    DesktopDiscovery:
      type: object
      properties:
        schemaVersion:
          type: integer
        product:
          type: string
          const: ProPR
        canonicalEndpoint:
          type:
            - string
            - "null"
        publicInstanceIdentity:
          anyOf:
            - type: object
              properties: {}
              additionalProperties: {}
            - type: "null"
        version:
          type: string
        apiCompatibility:
          type: string
        uiCompatibility:
          type: string
        desktopAuthentication:
          $ref: "#/components/schemas/DesktopAuthenticationCapabilities"
      required:
        - schemaVersion
        - product
        - canonicalEndpoint
        - publicInstanceIdentity
        - version
        - apiCompatibility
        - uiCompatibility
        - desktopAuthentication
      additionalProperties: {}
      description: Public, credential-free discovery metadata for desktop and CLI pairing.
    DesktopPairingActivationReceipt:
      type: object
      properties:
        status:
          type: string
          const: active
        receipt:
          type: string
          pattern: ^[A-Za-z0-9_-]{22}$
        activatedAt:
          type: string
          format: date-time
        expiresAt:
          anyOf:
            - type: string
              format: date-time
            - type: "null"
          description: When the instance token expires; `null` when it does not.
      required:
        - status
        - receipt
        - activatedAt
        - expiresAt
      additionalProperties: false
      description: The instance token is active.
    DesktopPairingCancellation:
      type: object
      properties:
        status:
          type: string
          const: cancelled
        cancelledAt:
          type: string
          format: date-time
      required:
        - status
        - cancelledAt
      additionalProperties: false
      description: The provisional instance token was revoked.
    DesktopPairingPending:
      type: object
      properties:
        status:
          type: string
          const: pending
        interval:
          type: integer
          minimum: 1
          maximum: 60
          description: Seconds to wait before the next poll.
      required:
        - status
        - interval
      additionalProperties: false
      description: The pairing is not approved yet (HTTP 202).
    DesktopPairingPoll:
      anyOf:
        - $ref: "#/components/schemas/DesktopPairingPending"
        - $ref: "#/components/schemas/DesktopPairingProvisional"
      description: State of a pairing, by `status`.
    DesktopPairingPollRequest:
      type: object
      properties:
        deviceSecret:
          type: string
          pattern: ^[A-Za-z0-9_-]{43}$
      required:
        - deviceSecret
      additionalProperties: false
    DesktopPairingProvisional:
      type: object
      properties:
        status:
          type: string
          const: provisional
        token:
          type: string
          pattern: ^propr_it_[A-Za-z0-9_-]{43}$
          description: Instance token. It works only after the pairing is activated.
        tokenType:
          type: string
          const: Bearer
        activationTicket:
          type: string
          pattern: ^[A-Za-z0-9_-]{43}$
        activationExpiresAt:
          type: string
          format: date-time
          description: Activate or cancel before this time.
        instanceId:
          type: string
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$
          description: "`publicInstanceIdentity.instanceId` from discovery."
        origin:
          type: string
          description: Canonical API origin the client discovered, for example `https://propr.example.com`.
        scope:
          type: string
          const: desktop-instance
        credentialGeneration:
          type: string
          pattern: ^[A-Za-z0-9_-]{22}$
          description: Client-chosen generation that identifies this credential.
      required:
        - status
        - token
        - tokenType
        - activationTicket
        - activationExpiresAt
        - instanceId
        - origin
        - scope
        - credentialGeneration
      additionalProperties: false
      description: The pairing was approved and a provisional instance token was issued (HTTP 200).
    DesktopPairingStart:
      type: object
      properties:
        pairingId:
          type: string
          pattern: ^dpr_[A-Za-z0-9_-]{22}$
        deviceSecret:
          type: string
          pattern: ^[A-Za-z0-9_-]{43}$
          description: Secret the client presents on every later pairing request. Never shown to the browser.
        approvalUrl:
          type: string
          description: Same-origin URL the user opens to approve the pairing.
        expiresAt:
          type: string
          format: date-time
          description: The pairing expires at this time, at most 30 minutes after it started.
        interval:
          type: integer
          minimum: 1
          maximum: 60
          description: Seconds to wait between polls.
      required:
        - pairingId
        - deviceSecret
        - approvalUrl
        - expiresAt
        - interval
      additionalProperties: false
      description: A started pairing.
    DesktopPairingStartRequest:
      type: object
      properties:
        clientName:
          type: string
          minLength: 1
          maxLength: 80
          description: Shown on the approval page; 1 to 80 printable characters.
        instanceId:
          type: string
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$
          description: "`publicInstanceIdentity.instanceId` from discovery."
        origin:
          type: string
          description: Canonical API origin the client discovered, for example `https://propr.example.com`.
        scope:
          type: string
          const: desktop-instance
        credentialGeneration:
          type: string
          pattern: ^[A-Za-z0-9_-]{22}$
          description: Client-chosen generation that identifies this credential.
      required:
        - clientName
        - instanceId
        - origin
        - scope
        - credentialGeneration
      additionalProperties: false
      description: Starts a pairing for the instance named by the binding fields.
    DesktopPairingTicket:
      type: object
      properties:
        deviceSecret:
          type: string
          pattern: ^[A-Za-z0-9_-]{43}$
        activationTicket:
          type: string
          pattern: ^[A-Za-z0-9_-]{43}$
          description: "`activationTicket` from the provisional poll response."
        instanceId:
          type: string
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$
          description: "`publicInstanceIdentity.instanceId` from discovery."
        origin:
          type: string
          description: Canonical API origin the client discovered, for example `https://propr.example.com`.
        scope:
          type: string
          const: desktop-instance
        credentialGeneration:
          type: string
          pattern: ^[A-Za-z0-9_-]{22}$
          description: Client-chosen generation that identifies this credential.
      required:
        - deviceSecret
        - activationTicket
        - instanceId
        - origin
        - scope
        - credentialGeneration
      additionalProperties: false
      description: Proof of a provisional pairing, used to activate or cancel it.
    ErrorEnvelope:
      type: object
      properties:
        code:
          type: string
          description: Stable, machine-readable error code, for example `TASK_NOT_FOUND`.
        message:
          type: string
          description: Human-readable explanation that is safe to show to an operator.
        hint:
          description: Optional next step that resolves the error.
          type: string
      required:
        - code
        - message
      additionalProperties: false
      description: The common error envelope. New routes return it for every 4xx and 5xx response.
    ExtensionProfileInput:
      type: object
      properties:
        version:
          type: number
          const: 1
        name:
          type: string
          minLength: 1
          maxLength: 100
        enabled:
          type: boolean
        agentScope:
          maxItems: 64
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,100}$
        repositoryScope:
          maxItems: 64
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$
        mcpServers:
          maxItems: 8
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  kind:
                    type: string
                    const: https
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9_-]{0,47}$
                  url:
                    type: string
                    maxLength: 2048
                  enabled:
                    type: boolean
                  tools:
                    maxItems: 64
                    type: array
                    items:
                      type: string
                      pattern: ^[A-Za-z0-9_.-]{1,128}$
                  capability:
                    type: string
                    enum:
                      - read
                      - write
                  authentication:
                    type: string
                    enum:
                      - none
                      - bearer
                required:
                  - kind
                  - name
                  - url
                  - enabled
                  - tools
                  - capability
                  - authentication
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    const: catalog
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9_-]{0,47}$
                  catalogId:
                    type: string
                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                  digest:
                    type: string
                    pattern: ^[0-9a-f]{64}$
                  enabled:
                    type: boolean
                  tools:
                    maxItems: 64
                    type: array
                    items:
                      type: string
                      pattern: ^[A-Za-z0-9_.-]{1,128}$
                  capability:
                    type: string
                    enum:
                      - read
                      - write
                required:
                  - kind
                  - name
                  - catalogId
                  - digest
                  - enabled
                  - tools
                  - capability
                additionalProperties: false
        skillBundleIds:
          maxItems: 8
          type: array
          items:
            type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - version
        - name
        - enabled
        - agentScope
        - repositoryScope
        - mcpServers
        - skillBundleIds
      additionalProperties: false
      description: Strict shared v1 contract. Operator catalog descriptors accept only immutable catalogId/digest and selected tools/capability; customer commands, arguments, environment and mount paths are rejected.
    ExtensionProfileSave:
      type: object
      properties:
        input:
          $ref: "#/components/schemas/ExtensionProfileInput"
        expected:
          $ref: "#/components/schemas/ExtensionSelection"
        secrets:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type:
              - string
              - "null"
      required:
        - input
      additionalProperties: false
    ExtensionSelection:
      type: object
      properties:
        instanceId:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        profileId:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        revision:
          type: integer
          exclusiveMinimum: 0
      required:
        - instanceId
        - profileId
        - revision
      additionalProperties: false
    FollowupHandoffDetail:
      type: object
      properties:
        status:
          $ref: "#/components/schemas/FollowupHandoffStatus"
      required:
        - status
      additionalProperties: false
    FollowupHandoffList:
      type: object
      properties:
        handoffs:
          type: array
          items:
            $ref: "#/components/schemas/FollowupHandoffStatus"
      required:
        - handoffs
      additionalProperties: false
    FollowupHandoffRecoverySummary:
      type: object
      properties:
        inspected:
          type: integer
          minimum: 0
        published:
          type: integer
          minimum: 0
          description: Interrupted work recovered and published exactly once.
        noChanges:
          type: integer
          minimum: 0
          description: Interrupted runs that produced nothing; their requests were returned to the queue (settlement `returned_to_queue`).
        settled:
          type: integer
          minimum: 0
          description: Runs whose no-change completion, failure or usage-limit retry the normal path had already delivered or scheduled; recorded without republishing or requeueing.
        cleanupPending:
          type: integer
          minimum: 0
          description: Publication settled but branch release still owed; retried on the next pass.
        skippedLiveAgent:
          type: integer
          minimum: 0
        failedClosed:
          type: integer
          minimum: 0
          description: Records whose container evidence was unavailable or ambiguous; left untouched.
        awaitingOperator:
          type: integer
          minimum: 0
        lockedByOtherWriter:
          type: integer
          minimum: 0
        errors:
          type: integer
          minimum: 0
          description: Records whose recovery failed (for example unreachable remote evidence); retained for the next pass.
      required:
        - inspected
        - published
        - noChanges
        - settled
        - cleanupPending
        - skippedLiveAgent
        - failedClosed
        - awaitingOperator
        - lockedByOtherWriter
        - errors
      additionalProperties: false
      description: Counts of one recovery pass. Keyed passes inspect at most the addressed pull request.
    FollowupHandoffReleaseRequest:
      type: object
      properties:
        force:
          description: Also release a branch whose retained worktree still holds unpublished work. Never deletes worktree files, and never overrides a live or unverifiable agent.
          type: boolean
      additionalProperties: false
    FollowupHandoffReleaseResult:
      type: object
      properties:
        released:
          type: boolean
        reason:
          description: Refusal code when `released` is false, for example `agent_still_running`, `liveness_unavailable`, `lease_held_by_live_writer`, `worktree_holds_unpublished_work`, `branch_still_registered` (a Git worktree registration still holds the branch, even after a forced detach), `worktree_registrations_unavailable` or `cancelled_claims_withdrawal_failed` (the claimed comments of a cancelled request could not be withdrawn from the pending list, so releasing could let them run).
          type: string
      required:
        - released
      additionalProperties: false
      description: "Outcome of a release request; refusals answer `409` with `released: false`."
    FollowupHandoffResumeRequest:
      type: object
      properties:
        authorizeCancelled:
          description: Set `true` to explicitly authorize publishing work the user cancelled. Without it, resume re-arms the operator-held record and refuses cancelled work with code `requires_cancellation_authorization`.
          type: boolean
      additionalProperties: false
    FollowupHandoffResumeResult:
      type: object
      properties:
        summary:
          $ref: "#/components/schemas/FollowupHandoffRecoverySummary"
        status:
          anyOf:
            - $ref: "#/components/schemas/FollowupHandoffStatus"
            - type: "null"
          description: State after the keyed recovery pass; `null` once the handoff retired completely.
      required:
        - summary
        - status
      additionalProperties: false
    FollowupHandoffStatus:
      type: object
      properties:
        repository:
          type: string
          description: Lowercase `owner/repo` of the pull request the handoff belongs to.
        pullRequest:
          type: integer
          exclusiveMinimum: 0
        taskId:
          type: string
          description: Task whose interrupted follow-up publication the handoff records.
        predecessorTaskIds:
          type: array
          items:
            type: string
          description: Source task lineage recorded when the agent launched.
        successorTaskId:
          description: Task that adopted the handoff during recovery, when any.
          type:
            - string
            - "null"
        phase:
          type: string
          enum:
            - agent_running
            - agent_exited
            - committed
            - pushed
            - comment_published
            - cleanup_pending
          description: Exact publication step recovery resumes from. `cleanup_pending` means everything is published and only branch release is owed.
        status:
          type: string
          enum:
            - active
            - awaiting_operator
            - released
          description: "`active` records are recovered automatically; `awaiting_operator` records never publish without an explicit operator decision."
        statusReason:
          description: Why the handoff is held or failed closed, for example `cancelled_by_user`, `worktree_missing`, `head_advanced_externally`, `usage_limit_retry_unconfirmed`, `liveness_unavailable`. A mutable diagnostic; see `settlement` for the durable outcome.
          type:
            - string
            - "null"
        settlement:
          anyOf:
            - type: string
              enum:
                - returned_to_queue
                - usage_limit_retry_scheduling
                - usage_limit_retry_scheduled
            - type: "null"
          description: "Durable owner of the claimed comments once the attempt settles without publishing: `returned_to_queue` (recovery returned them to the pending list), `usage_limit_retry_scheduled` (a scheduled usage-limit retry job owns them; recovery never requeues them) or `usage_limit_retry_scheduling` (the worker stopped around the queue add; held for an operator as `usage_limit_retry_unconfirmed`). Unlike `statusReason`, later diagnostics never overwrite it, so the `noChanges`/`settled` counters stay correct."
        operatorAuthorized:
          type: boolean
          description: Whether an operator explicitly authorized publishing user-cancelled work.
        liveness:
          type: string
          description: Agent container liveness evidence, for example `running`, `stopped`, `not_found` or `unavailable` (recovery fails closed on the latter).
        branchName:
          type: string
          description: PR head branch still attached to the retained worktree until cleanup releases it.
        commitHash:
          description: Commit recovery is bound to publish, once recorded.
          type:
            - string
            - "null"
        completionCommentUrl:
          description: Delivered completion comment; recovery never overwrites it.
          type:
            - string
            - "null"
        nextAction:
          type: string
          description: Operator guidance for the current state.
        retainedWorktreePath:
          type: string
          description: Host path of the retained worktree. Deliberately admin-only; never shown on member routes.
        updatedAt:
          type: number
          description: Unix milliseconds of the last durable update.
      required:
        - repository
        - pullRequest
        - taskId
        - predecessorTaskIds
        - successorTaskId
        - phase
        - status
        - statusReason
        - settlement
        - operatorAuthorized
        - liveness
        - branchName
        - commitHash
        - completionCommentUrl
        - nextAction
        - retainedWorktreePath
        - updatedAt
      additionalProperties: false
      description: Operator-facing status of one durable follow-up publication handoff.
    Health:
      type: object
      properties:
        status:
          type: string
          const: ok
      required:
        - status
      additionalProperties: false
      description: Liveness probe result.
    InstanceDatabaseExport:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        generation:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        operationId:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        state:
          type: string
          enum:
            - running
            - ready
            - failed
            - redeemed
        expiresAt:
          type: string
          format: date-time
        scope:
          type: string
          const: customer_database
        sizeBytes:
          type: number
          minimum: 0
        sha256:
          type: string
        schemaVersion:
          type: integer
        migration:
          type:
            - string
            - "null"
      required:
        - version
        - instanceId
        - generation
        - operationId
        - state
        - expiresAt
        - scope
      additionalProperties: false
    InstanceDatabaseExportRequest:
      type: object
      properties:
        instanceId:
          type: string
        generation:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - instanceId
        - generation
      additionalProperties: false
    InstanceRepositoryInventory:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        state:
          type: string
          enum:
            - complete
            - partial
            - unknown
            - unsupported
        observedAt:
          type: string
          format: date-time
        lastUseAt:
          anyOf:
            - type: string
              format: date-time
            - type: "null"
        repositories:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              category:
                type: string
                enum:
                  - database_config
                  - repository_caches
                  - worktrees
                  - salvage
                  - logs_artifacts
                  - provider_credentials
                  - task_history
              estimatedBytes:
                anyOf:
                  - type: number
                    minimum: 0
                  - type: "null"
              protectedReasons:
                type: array
                items:
                  type: string
                  enum:
                    - partial_generated_cleanup
                    - busy
                    - unknown_use
                    - recent_use
                    - unknown_ownership
                    - unsafe_path
                    - private_work
                    - worktrees
                    - local_history
                    - salvage
                    - remote_unavailable
                    - unknown_git_state
                    - changed
                    - unsupported
            required:
              - id
              - name
              - category
              - estimatedBytes
              - protectedReasons
            additionalProperties: false
      required:
        - version
        - instanceId
        - state
        - observedAt
        - lastUseAt
        - repositories
      additionalProperties: false
    InstanceStorageCapabilities:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        generation:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        features:
          type: array
          items:
            type: string
            enum:
              - repository_inventory
              - repository_cleanup
              - database_export
      required:
        - version
        - instanceId
        - generation
        - features
      additionalProperties: false
    InstanceStorageExecuteRequest:
      type: object
      properties:
        instanceId:
          type: string
        confirmation:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - instanceId
        - confirmation
      additionalProperties: false
    InstanceStoragePolicy:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        policy:
          type: object
          properties:
            enabled:
              type: boolean
            idleHours:
              type: integer
              minimum: 1
              maximum: 8760
          required:
            - enabled
            - idleHours
          additionalProperties: false
      required:
        - version
        - instanceId
        - policy
      additionalProperties: false
    InstanceStoragePolicyRequest:
      type: object
      properties:
        enabled:
          type: boolean
        idleHours:
          type: integer
          minimum: 1
          maximum: 8760
        instanceId:
          type: string
      required:
        - enabled
        - idleHours
        - instanceId
      additionalProperties: false
    InstanceStoragePreview:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        confirmation:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        expiresAt:
          type: string
          format: date-time
        categories:
          type: array
          items:
            type: string
            enum:
              - database_config
              - repository_caches
              - worktrees
              - salvage
              - logs_artifacts
              - provider_credentials
              - task_history
        impact:
          type: string
        candidates:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              category:
                type: string
                enum:
                  - database_config
                  - repository_caches
                  - worktrees
                  - salvage
                  - logs_artifacts
                  - provider_credentials
                  - task_history
              estimatedBytes:
                anyOf:
                  - type: number
                    minimum: 0
                  - type: "null"
              protectedReasons:
                type: array
                items:
                  type: string
                  enum:
                    - partial_generated_cleanup
                    - busy
                    - unknown_use
                    - recent_use
                    - unknown_ownership
                    - unsafe_path
                    - private_work
                    - worktrees
                    - local_history
                    - salvage
                    - remote_unavailable
                    - unknown_git_state
                    - changed
                    - unsupported
            required:
              - id
              - category
              - estimatedBytes
              - protectedReasons
            additionalProperties: false
      required:
        - version
        - instanceId
        - confirmation
        - expiresAt
        - categories
        - impact
        - candidates
      additionalProperties: false
    InstanceStoragePreviewRequest:
      type: object
      properties:
        instanceId:
          type: string
        categories:
          minItems: 1
          maxItems: 7
          type: array
          items:
            type: string
            enum:
              - database_config
              - repository_caches
              - worktrees
              - salvage
              - logs_artifacts
              - provider_credentials
              - task_history
        taskIds:
          maxItems: 10
          type: array
          items:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,255}$
      required:
        - instanceId
        - categories
      additionalProperties: false
    InstanceStorageResult:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        operationId:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        state:
          type: string
          enum:
            - completed
            - interrupted
        deleted:
          type: array
          items:
            type: string
        retained:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              reasons:
                type: array
                items:
                  type: string
                  enum:
                    - partial_generated_cleanup
                    - busy
                    - unknown_use
                    - recent_use
                    - unknown_ownership
                    - unsafe_path
                    - private_work
                    - worktrees
                    - local_history
                    - salvage
                    - remote_unavailable
                    - unknown_git_state
                    - changed
                    - unsupported
            required:
              - id
              - reasons
            additionalProperties: false
      required:
        - version
        - instanceId
        - operationId
        - state
        - deleted
        - retained
      additionalProperties: false
    InstanceStorageUsage:
      type: object
      properties:
        version:
          type: number
          const: 1
        instanceId:
          type: string
        observedAt:
          anyOf:
            - type: string
              format: date-time
            - type: "null"
        state:
          type: string
          enum:
            - complete
            - partial
            - unknown
            - unsupported
        scanning:
          type: boolean
        ownedBytes:
          anyOf:
            - type: number
              minimum: 0
            - type: "null"
        generatedPayloads:
          description: Last bounded generated-payload proof, protected reasons and durable result. Observations may be stale or partial; unregistered worktrees remain protected.
          type: object
          properties:
            observedAt:
              anyOf:
                - type: string
                  format: date-time
                - type: "null"
            reclaimableBytes:
              anyOf:
                - type: number
                  minimum: 0
                - type: "null"
            coverage:
              type: string
            candidates:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  category:
                    type: string
                    enum:
                      - database_config
                      - repository_caches
                      - worktrees
                      - salvage
                      - logs_artifacts
                      - provider_credentials
                      - task_history
                  estimatedBytes:
                    anyOf:
                      - type: number
                        minimum: 0
                      - type: "null"
                  protectedReasons:
                    type: array
                    items:
                      type: string
                      enum:
                        - partial_generated_cleanup
                        - busy
                        - unknown_use
                        - recent_use
                        - unknown_ownership
                        - unsafe_path
                        - private_work
                        - worktrees
                        - local_history
                        - salvage
                        - remote_unavailable
                        - unknown_git_state
                        - changed
                        - unsupported
                required:
                  - id
                  - category
                  - estimatedBytes
                  - protectedReasons
                additionalProperties: false
            lastCleanup:
              anyOf:
                - type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                - type: "null"
          required:
            - observedAt
            - reclaimableBytes
            - coverage
            - lastCleanup
          additionalProperties: false
        categories:
          type: array
          items:
            type: object
            properties:
              category:
                type: string
                enum:
                  - database_config
                  - repository_caches
                  - worktrees
                  - salvage
                  - logs_artifacts
                  - provider_credentials
                  - task_history
              bytes:
                anyOf:
                  - type: number
                    minimum: 0
                  - type: "null"
              state:
                type: string
                enum:
                  - complete
                  - partial
                  - unknown
                  - unsupported
            required:
              - category
              - bytes
              - state
            additionalProperties: false
        filesystems:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              totalBytes:
                type: number
                minimum: 0
              availableBytes:
                type: number
                minimum: 0
            required:
              - id
              - totalBytes
              - availableBytes
            additionalProperties: false
      required:
        - version
        - instanceId
        - observedAt
        - state
        - scanning
        - ownedBytes
        - categories
        - filesystems
      additionalProperties: false
    JsonObject:
      type: object
      properties: {}
      additionalProperties: {}
      description: A JSON object whose fields are not documented yet.
    LegacyError:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          description: Machine-readable code, present on authentication and some validation errors.
          type: string
        message:
          description: Longer explanation, present on some authentication errors.
          type: string
      required:
        - error
      additionalProperties: {}
      description: "The ad-hoc error shape most existing routes return. Operations that use it carry `x-legacy-error: true`."
    NotificationUnreadCount:
      type: object
      properties:
        unreadCount:
          type: integer
          minimum: 0
      required:
        - unreadCount
      additionalProperties: false
    TaskAssignees:
      type: object
      properties:
        subject:
          $ref: "#/components/schemas/TaskSubject"
        assignees:
          type: array
          items:
            $ref: "#/components/schemas/AttributedUser"
        synced:
          type: boolean
          description: True when `assignees` was just read from GitHub; false when it is the stored set.
      required:
        - subject
        - assignees
        - synced
      additionalProperties: false
      description: The assignees of a task's GitHub issue or pull request.
    TaskAssigneesResult:
      type: object
      properties:
        subject:
          $ref: "#/components/schemas/TaskSubject"
        assignees:
          type: array
          items:
            $ref: "#/components/schemas/AttributedUser"
          description: The assignees GitHub confirmed.
        rejected:
          type: array
          items:
            $ref: "#/components/schemas/AttributedUser"
          description: Requested users GitHub did not assign; empty on success.
      required:
        - subject
        - assignees
        - rejected
      additionalProperties: false
      description: The assignment GitHub confirmed after a change.
    TaskAssigneesUpdate:
      type: object
      properties:
        logins:
          maxItems: 10
          type: array
          items:
            type: string
          description: GitHub logins to assign. With `replace`, an empty list clears the assignment.
        mode:
          description: "`replace` (default) makes `logins` the whole set; `add` keeps current assignees."
          type: string
          enum:
            - add
            - replace
      required:
        - logins
      additionalProperties: false
      description: A change to a task's assignees.
    TaskEvent:
      type: object
      properties:
        state:
          type: string
          description: Lifecycle state entered at this point.
        timestamp:
          type: string
          description: When the state was entered (ISO 8601).
        reason:
          type:
            - string
            - "null"
        message:
          type: string
        metadata:
          anyOf:
            - type: object
              properties: {}
              additionalProperties: {}
            - type: "null"
      required:
        - state
        - timestamp
      additionalProperties: {}
      description: One entry of a task's lifecycle history.
    TaskFollowupRequest:
      type: object
      properties:
        body:
          type: string
          minLength: 1
          maxLength: 65536
          description: Comment text posted on the task's pull request or issue.
        target:
          description: Force the comment onto the pull request.
          type: string
          const: pull_request
      required:
        - body
      additionalProperties: false
    TaskFollowupResult:
      type: object
      properties:
        success:
          type: boolean
        state:
          type: string
          enum:
            - queued
            - batched
            - handled
            - refused
            - failed
            - unknown
        posted:
          type: boolean
        commentId:
          type: integer
        jobId:
          type: string
        sourceTaskId:
          type: string
        intent:
          description: Present when a failed implementation without a pull request was retried on its issue.
          type: string
          const: issue
        issueNumber:
          description: The issue a retry was queued on.
          type: integer
        restartedRequest:
          description: Present when, instead of posting this follow-up, an earlier issue retry whose start was never confirmed was restarted for its own requester.
          type: object
          properties:
            state:
              type: string
              enum:
                - queued
                - failed
                - unknown
            commentId:
              type: integer
              description: The earlier request's comment, whose instructions the restarted run carries.
          required:
            - state
            - commentId
          additionalProperties: false
        message:
          description: Explains a refusal, failure, or uncertain submission.
          type: string
      required:
        - success
        - state
        - posted
        - commentId
        - sourceTaskId
      additionalProperties: false
      description: "Result of posting a follow-up comment. `state: unknown` means inspect the job before retrying."
    TaskHistory:
      type: object
      properties:
        taskId:
          type: string
        history:
          type: array
          items:
            $ref: "#/components/schemas/TaskEvent"
          description: Lifecycle events, oldest first.
        taskInfo:
          anyOf:
            - type: object
              properties: {}
              additionalProperties: {}
            - type: "null"
          description: Repository, issue, pull request and agent details of the task.
        budget:
          description: Spend so far against the task's cost cap, when a cap applies.
          type: object
          properties: {}
          additionalProperties: {}
      required:
        - taskId
        - history
        - taskInfo
      additionalProperties: {}
      description: A task together with its lifecycle events.
    TaskPage:
      type: object
      properties:
        tasks:
          type: array
          items:
            $ref: "#/components/schemas/TaskSummary"
        total:
          type: integer
          description: Matching runs, or matching tasks with `groupBy=task`.
        offset:
          type: integer
        limit:
          type: integer
        totalRuns:
          description: "With `groupBy=task`: matching runs across all tasks."
          type: integer
      required:
        - tasks
        - total
        - offset
        - limit
      additionalProperties: false
      description: A page of task runs.
    TaskReviewResult:
      type: object
      properties:
        success:
          type: boolean
        state:
          type: string
          enum:
            - queued
            - batched
            - handled
            - refused
            - failed
            - unknown
        posted:
          type: boolean
        commentId:
          type: integer
        jobId:
          type: string
        sourceTaskId:
          type: string
        intent:
          description: Present when a failed implementation without a pull request was retried on its issue.
          type: string
          const: issue
        issueNumber:
          description: The issue a retry was queued on.
          type: integer
        restartedRequest:
          description: Present when, instead of posting this follow-up, an earlier issue retry whose start was never confirmed was restarted for its own requester.
          type: object
          properties:
            state:
              type: string
              enum:
                - queued
                - failed
                - unknown
            commentId:
              type: integer
              description: The earlier request's comment, whose instructions the restarted run carries.
          required:
            - state
            - commentId
          additionalProperties: false
        message:
          description: Explains a refusal, failure, or uncertain submission.
          type: string
        commandMode:
          type: string
          const: review
      required:
        - success
        - state
        - sourceTaskId
        - commandMode
      additionalProperties: false
      description: Idempotent review receipt. Only queued or batched confirms acceptance; unknown requires inspection.
    TaskSubject:
      type: object
      properties:
        owner:
          type: string
        repo:
          type: string
        number:
          type: integer
          description: Issue or pull request number.
        kind:
          type: string
          enum:
            - issue
            - pull_request
      required:
        - owner
        - repo
        - number
        - kind
      additionalProperties: false
      description: The GitHub issue or pull request a task is assigned through.
    TaskSubmission:
      type: object
      properties:
        id:
          type: string
        state:
          type: string
          enum:
            - prepared
            - creating
            - issue_created
            - queued
            - failed
        issueNumber:
          anyOf:
            - type: integer
            - type: "null"
        issueUrl:
          type:
            - string
            - "null"
        taskId:
          type:
            - string
            - "null"
        error:
          type:
            - string
            - "null"
      required:
        - id
        - state
        - issueNumber
        - issueUrl
        - taskId
        - error
      additionalProperties: false
      description: Progress of a task submission. `queued` means the run was enqueued.
    TaskSubmissionRequest:
      type: object
      properties:
        extensionProfile:
          anyOf:
            - $ref: "#/components/schemas/ExtensionSelection"
            - type: "null"
        extensionAllowWrite:
          description: Explicit write grant for this exact authenticated coding submission and initial run; omitted is false. Requires an extension selection. Never inherited by label retries.
          type: boolean
        repository:
          type: string
          pattern: ^[\w.-]+\/[\w.-]+$
          description: "`owner/name` of an enabled repository you can push to."
        instruction:
          type: string
          minLength: 1
          maxLength: 50000
          pattern: \S
          description: What the agent should do; becomes the GitHub issue body. Must not be only whitespace.
        agentAlias:
          description: Agent to route to. Omit to use the instance default.
          type: string
        model:
          description: Model of the agent. Omit to use the agent default.
          type: string
        todoIds:
          description: Repository to-dos this submission resolves.
          type: array
          items:
            type: string
        autoMerge:
          type: boolean
        runUltrafix:
          type: boolean
        ultrafixGoal:
          description: "Requires `runUltrafix: true`."
          type: integer
          minimum: 1
          maximum: 10
        ultrafixMaxCycles:
          description: "Requires `runUltrafix: true`."
          type: integer
          minimum: 1
          maximum: 10
        maxCostUsd:
          description: Per-task spend cap in USD; 0 or omitted uses the repository or instance cap.
          type: number
          minimum: 0
          maximum: 100000
      required:
        - repository
        - instruction
      additionalProperties: false
      dependentSchemas:
        ultrafixGoal:
          required:
            - runUltrafix
          properties:
            runUltrafix:
              const: true
        ultrafixMaxCycles:
          required:
            - runUltrafix
          properties:
            runUltrafix:
              const: true
      description: A request to open a GitHub issue and start an implementation run for it.
    TaskSummary:
      type: object
      properties:
        id:
          type: string
          description: Task (run) identifier.
        issueId:
          type: string
          description: Same value as `id`; kept for older clients.
        repository:
          type: string
          description: "`owner/name` of the repository."
        repositoryOwner:
          type:
            - string
            - "null"
        repositoryName:
          type:
            - string
            - "null"
        issueNumber:
          anyOf:
            - type: integer
            - type: "null"
        prNumber:
          anyOf:
            - type: integer
            - type: "null"
        linkedIssueNumber:
          anyOf:
            - type: integer
            - type: "null"
        title:
          type:
            - string
            - "null"
        subtitle:
          type:
            - string
            - "null"
        status:
          type: string
          description: Worker lifecycle state, for example `processing`, `completed` or `failed`.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        completedAt:
          anyOf:
            - type: string
              format: date-time
            - type: "null"
        processedAt:
          anyOf:
            - type: string
              format: date-time
            - type: "null"
        failedReason:
          type:
            - string
            - "null"
        commitHash:
          type:
            - string
            - "null"
        progress:
          type: number
          description: "Coarse progress percentage: 0, 50 or 100."
        modelName:
          type:
            - string
            - "null"
        llmProvider:
          type:
            - string
            - "null"
        planIssueStatus:
          type:
            - string
            - "null"
        prState:
          description: "`merged` once the run's pull request has been merged; absent otherwise."
          type: string
          const: merged
        score:
          description: Final review score of the run, when it was reviewed.
          type:
            - number
            - "null"
        assignees:
          type: array
          items:
            $ref: "#/components/schemas/AttributedUser"
          description: Assignees of the GitHub issue or pull request, as last synced; empty when nobody is assigned.
      required:
        - id
        - issueId
        - repository
        - repositoryOwner
        - repositoryName
        - issueNumber
        - prNumber
        - linkedIssueNumber
        - title
        - subtitle
        - status
        - createdAt
        - updatedAt
        - completedAt
        - processedAt
        - failedReason
        - commitHash
        - progress
        - modelName
        - llmProvider
        - planIssueStatus
        - score
        - assignees
      additionalProperties: {}
      description: One task run as listed by `GET /api/tasks`.
  responses:
    EnvelopeUnauthorized:
      description: Authentication is missing or invalid.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorEnvelope"
    EnvelopeForbidden:
      description: The caller lacks the instance permission named in `x-propr-permission`.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorEnvelope"
    EnvelopeUnexpectedError:
      description: Unexpected error.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorEnvelope"
    LegacyUnauthorized:
      description: Authentication is missing or invalid.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/LegacyError"
    LegacyForbidden:
      description: The caller lacks the instance permission named in `x-propr-permission`.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/LegacyError"
    LegacyUnexpectedError:
      description: Unexpected error.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/LegacyError"
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Browser session created by the GitHub OAuth login (express-session's default cookie name, which auth.ts keeps).
    bearerAuth:
      type: http
      scheme: bearer
      description: A GitHub token (when `ENABLE_BEARER_AUTH` is not `false`) or a desktop/CLI instance token (`propr_it_…`).
    extensionBearer:
      type: http
      scheme: bearer
      description: Ephemeral, run-scoped extension gateway token. Not a GitHub, Connect or MCP OAuth grant.
    mcpOAuth:
      type: oauth2
      description: OAuth 2.1 access token issued to MCP clients by `/authorize` and `/token` (PKCE, public clients). Every token carries `read`, which is all `/api/mcp` itself requires; each MCP tool then checks its own scope, as listed in the MCP guide (docs/features/mcp).
      flows:
        authorizationCode:
          authorizationUrl: /authorize
          tokenUrl: /token
          scopes:
            read: MCP `read` scope
            plan: MCP `plan` scope
            publish: MCP `publish` scope
            execute: MCP `execute` scope
            review: MCP `review` scope
            merge: MCP `merge` scope
            deploy: MCP `deploy` scope
            manage: MCP `manage` scope
    webhookSignature:
      type: apiKey
      in: header
      name: X-Hub-Signature-256
      description: HMAC SHA-256 signature of the body with `GH_WEBHOOK_SECRET`.
    fleetSecret:
      type: apiKey
      in: header
      name: x-propr-fleet-secret
      description: The hosted Fleet control secret, `PROPR_FLEET_CONTROL_SECRET`. The routes that accept it are registered only when that secret is configured.
