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

# List a Session thread's events

> Pages a primary thread's condensed Session history or a child thread's complete history. The page uses Checkfu EventEnvelope values and the same resumable sequence cursor as Session events.

Checkfu support posture: alpha; hosted. Required evidence journey: session-threads. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.



## OpenAPI

````yaml /openapi.json get /v1/sessions/{session_id}/threads/{thread_id}/events
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-27'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; or credential-free pairing redemption. Every
    general Checkfu REST request requires the dated `Checkfu-Version` header
    (one of: 2026-08-27); the three MCP JSON-RPC transports use
    `MCP-Protocol-Version`, A2A uses `A2A-Version`, and the provider OAuth
    callback carries neither Checkfu header. API keys resolve one Workspace
    without a request selector; authenticated responses identify it with
    `Checkfu-Workspace-Id`.
servers:
  - url: https://api.checkfu.com
security:
  - bearerAuth: []
tags:
  - name: organizations
  - name: sourceRepositories
  - name: tenants
  - name: workspaces
  - name: principals
  - name: principalGroups
  - name: principalAccessCredentials
  - name: apiKeys
  - name: agents
  - name: harnesses
  - name: harnessRuntime
  - name: sandboxProfiles
  - name: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentSources
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: projects
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: actionApprovals
  - name: standingApprovals
  - name: usage
  - name: models
  - name: outcomes
  - name: budgets
  - name: billing
  - name: sessions
  - name: audit
  - name: sessionExports
  - name: runs
  - name: runnerPools
  - name: transcripts
  - name: sessionWatches
  - name: webhookEndpoints
  - name: integrationGateway
  - name: agentDeployments
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/sessions/{session_id}/threads/{thread_id}/events:
    get:
      tags:
        - sessions
      summary: List a Session thread's events
      description: >-
        Pages a primary thread's condensed Session history or a child thread's
        complete history. The page uses Checkfu EventEnvelope values and the
        same resumable sequence cursor as Session events.


        Checkfu support posture: alpha; hosted. Required evidence journey:
        session-threads. Deployment-specific readiness and the latest proven
        release are available from GET /v1/support/capabilities.
      operationId: sessions.listThreadEvents
      parameters:
        - name: session_id
          in: path
          schema:
            $ref: '#/components/schemas/SessionId'
          required: true
        - name: thread_id
          in: path
          schema:
            $ref: '#/components/schemas/SessionThreadId'
          required: true
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-27'
          required: true
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
          required: false
        - name: page
          in: query
          schema:
            type: string
            allOf:
              - pattern: ^c1_[0-9a-z]+$
              - maxLength: 14
          required: false
        - name: after
          in: query
          schema:
            type: integer
            minimum: 0
            maximum: 9007199254740991
          required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Objects_423'
          headers:
            checkfu-workspace-id:
              description: The Workspace resolved from the authenticated bearer credential.
              required: true
              schema:
                $ref: '#/components/schemas/WorkspaceId'
        '400':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationMalformedError'
        '401':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - auth.invalid_key
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#auth-invalid-key
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '403':
          description: >-
            The organization, tenant, or workspace backing this key is
            administratively disabled. | Deployment governance or retention
            policy denied the request.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - auth.disabled_tenancy
                          message:
                            type: string
                          more:
                            type: string
                            enum:
                              - >-
                                https://docs.checkfu.com/reference/errors#auth-disabled-tenancy
                            description: >-
                              Stable public documentation and remedy for this
                              error type.
                        required:
                          - type
                          - message
                          - more
                        additionalProperties: false
                    additionalProperties: false
                  - $ref: '#/components/schemas/PolicyDeniedError'
        '404':
          description: >-
            The requested resource does not exist in the resolved deployment
            boundary.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationNotFoundError'
        '429':
          description: Typed Checkfu wire error
          headers:
            retry-after:
              description: >-
                Delay in seconds for rate limits or deployment quotas with a
                known release or UTC reset boundary
              required: false
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - budget.exceeded
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#budget-exceeded
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '500':
          description: >-
            An unexpected internal failure occurred; the message contains an
            opaque incident reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeInternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    SessionThreadId:
      type: string
      allOf:
        - pattern: ^sthr_[0-9a-f]{32}$
    Objects_423:
      type: object
      properties:
        data:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.message
                  payload:
                    $ref: '#/components/schemas/Objects_169'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_309'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.message
                  payload:
                    $ref: '#/components/schemas/Objects_171'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.interrupt
                  payload:
                    $ref: '#/components/schemas/Objects_173'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_310'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.interrupt
                  payload:
                    $ref: '#/components/schemas/Objects_175'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.custom_tool_result
                  payload:
                    $ref: '#/components/schemas/Objects_177'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_311'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.custom_tool_result
                  payload:
                    $ref: '#/components/schemas/Objects_179'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.tool_confirmation
                  payload:
                    $ref: '#/components/schemas/UserToolConfirmationPayload'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_312'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.tool_confirmation
                  payload:
                    $ref: '#/components/schemas/UserToolConfirmationPayload_1'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.question_answer
                  payload:
                    $ref: '#/components/schemas/Objects_183'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_313'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.question_answer
                  payload:
                    $ref: '#/components/schemas/Objects_185'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.define_outcome
                  payload:
                    $ref: '#/components/schemas/Objects_187'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_314'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.define_outcome
                  payload:
                    $ref: '#/components/schemas/Objects_189'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.message
                  payload:
                    $ref: '#/components/schemas/Union_316'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_318'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - message.screened
                  payload:
                    $ref: '#/components/schemas/Objects_192'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 41
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - message.screened
                  payload:
                    $ref: '#/components/schemas/Objects_195'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.thinking
                  payload:
                    $ref: '#/components/schemas/Objects_198'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_319'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.tool_use
                  payload:
                    $ref: '#/components/schemas/Objects_200'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 45
                      - 45
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.tool_use
                  payload:
                    $ref: '#/components/schemas/Objects_202'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.tool_result
                  payload:
                    $ref: '#/components/schemas/AgentToolResultPayload'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.question
                  payload:
                    $ref: '#/components/schemas/Objects_205'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.subagent_started
                  payload:
                    $ref: '#/components/schemas/Objects_207'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.subagent_completed
                  payload:
                    $ref: '#/components/schemas/Objects_209'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_321'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_pending
                  payload:
                    $ref: '#/components/schemas/Objects_211'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_322'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_provisioning
                  payload:
                    $ref: '#/components/schemas/Objects_213'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_323'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_running
                  payload:
                    $ref: '#/components/schemas/Objects_215'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_324'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_reconciling
                  payload:
                    $ref: '#/components/schemas/Objects_217'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_325'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_waiting
                  payload:
                    $ref: '#/components/schemas/Objects_219'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_326'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_idle
                  payload:
                    $ref: '#/components/schemas/Objects_221'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_327'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_paused
                  payload:
                    $ref: '#/components/schemas/Objects_223'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_328'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_completed
                  payload:
                    $ref: '#/components/schemas/Objects_225'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_329'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_failed
                  payload:
                    $ref: '#/components/schemas/Objects_227'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_330'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_canceled
                  payload:
                    $ref: '#/components/schemas/Objects_229'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_331'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_pending
                  payload:
                    $ref: '#/components/schemas/Objects_231'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_334'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_provisioning
                  payload:
                    $ref: '#/components/schemas/Objects_233'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_335'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_running
                  payload:
                    $ref: '#/components/schemas/Objects_235'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_336'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_waiting
                  payload:
                    $ref: '#/components/schemas/Objects_237'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_337'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_idle
                  payload:
                    $ref: '#/components/schemas/Objects_239'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_338'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_paused
                  payload:
                    $ref: '#/components/schemas/Objects_241'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_339'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_completed
                  payload:
                    $ref: '#/components/schemas/Objects_243'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_340'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_failed
                  payload:
                    $ref: '#/components/schemas/Objects_245'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_341'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.status_canceled
                  payload:
                    $ref: '#/components/schemas/Objects_247'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 46
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.admitted
                  payload:
                    $ref: '#/components/schemas/SessionExecutionAdmissionHash'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.forked
                  payload:
                    $ref: '#/components/schemas/Objects_250'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.updated
                  payload:
                    $ref: '#/components/schemas/Objects_252'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.title_updated
                  payload:
                    $ref: '#/components/schemas/Objects_255'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.metadata_updated
                  payload:
                    $ref: '#/components/schemas/Objects_257'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_304'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - system.message
                  payload:
                    $ref: '#/components/schemas/Objects_259'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_344'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - system.message
                  payload:
                    $ref: '#/components/schemas/Objects_261'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.archived
                  payload:
                    $ref: '#/components/schemas/Objects_263'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.mounts_resolved
                  payload:
                    $ref: '#/components/schemas/Objects_265'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.compacted
                  payload:
                    $ref: '#/components/schemas/Objects_267'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.context_condensed
                  payload:
                    $ref: '#/components/schemas/Objects_269'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.mount_resolved
                  payload:
                    $ref: '#/components/schemas/Objects_271'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_345'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.accessed
                  payload:
                    $ref: '#/components/schemas/Union_346'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_347'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.accessed
                  payload:
                    $ref: '#/components/schemas/Objects_274'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.change_checkpointed
                  payload:
                    $ref: '#/components/schemas/Objects_276'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.proposal_created
                  payload:
                    $ref: '#/components/schemas/Objects_278'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.proposal_resolved
                  payload:
                    $ref: '#/components/schemas/MemoryProposalResolvedPayload'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.curated
                  payload:
                    $ref: '#/components/schemas/Objects_281'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - memory.redacted
                  payload:
                    $ref: '#/components/schemas/Objects_283'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - wire.call
                  payload:
                    $ref: '#/components/schemas/Objects_285'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_348'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - exec.tool_invocation
                  payload:
                    $ref: '#/components/schemas/Objects_288'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_349'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - exec.call
                  payload:
                    $ref: '#/components/schemas/Objects_290'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - model.routed
                  payload:
                    $ref: '#/components/schemas/Objects_292'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - model.usage_recorded
                  payload:
                    $ref: '#/components/schemas/ModelUsageRecordedEvidence'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_350'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Union_351'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 46
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Objects_297'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_354'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Objects_299'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Objects_301'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.started
                  payload:
                    $ref: '#/components/schemas/Union_355'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.start_timed_out
                  payload:
                    $ref: '#/components/schemas/Objects_304'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.attempt_requeued
                  payload:
                    $ref: '#/components/schemas/Objects_306'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.requires_action
                  payload:
                    $ref: '#/components/schemas/Objects_308'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_356'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.requires_action
                  payload:
                    $ref: '#/components/schemas/Objects_310'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_357'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.action_authorized
                  payload:
                    $ref: '#/components/schemas/Objects_312'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.resumed
                  payload:
                    $ref: '#/components/schemas/Objects_314'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_358'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.completed
                  payload:
                    $ref: '#/components/schemas/Objects_316'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_360'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.completed
                  payload:
                    $ref: '#/components/schemas/Objects_318'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.failed
                  payload:
                    $ref: '#/components/schemas/Objects_320'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.canceled
                  payload:
                    $ref: '#/components/schemas/Objects_322'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.input_delivered
                  payload:
                    $ref: '#/components/schemas/Objects_324'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.lifecycle_hook
                  payload:
                    $ref: '#/components/schemas/Objects_326'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.thread_message_sent
                  payload:
                    $ref: '#/components/schemas/Objects_328'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.thread_message_received
                  payload:
                    $ref: '#/components/schemas/Objects_330'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_362'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.advisor_consulted
                  payload:
                    $ref: '#/components/schemas/Objects_332'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 40
                      - 41
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.advisor_consulted
                  payload:
                    $ref: '#/components/schemas/Objects_334'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_363'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.advisor_consultation_failed
                  payload:
                    $ref: '#/components/schemas/Objects_336'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_365'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.advisor_consulted
                  payload:
                    $ref: '#/components/schemas/Objects_338'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_365'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.advisor_consultation_failed
                  payload:
                    $ref: '#/components/schemas/Objects_340'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.thread_created
                  payload:
                    $ref: '#/components/schemas/Objects_342'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.thread_status_running
                  payload:
                    $ref: '#/components/schemas/Objects_344'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.thread_status_idle
                  payload:
                    $ref: '#/components/schemas/Objects_346'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.thread_status_rescheduled
                  payload:
                    $ref: '#/components/schemas/Objects_348'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.thread_status_terminated
                  payload:
                    $ref: '#/components/schemas/Objects_350'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 43
                      - 44
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - action_approval.pending
                  payload:
                    $ref: '#/components/schemas/Objects_352'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 45
                      - 45
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - action_approval.pending
                  payload:
                    $ref: '#/components/schemas/Objects_356'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_366'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - action_approval.resolved
                  payload:
                    $ref: '#/components/schemas/Objects_358'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - outcome.evaluation_started
                  payload:
                    $ref: '#/components/schemas/Objects_360'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_367'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - outcome.evaluation_completed
                  payload:
                    $ref: '#/components/schemas/Objects_362'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 41
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - outcome.evaluation_completed
                  payload:
                    $ref: '#/components/schemas/Objects_364'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - flow_review.requested
                  payload:
                    $ref: '#/components/schemas/Objects_366'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - flow_review.started
                  payload:
                    $ref: '#/components/schemas/Objects_368'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_369'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - flow_review.completed
                  payload:
                    $ref: '#/components/schemas/Objects_370'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 41
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - flow_review.completed
                  payload:
                    $ref: '#/components/schemas/Objects_372'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - flow_review.unavailable
                  payload:
                    $ref: '#/components/schemas/Objects_374'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - watch.created
                  payload:
                    $ref: '#/components/schemas/Objects_376'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - watch.updated
                  payload:
                    $ref: '#/components/schemas/Objects_378'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - watch.removed
                  payload:
                    $ref: '#/components/schemas/Objects_380'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - watch.woken
                  payload:
                    $ref: '#/components/schemas/Objects_382'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - watch.suppressed
                  payload:
                    $ref: '#/components/schemas/Objects_384'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_captured
                  payload:
                    $ref: '#/components/schemas/Objects_386'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_started
                  payload:
                    $ref: '#/components/schemas/Objects_389'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_no_changes
                  payload:
                    $ref: '#/components/schemas/Objects_391'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_370'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_succeeded
                  payload:
                    $ref: '#/components/schemas/Objects_393'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_371'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_succeeded
                  payload:
                    $ref: '#/components/schemas/Objects_395'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_conflicted
                  payload:
                    $ref: '#/components/schemas/Objects_397'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - project.writeback_failed
                  payload:
                    $ref: '#/components/schemas/Union_372'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    $ref: '#/components/schemas/SpanEventType'
                  payload:
                    $ref: '#/components/schemas/JsonValue'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.message
                  payload:
                    $ref: '#/components/schemas/Objects_401'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.interrupt
                  payload:
                    $ref: '#/components/schemas/Objects_403'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - user.custom_tool_result
                  payload:
                    $ref: '#/components/schemas/Objects_405'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_374'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Objects_407'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    type: number
                    enum:
                      - 1
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Objects_409'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.started
                  payload:
                    $ref: '#/components/schemas/Objects_411'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - agent.tool_use
                  payload:
                    $ref: '#/components/schemas/Objects_413'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.completed
                  payload:
                    $ref: '#/components/schemas/Objects_415'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.failed
                  payload:
                    $ref: '#/components/schemas/Objects_417'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_315'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.requires_action
                  payload:
                    $ref: '#/components/schemas/Objects_419'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_375'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - session.delivery_ambiguous
                  payload:
                    $ref: '#/components/schemas/Objects_421'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/EventId'
                  seq:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  schema_version:
                    $ref: '#/components/schemas/Union_376'
                  created_at:
                    type: string
                  attested:
                    type: boolean
                    enum:
                      - true
                  type:
                    type: string
                    enum:
                      - run.created
                  payload:
                    $ref: '#/components/schemas/Union_377'
                  provenance:
                    $ref: '#/components/schemas/Union_378'
                  presentation:
                    $ref: '#/components/schemas/EventPresentation'
                required:
                  - id
                  - seq
                  - schema_version
                  - created_at
                  - type
                  - payload
                  - provenance
                  - presentation
                additionalProperties: false
        unavailable:
          type: array
          items:
            $ref: '#/components/schemas/Objects_424'
        next_page:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - data
        - next_page
      additionalProperties: false
    WorkspaceId:
      type: string
      allOf:
        - pattern: ^wrkspc_[0-9a-f]{32}$
    ValidationMalformedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.malformed
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-malformed
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The request could not be decoded or violated a declared input
        constraint.
    PolicyDeniedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - policy.denied
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#policy-denied
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Deployment governance or retention policy denied the request.
    ValidationNotFoundError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.not_found
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-not-found
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The requested resource does not exist in the resolved deployment
        boundary.
    RuntimeInternalError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.internal
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#runtime-internal
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An unexpected internal failure occurred; the message contains an opaque
        incident reference.
    EventId:
      type: string
      allOf:
        - pattern: ^evt_[0-9a-f]{32}$
    Union_304:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
    Objects_169:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/Union_65'
        attachments:
          type: array
          items:
            type: string
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_298'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_200'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        connected_runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
        run_delivery:
          type: string
          enum:
            - next_run
        host_context:
          type: object
          properties:
            source:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            data:
              $ref: '#/components/schemas/HostContextData'
          required:
            - source
            - data
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Union_378:
      type: string
      enum:
        - wire
        - exec
        - narration
        - human
        - platform
    EventPresentation:
      type: object
      properties:
        canonical_type:
          type: string
        provenance:
          $ref: '#/components/schemas/Union_378'
        known:
          type: boolean
        classification:
          type: string
          enum:
            - input
            - progress
            - question
            - decision
            - result
            - failure
            - lifecycle
            - diagnostic
        visibility:
          type: string
          enum:
            - default
            - detail
            - hidden
        coalescible:
          type: boolean
        notification:
          type: string
          enum:
            - none
            - new
            - edit
        milestone:
          type: boolean
        terminal:
          type: boolean
        summary:
          type: string
          allOf:
            - maxLength: 160
      required:
        - canonical_type
        - provenance
        - known
        - classification
        - visibility
        - coalescible
        - notification
        - milestone
        - terminal
        - summary
      additionalProperties: false
    Union_309:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_171:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/Union_65'
        attachments:
          type: array
          items:
            type: string
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_298'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_200'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        connected_runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
        run_delivery:
          type: string
          enum:
            - next_run
        host_context:
          type: object
          properties:
            source:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            data:
              $ref: '#/components/schemas/HostContextData'
          required:
            - source
            - data
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_173:
      type: object
      properties:
        target_event:
          $ref: '#/components/schemas/EventId'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        mode:
          type: string
          enum:
            - cooperative
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - authored_by
        - caused_by
      additionalProperties: false
    Union_310:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_175:
      type: object
      properties:
        target_event:
          $ref: '#/components/schemas/EventId'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        mode:
          type: string
          enum:
            - cooperative
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_177:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Union_311:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_179:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    UserToolConfirmationPayload:
      type: object
      properties:
        tool_use_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        result:
          type: string
          enum:
            - allow
            - deny
        deny_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Union_312:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    UserToolConfirmationPayload_1:
      type: object
      properties:
        tool_use_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        result:
          type: string
          enum:
            - allow
            - deny
        deny_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_183:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        answers:
          $ref: '#/components/schemas/ManagedQuestionAnswers'
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_298'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_200'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - question
        - answers
        - authored_by
        - caused_by
      additionalProperties: false
    Union_313:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_185:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        answers:
          $ref: '#/components/schemas/ManagedQuestionAnswers'
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_298'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_200'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - question
        - answers
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_187:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        description:
          $ref: '#/components/schemas/OutcomeDescription'
        rubric:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 65536
        max_iterations:
          type: integer
          allOf:
            - minimum: 1
              maximum: 20
        deliverables:
          type: array
          items:
            type: string
            allOf:
              - pattern: ^\/\S+$
          allOf:
            - minItems: 1
            - maxItems: 32
        report:
          type: object
          properties:
            extraction:
              type: string
              enum:
                - json
                - model
            outputs:
              $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
          required:
            - extraction
            - outputs
          additionalProperties: false
        verifier:
          type: object
          properties:
            command:
              type: array
              items:
                type: string
                allOf:
                  - minLength: 1
              allOf:
                - minItems: 1
                - maxItems: 64
            reward_format:
              type: string
              enum:
                - reward_text
                - reward_json
            pass_threshold:
              type: number
              allOf:
                - minimum: 0
                  maximum: 1
          required:
            - command
            - reward_format
            - pass_threshold
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - outcome
        - description
        - rubric
        - authored_by
        - caused_by
      additionalProperties: false
    Union_314:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_189:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        description:
          $ref: '#/components/schemas/OutcomeDescription'
        rubric:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 65536
        max_iterations:
          type: integer
          allOf:
            - minimum: 1
              maximum: 20
        deliverables:
          type: array
          items:
            type: string
            allOf:
              - pattern: ^\/\S+$
          allOf:
            - minItems: 1
            - maxItems: 32
        report:
          type: object
          properties:
            extraction:
              type: string
              enum:
                - json
                - model
            outputs:
              $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
          required:
            - extraction
            - outputs
          additionalProperties: false
        verifier:
          type: object
          properties:
            command:
              type: array
              items:
                type: string
                allOf:
                  - minLength: 1
              allOf:
                - minItems: 1
                - maxItems: 64
            reward_format:
              type: string
              enum:
                - reward_text
                - reward_json
            pass_threshold:
              type: number
              allOf:
                - minimum: 0
                  maximum: 1
          required:
            - command
            - reward_format
            - pass_threshold
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - outcome
        - description
        - rubric
        - authored_by
        - caused_by
      additionalProperties: false
    Union_315:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 46
        - 45
    Union_316:
      anyOf:
        - type: object
          properties:
            content:
              type: string
            subagent:
              $ref: '#/components/schemas/SubagentId'
          required:
            - content
          additionalProperties: false
        - type: object
          properties:
            withheld:
              type: object
              properties:
                content_digest:
                  type: string
                  allOf:
                    - pattern: ^sha256:[0-9a-f]{64}$
                reason:
                  type: string
                  enum:
                    - screen_block
                    - screen_failed
              required:
                - content_digest
                - reason
              additionalProperties: false
            subagent:
              $ref: '#/components/schemas/SubagentId'
          required:
            - withheld
          additionalProperties: false
    Union_318:
      type: number
      enum:
        - 42
        - 44
        - 45
        - 45
    Objects_192:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - pass
            - block
        reason:
          type: string
          allOf:
            - maxLength: 512
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        route:
          $ref: '#/components/schemas/Objects_193'
        usage:
          $ref: '#/components/schemas/Objects_69'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - verdict
        - content_digest
      additionalProperties: false
    Objects_195:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - pass
            - block
        reason:
          type: string
          allOf:
            - maxLength: 512
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        route:
          $ref: '#/components/schemas/Objects_196'
        usage:
          $ref: '#/components/schemas/Objects_69'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - verdict
        - content_digest
      additionalProperties: false
    Objects_198:
      type: object
      properties:
        content:
          type: string
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - content
      additionalProperties: false
    Union_319:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
    Objects_200:
      type: object
      properties:
        tool_use_id:
          type: string
        tool:
          $ref: '#/components/schemas/Union_320'
        args:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
        - tool
        - args
      additionalProperties: false
    Objects_202:
      type: object
      properties:
        tool_use_id:
          type: string
        tool:
          $ref: '#/components/schemas/Union_320'
        args:
          $ref: '#/components/schemas/JsonValue'
        provider_tool_name:
          $ref: '#/components/schemas/ProviderToolName'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
        - tool
        - args
      additionalProperties: false
    AgentToolResultPayload:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        error:
          $ref: '#/components/schemas/Objects_144'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
      additionalProperties: false
    Objects_205:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        items:
          $ref: '#/components/schemas/ManagedQuestionItems'
      required:
        - question
        - items
      additionalProperties: false
    Objects_207:
      type: object
      properties:
        subagent:
          $ref: '#/components/schemas/SubagentId'
        name:
          type: string
          allOf:
            - minLength: 1
        description:
          type: string
      required:
        - subagent
        - name
      additionalProperties: false
    Objects_209:
      type: object
      properties:
        subagent:
          $ref: '#/components/schemas/SubagentId'
        disposition:
          type: string
          enum:
            - completed
            - failed
            - canceled
      required:
        - subagent
        - disposition
      additionalProperties: false
    Union_321:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_211:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
      required:
        - status
      additionalProperties: false
    Union_322:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_213:
      type: object
      properties:
        status:
          type: string
          enum:
            - provisioning
      required:
        - status
      additionalProperties: false
    Union_323:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_215:
      type: object
      properties:
        status:
          type: string
          enum:
            - running
      required:
        - status
      additionalProperties: false
    Union_324:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_217:
      type: object
      properties:
        status:
          type: string
          enum:
            - reconciling
      required:
        - status
      additionalProperties: false
    Union_325:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_219:
      type: object
      properties:
        status:
          type: string
          enum:
            - waiting
      required:
        - status
      additionalProperties: false
    Union_326:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_221:
      type: object
      properties:
        status:
          type: string
          enum:
            - idle
        stop_reason:
          $ref: '#/components/schemas/Union_262'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_327:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_223:
      type: object
      properties:
        status:
          type: string
          enum:
            - paused
      required:
        - status
      additionalProperties: false
    Union_328:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_225:
      type: object
      properties:
        status:
          type: string
          enum:
            - completed
        stop_reason:
          $ref: '#/components/schemas/Union_262'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_329:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_227:
      type: object
      properties:
        status:
          type: string
          enum:
            - failed
        stop_reason:
          type: string
          enum:
            - error
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
        - stop_reason
        - reason
      additionalProperties: false
    Union_330:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_229:
      type: object
      properties:
        status:
          type: string
          enum:
            - canceled
        stop_reason:
          $ref: '#/components/schemas/Union_262'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_331:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_231:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_334:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_233:
      type: object
      properties:
        status:
          type: string
          enum:
            - provisioning
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_335:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_235:
      type: object
      properties:
        status:
          type: string
          enum:
            - running
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_336:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_237:
      type: object
      properties:
        status:
          type: string
          enum:
            - waiting
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_337:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_239:
      type: object
      properties:
        status:
          type: string
          enum:
            - idle
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_338:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_241:
      type: object
      properties:
        status:
          type: string
          enum:
            - paused
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_339:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_243:
      type: object
      properties:
        status:
          type: string
          enum:
            - completed
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_340:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_245:
      type: object
      properties:
        status:
          type: string
          enum:
            - failed
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    Union_341:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_247:
      type: object
      properties:
        status:
          type: string
          enum:
            - canceled
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        reason:
          $ref: '#/components/schemas/Union_213'
      required:
        - status
      additionalProperties: false
    SessionExecutionAdmissionHash:
      type: object
      properties:
        type:
          type: string
          enum:
            - session_execution_admission
        material:
          type: object
          properties:
            session_id:
              $ref: '#/components/schemas/SessionId'
            authentication:
              anyOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - api_key
                    api_key_id:
                      $ref: '#/components/schemas/ApiKeyId'
                    organization_id:
                      $ref: '#/components/schemas/OrganizationId'
                    role:
                      $ref: '#/components/schemas/Union_15'
                    scope:
                      $ref: '#/components/schemas/Union_16'
                  required:
                    - kind
                    - api_key_id
                    - organization_id
                    - role
                    - scope
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - automation
                    automation:
                      $ref: '#/components/schemas/AutomationId'
                    organization_id:
                      $ref: '#/components/schemas/OrganizationId'
                  required:
                    - kind
                    - automation
                    - organization_id
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - agent_installation
                    agent_installation_id:
                      $ref: '#/components/schemas/AgentInstallationId'
                    organization_id:
                      $ref: '#/components/schemas/OrganizationId'
                  required:
                    - kind
                    - agent_installation_id
                    - organization_id
                  additionalProperties: false
            workspace:
              type: object
              properties:
                workspace_id:
                  $ref: '#/components/schemas/WorkspaceId'
                retention_policy:
                  $ref: '#/components/schemas/Union_342'
                model_provider_policy:
                  type: object
                  properties:
                    denied_providers:
                      type: array
                      items:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 255
                      allOf:
                        - maxItems: 256
                        - uniqueItems: true
                  required:
                    - denied_providers
                  additionalProperties: false
                quota_policy:
                  type: object
                  properties:
                    max_concurrent_runs:
                      type: integer
                      allOf:
                        - exclusiveMinimum: 0
                        - maximum: 9007199254740991
                    monthly_tokens:
                      type: integer
                      allOf:
                        - exclusiveMinimum: 0
                        - maximum: 9007199254740991
                    monthly_sandbox_seconds:
                      type: integer
                      allOf:
                        - exclusiveMinimum: 0
                        - maximum: 9007199254740
                  additionalProperties: false
              required:
                - workspace_id
                - retention_policy
                - model_provider_policy
                - quota_policy
              additionalProperties: false
            configuration:
              type: object
              properties:
                agent:
                  $ref: '#/components/schemas/BetaManagedAgentsSessionAgent'
                environment:
                  $ref: '#/components/schemas/BetaEnvironment'
                harness:
                  $ref: '#/components/schemas/Union_37'
                workload_trust:
                  $ref: '#/components/schemas/PublicWorkloadTrustAdmission'
              required:
                - agent
                - environment
                - harness
                - workload_trust
              additionalProperties: false
          required:
            - session_id
            - authentication
            - workspace
            - configuration
          additionalProperties: false
        admission_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        admitted_at:
          $ref: '#/components/schemas/CurrentTimestamp'
      required:
        - type
        - material
        - admission_hash
        - admitted_at
      additionalProperties: false
    Objects_250:
      type: object
      properties:
        source_session:
          $ref: '#/components/schemas/SessionId'
        through_event:
          $ref: '#/components/schemas/EventId'
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        source_status:
          type: string
          enum:
            - pending
            - provisioning
            - running
            - reconciling
            - waiting
            - idle
            - paused
            - completed
            - failed
            - canceled
        abandoned_run:
          anyOf:
            - $ref: '#/components/schemas/RunId'
            - type: 'null'
        checkpoint:
          anyOf:
            - $ref: '#/components/schemas/CheckpointId'
            - type: 'null'
        mode:
          type: string
          enum:
            - event_log_rebuild
            - checkpoint_clone
      required:
        - source_session
        - through_event
        - through_sequence
        - source_status
        - abandoned_run
        - checkpoint
        - mode
      additionalProperties: false
    Objects_252:
      type: object
      properties:
        changes:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - definition_version_changed
                  from_version:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  to_version:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                required:
                  - kind
                  - from_version
                  - to_version
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - mount_attached
                  mount:
                    anyOf:
                      - anyOf:
                          - type: object
                            properties:
                              id:
                                $ref: '#/components/schemas/MountId'
                              kind:
                                type: string
                                enum:
                                  - project
                              project_id:
                                $ref: '#/components/schemas/ProjectId'
                              mount_path:
                                $ref: '#/components/schemas/MountPath'
                              revision_policy:
                                $ref: '#/components/schemas/Union_226'
                              access:
                                $ref: '#/components/schemas/Union_227'
                              writeback:
                                type: 'null'
                            required:
                              - id
                              - kind
                              - project_id
                              - mount_path
                              - revision_policy
                              - access
                            additionalProperties: false
                          - type: object
                            properties:
                              id:
                                $ref: '#/components/schemas/MountId'
                              kind:
                                type: string
                                enum:
                                  - project
                              project_id:
                                $ref: '#/components/schemas/ProjectId'
                              mount_path:
                                $ref: '#/components/schemas/MountPath'
                              revision_policy:
                                $ref: '#/components/schemas/Union_226'
                              access:
                                type: string
                                enum:
                                  - read_write
                              writeback:
                                $ref: '#/components/schemas/Objects_127'
                            required:
                              - id
                              - kind
                              - project_id
                              - mount_path
                              - revision_policy
                              - access
                              - writeback
                            additionalProperties: false
                      - type: object
                        properties:
                          id:
                            $ref: '#/components/schemas/MountId'
                          kind:
                            type: string
                            enum:
                              - file
                          file_id:
                            $ref: '#/components/schemas/FileId'
                          mount_path:
                            $ref: '#/components/schemas/MountPath'
                          access:
                            type: string
                            enum:
                              - read_only
                        required:
                          - id
                          - kind
                          - file_id
                          - mount_path
                          - access
                        additionalProperties: false
                      - $ref: '#/components/schemas/Objects_253'
                required:
                  - kind
                  - mount
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - mount_detached
                  mount_id:
                    $ref: '#/components/schemas/MountId'
                required:
                  - kind
                  - mount_id
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - managed_configuration_changed
                  agent:
                    type: boolean
                  budget:
                    type: boolean
                  vaults:
                    type: boolean
                required:
                  - kind
                  - agent
                  - budget
                  - vaults
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - loaded_capabilities_changed
                  loaded_capabilities:
                    type: array
                    items:
                      $ref: '#/components/schemas/Objects_163'
                required:
                  - kind
                  - loaded_capabilities
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - selection_changed
                  from_release_hash:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                  to_release_hash:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                required:
                  - kind
                  - from_release_hash
                  - to_release_hash
                additionalProperties: false
          allOf:
            - minItems: 1
      required:
        - changes
      additionalProperties: false
    Objects_255:
      type: object
      properties:
        present:
          type: boolean
      required:
        - present
      additionalProperties: false
    Objects_257:
      type: object
      properties:
        pairs:
          type: integer
          allOf:
            - minimum: 0
      required:
        - pairs
      additionalProperties: false
    Objects_259:
      type: object
      properties:
        content:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Union_344:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_261:
      type: object
      properties:
        content:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        authored_by:
          $ref: '#/components/schemas/Union_308'
        caused_by:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_263:
      anyOf:
        - type: object
        - type: array
    Objects_265:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        mounts:
          type: array
          items:
            anyOf:
              - anyOf:
                  - type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/MountId'
                      kind:
                        type: string
                        enum:
                          - project
                      project_id:
                        $ref: '#/components/schemas/ProjectId'
                      mount_path:
                        $ref: '#/components/schemas/MountPath'
                      revision_policy:
                        $ref: '#/components/schemas/Union_226'
                      revision:
                        type: integer
                        allOf:
                          - exclusiveMinimum: 0
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                      access:
                        $ref: '#/components/schemas/Union_227'
                      writeback:
                        type: 'null'
                      resolution:
                        $ref: '#/components/schemas/Union_191'
                    required:
                      - id
                      - kind
                      - project_id
                      - mount_path
                      - revision_policy
                      - revision
                      - content_sha256
                      - access
                      - resolution
                    additionalProperties: false
                  - type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/MountId'
                      kind:
                        type: string
                        enum:
                          - project
                      project_id:
                        $ref: '#/components/schemas/ProjectId'
                      mount_path:
                        $ref: '#/components/schemas/MountPath'
                      revision_policy:
                        $ref: '#/components/schemas/Union_226'
                      revision:
                        type: integer
                        allOf:
                          - exclusiveMinimum: 0
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                      access:
                        type: string
                        enum:
                          - read_write
                      writeback:
                        $ref: '#/components/schemas/Objects_127'
                      resolution:
                        $ref: '#/components/schemas/Objects_110'
                    required:
                      - id
                      - kind
                      - project_id
                      - mount_path
                      - revision_policy
                      - revision
                      - content_sha256
                      - access
                      - writeback
                      - resolution
                    additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/MountId'
                  kind:
                    type: string
                    enum:
                      - file
                  file_id:
                    $ref: '#/components/schemas/FileId'
                  mount_path:
                    $ref: '#/components/schemas/MountPath'
                  access:
                    type: string
                    enum:
                      - read_only
                  sha256:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                  bytes:
                    type: integer
                    allOf:
                      - minimum: 0
                required:
                  - id
                  - kind
                  - file_id
                  - mount_path
                  - access
                  - sha256
                  - bytes
                additionalProperties: false
              - $ref: '#/components/schemas/Objects_253'
              - $ref: '#/components/schemas/ResolvedSkillsMountIntegrity'
      required:
        - run
        - mounts
      additionalProperties: false
    Objects_267:
      type: object
      properties:
        strategy:
          type: string
          enum:
            - native
            - platform_summarize
            - truncate
        tokens_before:
          type: integer
          allOf:
            - minimum: 0
        tokens_after:
          type: integer
          allOf:
            - minimum: 0
      required:
        - strategy
        - tokens_before
        - tokens_after
      additionalProperties: false
    Objects_269:
      type: object
      properties:
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        condensed:
          type: object
          properties:
            user_messages:
              type: integer
              allOf:
                - minimum: 0
            agent_messages:
              type: integer
              allOf:
                - minimum: 0
          required:
            - user_messages
            - agent_messages
          additionalProperties: false
        kept:
          type: object
          properties:
            user_messages:
              type: integer
              allOf:
                - minimum: 0
            agent_messages:
              type: integer
              allOf:
                - minimum: 0
            content_length:
              type: integer
              allOf:
                - minimum: 0
          required:
            - user_messages
            - agent_messages
            - content_length
          additionalProperties: false
      required:
        - through_sequence
        - condensed
        - kept
      additionalProperties: false
    Objects_271:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        requested:
          $ref: '#/components/schemas/Union_228'
        effective:
          $ref: '#/components/schemas/Union_228'
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        mount_path:
          $ref: '#/components/schemas/MountPath'
      required:
        - store
        - requested
        - effective
      additionalProperties: false
    Union_345:
      type: number
      enum:
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Union_346:
      anyOf:
        - type: object
          properties:
            store:
              $ref: '#/components/schemas/MemoryStoreId'
            revision:
              $ref: '#/components/schemas/MemoryRevisionId'
            method:
              type: string
              enum:
                - mount
                - search
                - tool
            detail:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - full
                documents:
                  type: array
                  items:
                    type: object
                    properties:
                      path:
                        $ref: '#/components/schemas/MemoryPath'
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                    required:
                      - path
                      - content_sha256
                    additionalProperties: false
                  allOf:
                    - minItems: 1
              required:
                - kind
                - documents
              additionalProperties: false
          required:
            - store
            - revision
            - method
            - detail
          additionalProperties: false
        - type: object
          properties:
            scope:
              type: string
              enum:
                - mounted_stores
            method:
              type: string
              enum:
                - mount
            store_count:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            document_count:
              type: integer
              allOf:
                - exclusiveMinimum: 0
          required:
            - scope
            - method
            - store_count
            - document_count
          additionalProperties: false
    Union_347:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
    Objects_274:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        method:
          type: string
          enum:
            - mount
            - search
            - tool
        detail:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - full
                documents:
                  type: array
                  items:
                    type: object
                    properties:
                      path:
                        $ref: '#/components/schemas/MemoryPath'
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                    required:
                      - path
                      - content_sha256
                    additionalProperties: false
                  allOf:
                    - minItems: 1
              required:
                - kind
                - documents
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - aggregate
                document_count:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
              required:
                - kind
                - document_count
              additionalProperties: false
      required:
        - store
        - revision
        - method
        - detail
      additionalProperties: false
    Objects_276:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        working_ref:
          $ref: '#/components/schemas/Union_116'
        base_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        new_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        tree_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        diff_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        changed_paths:
          type: array
          items:
            $ref: '#/components/schemas/MemoryPath'
          allOf:
            - minItems: 1
      required:
        - store
        - working_ref
        - base_revision
        - new_revision
        - tree_hash
        - diff_hash
        - changed_paths
      additionalProperties: false
    Objects_278:
      type: object
      properties:
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        base_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        head_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        diff_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - proposal
        - store
        - base_revision
        - head_revision
        - diff_hash
      additionalProperties: false
    MemoryProposalResolvedPayload:
      type: object
      properties:
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
        decision:
          type: string
          enum:
            - approved
            - rejected
            - superseded
        responder:
          anyOf:
            - $ref: '#/components/schemas/Union_114'
            - type: 'null'
        canonical_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
      required:
        - proposal
        - decision
        - responder
      additionalProperties: false
    Objects_281:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/CurationRunId'
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        cursor_from:
          type: integer
          allOf:
            - minimum: 0
        cursor_to:
          type: integer
          allOf:
            - minimum: 0
        source_event_count:
          type: integer
          allOf:
            - minimum: 0
        source_artifact_count:
          type: integer
          allOf:
            - minimum: 0
        output_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
      required:
        - run
        - store
        - cursor_from
        - cursor_to
        - source_event_count
        - source_artifact_count
      additionalProperties: false
    Objects_283:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        operation:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        revision_count:
          type: integer
          allOf:
            - minimum: 0
        path_count:
          type: integer
          allOf:
            - minimum: 0
        hash_count:
          type: integer
          allOf:
            - minimum: 0
      required:
        - store
        - operation
        - revision_count
        - path_count
        - hash_count
      additionalProperties: false
    Objects_285:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        request_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        provider_call_id:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            - type: 'null'
        binding:
          type: string
        provider:
          type: string
        model:
          type: string
        usage:
          anyOf:
            - $ref: '#/components/schemas/Objects_69'
            - $ref: '#/components/schemas/Objects_158'
        request:
          type: object
          properties:
            body:
              $ref: '#/components/schemas/Objects_286'
            messages:
              type: array
              items:
                $ref: '#/components/schemas/Objects_286'
              allOf:
                - maxItems: 2048
          required:
            - body
            - messages
          additionalProperties: false
        response:
          type: object
          properties:
            body:
              $ref: '#/components/schemas/Objects_286'
            frames:
              type: array
              items:
                $ref: '#/components/schemas/Objects_286'
              allOf:
                - maxItems: 2048
          required:
            - body
            - frames
          additionalProperties: false
        request_bytes:
          type: integer
          allOf:
            - minimum: 0
        response_bytes:
          type: integer
          allOf:
            - minimum: 0
      required:
        - run
        - attempt
        - request_id
        - provider_call_id
        - binding
        - provider
        - model
        - usage
        - request
        - response
        - request_bytes
        - response_bytes
      additionalProperties: false
    Union_348:
      type: number
      enum:
        - 44
        - 45
        - 45
    Objects_288:
      type: object
      properties:
        run_id:
          $ref: '#/components/schemas/RunId'
        run_attempt_id:
          $ref: '#/components/schemas/RunAttemptId'
        tool_invocation_id:
          $ref: '#/components/schemas/ToolInvocationId'
        connection_id:
          $ref: '#/components/schemas/ConnectionId'
        tool_source_id:
          $ref: '#/components/schemas/ToolSourceId'
        tool_name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        execution_backend:
          $ref: '#/components/schemas/Union_276'
        disposition:
          type: string
          enum:
            - completed
            - denied
            - indeterminate
        argument_fingerprint:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
        upgrade:
          type: boolean
          enum:
            - true
      required:
        - run_id
        - run_attempt_id
        - tool_invocation_id
        - connection_id
        - tool_source_id
        - tool_name
        - execution_backend
        - disposition
        - argument_fingerprint
        - duration_ms
      additionalProperties: false
    Union_349:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
    Objects_290:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        call_id:
          type: string
          allOf:
            - pattern: ^call_[0-9a-f]{32}$
        connection:
          $ref: '#/components/schemas/ConnectionId'
        tool_source:
          $ref: '#/components/schemas/ToolSourceId'
        tool_name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        engine:
          type: string
          enum:
            - builtin
            - executor
            - connector
        disposition:
          type: string
          enum:
            - completed
            - denied
            - indeterminate
        argument_fingerprint:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
        upgrade:
          type: boolean
          enum:
            - true
      required:
        - run
        - attempt
        - call_id
        - connection
        - tool_source
        - tool_name
        - engine
        - disposition
        - argument_fingerprint
        - duration_ms
      additionalProperties: false
    Objects_292:
      type: object
      properties:
        binding:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
      required:
        - binding
        - model
        - tier
        - reason
      additionalProperties: false
    ModelUsageRecordedEvidence:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        request_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        binding:
          type: string
        provider:
          type: string
        model:
          type: string
        input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cached_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cache_write_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        output_tokens:
          type: integer
          allOf:
            - minimum: 0
        reasoning_output_tokens:
          type: integer
          allOf:
            - minimum: 0
        total_tokens:
          type: integer
          allOf:
            - minimum: 0
        unit:
          type: string
          enum:
            - image
            - video_second
            - compute_second
        quantity_millionths:
          type: integer
          allOf:
            - minimum: 0
      required:
        - run
        - request_id
        - binding
        - provider
        - model
      additionalProperties: false
    Union_350:
      type: number
      enum:
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Union_351:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_259'
            requested_by:
              $ref: '#/components/schemas/Union_103'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_255'
            agent_installation_id:
              $ref: '#/components/schemas/Union_352'
            surface_scope_id:
              $ref: '#/components/schemas/Union_353'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins:
              $ref: '#/components/schemas/Objects_33'
            connected_runtime: false
            native_runtime: false
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - execution_pins
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_259'
            requested_by:
              $ref: '#/components/schemas/Union_103'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_255'
            agent_installation_id:
              $ref: '#/components/schemas/Union_352'
            surface_scope_id:
              $ref: '#/components/schemas/Union_353'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins: false
            native_runtime: false
            connected_runtime:
              $ref: '#/components/schemas/Objects_295'
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - connected_runtime
          additionalProperties: false
    Objects_297:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_259'
        native_runtime:
          type: object
          properties:
            session_admission_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            runtime_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
          required:
            - session_admission_hash
            - runtime_hash
          additionalProperties: false
        execution_pins: false
        connected_runtime: false
      required:
        - run
        - trigger
        - native_runtime
      additionalProperties: false
    Union_354:
      type: number
      enum:
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
    Objects_299:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_259'
        requested_by:
          $ref: '#/components/schemas/Union_103'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        agent_installation_id:
          $ref: '#/components/schemas/Union_352'
        surface_scope_id:
          $ref: '#/components/schemas/Union_353'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
        execution_pins:
          type: object
          properties:
            agent_version:
              type: string
            harness_profile_version:
              type: string
            harness_release_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            harness_driver_version:
              type: string
            sandbox_profile_id:
              $ref: '#/components/schemas/SandboxProfileId'
            sandbox_profile_revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            sandbox_image_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            model_binding_version:
              type: string
            plane_policy_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            selected_skills:
              $ref: '#/components/schemas/Arrays_10'
            selected_tools:
              $ref: '#/components/schemas/Arrays_11'
            instructions_sha256:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
          required:
            - agent_version
            - harness_profile_version
            - harness_release_digest
            - harness_driver_version
            - sandbox_profile_id
            - sandbox_profile_revision_number
            - sandbox_image_digest
            - model_binding_version
            - plane_policy_hash
          additionalProperties: false
        connected_runtime: false
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
        - execution_pins
      additionalProperties: false
    Objects_301:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_259'
        requested_by:
          $ref: '#/components/schemas/Union_103'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        agent_installation_id:
          $ref: '#/components/schemas/Union_352'
        surface_scope_id:
          $ref: '#/components/schemas/Union_353'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
        execution_pins: false
        native_runtime: false
        connected_runtime:
          $ref: '#/components/schemas/Objects_295'
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
        - connected_runtime
      additionalProperties: false
    Union_355:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            runner_pool:
              $ref: '#/components/schemas/RunnerPoolId'
            execution_target:
              $ref: '#/components/schemas/Objects_43'
            capability_set:
              $ref: '#/components/schemas/Objects_21'
            evidence_authority:
              type: string
              enum:
                - server_driver_envelope
          required:
            - run
            - attempt
            - runner_pool
            - execution_target
            - capability_set
            - evidence_authority
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            connected_runtime:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - connected
                protocol:
                  type: string
                  enum:
                    - acp-v1
                runtime:
                  $ref: '#/components/schemas/ConnectedRuntimeId'
              required:
                - kind
                - protocol
              additionalProperties: false
            evidence_authority:
              type: string
              enum:
                - run_capability_admission
          required:
            - run
            - attempt
            - connected_runtime
            - evidence_authority
          additionalProperties: false
    Objects_304:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.start_timeout
            message:
              type: string
          required:
            - type
            - message
          additionalProperties: false
      required:
        - run
        - attempt
        - error
      additionalProperties: false
    Objects_306:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        recovery:
          type: number
          enum:
            - 1
        error:
          $ref: '#/components/schemas/Objects_144'
      required:
        - run
        - attempt
        - recovery
        - error
      additionalProperties: false
    Objects_308:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - question
                question:
                  $ref: '#/components/schemas/QuestionId'
                items:
                  $ref: '#/components/schemas/ManagedQuestionItems'
              required:
                - kind
                - question
                - items
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - outcome_evaluation
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                iteration:
                  type: integer
                  allOf:
                    - minimum: 0
              required:
                - kind
                - outcome
                - iteration
              additionalProperties: false
        cost:
          $ref: '#/components/schemas/Objects_143'
      required:
        - run
        - attempt
        - action
        - cost
      additionalProperties: false
    Union_356:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_310:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - action_approval
                approval:
                  $ref: '#/components/schemas/ActionApprovalId'
                tool_use_id:
                  type: string
                on_approve:
                  type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - custom_tool
                  required:
                    - kind
                  additionalProperties: false
              required:
                - kind
                - approval
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - question
                question:
                  $ref: '#/components/schemas/QuestionId'
                items:
                  $ref: '#/components/schemas/ManagedQuestionItems'
              required:
                - kind
                - question
                - items
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - outcome_evaluation
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                iteration:
                  type: integer
                  allOf:
                    - minimum: 0
              required:
                - kind
                - outcome
                - iteration
              additionalProperties: false
        cost:
          $ref: '#/components/schemas/Objects_143'
      required:
        - run
        - attempt
        - action
        - cost
      additionalProperties: false
    Union_357:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_312:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        action:
          type: object
          properties:
            kind:
              type: string
              enum:
                - custom_tool
            tool_use_id:
              type: string
          required:
            - kind
            - tool_use_id
          additionalProperties: false
      required:
        - run
        - attempt
        - approval
        - action
      additionalProperties: false
    Objects_314:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
      required:
        - run
        - attempt
      additionalProperties: false
    Union_358:
      type: number
      enum:
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_316:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        cost:
          $ref: '#/components/schemas/Objects_143'
        turn:
          type: object
          properties:
            execution:
              type: string
              enum:
                - shell
                - model_only
            shell_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            filesystem_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            mcp_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            wall_time_ms:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 604800000
            model_transient_retries:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_overflow_recoveries:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
          required:
            - execution
            - shell_commands
            - filesystem_commands
            - mcp_calls
            - model_calls
            - wall_time_ms
          additionalProperties: false
      required:
        - run
        - attempt
        - stop_reason
        - cost
      additionalProperties: false
    Union_360:
      type: number
      enum:
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
    Objects_318:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        cost:
          $ref: '#/components/schemas/Objects_143'
        turn:
          type: object
          properties:
            execution:
              type: string
              enum:
                - shell
                - model_only
            shell_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            filesystem_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            mcp_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            wall_time_ms:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 604800000
          required:
            - execution
            - shell_commands
            - filesystem_commands
            - mcp_calls
            - model_calls
            - wall_time_ms
          additionalProperties: false
      required:
        - run
        - attempt
        - stop_reason
        - cost
      additionalProperties: false
    Objects_320:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        error:
          $ref: '#/components/schemas/Objects_144'
      required:
        - run
        - attempt
        - error
      additionalProperties: false
    Objects_322:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          anyOf:
            - $ref: '#/components/schemas/RunAttemptId'
            - type: 'null'
        reason:
          type: string
      required:
        - run
        - attempt
        - reason
      additionalProperties: false
    Objects_324:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        event:
          $ref: '#/components/schemas/EventId'
        disposition:
          type: string
          enum:
            - delivered
            - queued
            - refused
      required:
        - run
        - attempt
        - event
        - disposition
      additionalProperties: false
    Objects_326:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        phase:
          $ref: '#/components/schemas/Union_72'
        ordinal:
          type: integer
          allOf:
            - minimum: 0
            - exclusiveMaximum: 16
        outcome:
          $ref: '#/components/schemas/Union_361'
        on_failure:
          $ref: '#/components/schemas/Union_73'
        exit_code:
          anyOf:
            - type: integer
              allOf:
                - minimum: 0
                  maximum: 255
            - type: 'null'
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 3600000
        output:
          $ref: '#/components/schemas/SandboxLifecycleHookOutput'
        output_truncated:
          type: boolean
      required:
        - run
        - attempt
        - phase
        - ordinal
        - outcome
        - on_failure
        - exit_code
        - duration_ms
        - output
        - output_truncated
      additionalProperties: false
    Objects_328:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/MessageContentBlocks'
        to_session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        to_agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - content
        - to_session_thread_id
      additionalProperties: false
    Objects_330:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/MessageContentBlocks'
        from_session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        from_agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - content
        - from_session_thread_id
      additionalProperties: false
    Union_362:
      type: number
      enum:
        - 42
        - 44
        - 45
        - 45
    Objects_332:
      type: object
      properties:
        model_routing_profile_id:
          $ref: '#/components/schemas/ModelRoutingProfileId'
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        access_source:
          $ref: '#/components/schemas/Union_71'
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_routing_profile_id
        - model_routing_profile_key
        - model_routing_profile_revision_number
        - access_source
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Objects_334:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_routing_profile_key
        - model_routing_profile_revision_number
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Union_363:
      type: number
      enum:
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_336:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        reason:
          $ref: '#/components/schemas/Union_364'
      required:
        - model_routing_profile_key
        - reason
      additionalProperties: false
    Union_365:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
    Objects_338:
      type: object
      properties:
        model_binding:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_binding_version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_binding
        - model_binding_version
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Objects_340:
      type: object
      properties:
        model_binding:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        reason:
          $ref: '#/components/schemas/Union_364'
      required:
        - model_binding
        - reason
      additionalProperties: false
    Objects_342:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_344:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_346:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        stop_reason:
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - end_turn
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - requires_action
                event_ids:
                  type: array
                  items:
                    $ref: '#/components/schemas/EventId'
              required:
                - type
                - event_ids
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - retries_exhausted
              required:
                - type
              additionalProperties: false
      required:
        - session_thread_id
        - agent_name
        - stop_reason
      additionalProperties: false
    Objects_348:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_350:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_352:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        frozen_context:
          anyOf:
            - $ref: '#/components/schemas/Objects_353'
            - $ref: '#/components/schemas/Objects_354'
      required:
        - approval
        - frozen_context
      additionalProperties: false
    Objects_356:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        frozen_context:
          anyOf:
            - type: object
              properties:
                action_approval_type:
                  type: string
                  enum:
                    - harness_tool
                session_id:
                  $ref: '#/components/schemas/SessionId'
                run_id:
                  $ref: '#/components/schemas/RunId'
                tool_use_id:
                  $ref: '#/components/schemas/HarnessToolUseId'
                agent_id:
                  $ref: '#/components/schemas/AgentId'
                release_number:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                agent_placement_id:
                  anyOf:
                    - $ref: '#/components/schemas/AgentInstallationId'
                    - type: 'null'
                collaboration_space_id:
                  anyOf:
                    - $ref: '#/components/schemas/SurfaceScopeId'
                    - type: 'null'
                tool:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 256
                    - pattern: ^harness:\S+$
                provider_tool_name:
                  $ref: '#/components/schemas/ProviderToolName'
                arguments_hash:
                  type: string
                  allOf:
                    - pattern: ^sha256:[0-9a-f]{64}$
                acting_principal_id:
                  $ref: '#/components/schemas/PrincipalId'
              required:
                - action_approval_type
                - session_id
                - run_id
                - tool_use_id
                - agent_id
                - release_number
                - agent_placement_id
                - collaboration_space_id
                - tool
                - provider_tool_name
                - arguments_hash
                - acting_principal_id
              additionalProperties: false
            - $ref: '#/components/schemas/Objects_353'
            - $ref: '#/components/schemas/Objects_354'
      required:
        - approval
        - frozen_context
      additionalProperties: false
    Union_366:
      type: number
      enum:
        - 43
        - 44
        - 45
        - 45
    Objects_358:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        tool_use_id:
          type: string
        decision:
          type: string
          enum:
            - approve
            - deny
        resolved_by:
          $ref: '#/components/schemas/Union_90'
        instructions:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - approval
        - tool_use_id
        - decision
        - resolved_by
        - instructions
      additionalProperties: false
    Objects_360:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
      required:
        - outcome
        - iteration
      additionalProperties: false
    Union_367:
      type: number
      enum:
        - 42
        - 44
        - 45
        - 45
    Objects_362:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
        result:
          $ref: '#/components/schemas/Union_155'
        explanation:
          type: string
        cost:
          $ref: '#/components/schemas/Objects_143'
        route:
          $ref: '#/components/schemas/Objects_193'
        input_digest:
          type: string
        report:
          $ref: '#/components/schemas/OutcomeReportResultStatus'
      required:
        - outcome
        - iteration
        - result
        - explanation
        - cost
      additionalProperties: false
    Objects_364:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
        result:
          $ref: '#/components/schemas/Union_155'
        explanation:
          type: string
        cost:
          $ref: '#/components/schemas/Objects_143'
        route:
          $ref: '#/components/schemas/Objects_196'
        input_digest:
          type: string
        report:
          $ref: '#/components/schemas/OutcomeReportResultStatus'
      required:
        - outcome
        - iteration
        - result
        - explanation
        - cost
      additionalProperties: false
    Objects_366:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        automation:
          $ref: '#/components/schemas/AutomationId'
        firing:
          $ref: '#/components/schemas/AutomationFiringId'
        originating_event:
          $ref: '#/components/schemas/EventId'
        spec:
          $ref: '#/components/schemas/Objects_126'
        model_release:
          type: object
          properties:
            model_routing_profile_id:
              $ref: '#/components/schemas/ModelRoutingProfileId'
            key:
              type: string
            revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            access:
              type: string
              enum:
                - harness_owned
            routing_policy:
              $ref: '#/components/schemas/Union_133'
            eligible_candidates:
              type: array
              prefixItems:
                - $ref: '#/components/schemas/Objects_157'
              minItems: 1
              items:
                $ref: '#/components/schemas/Objects_157'
            access_sources:
              type: array
              items:
                $ref: '#/components/schemas/Objects_40'
          required:
            - model_routing_profile_id
            - key
            - revision_number
            - routing_policy
            - eligible_candidates
          additionalProperties: false
      required:
        - review
        - automation
        - firing
        - originating_event
        - spec
        - model_release
      additionalProperties: false
    Objects_368:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        automation:
          $ref: '#/components/schemas/AutomationId'
        firing:
          $ref: '#/components/schemas/AutomationFiringId'
        session:
          $ref: '#/components/schemas/SessionId'
        originating_event:
          $ref: '#/components/schemas/EventId'
        source_run:
          $ref: '#/components/schemas/RunId'
        from_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        terminal_source_event:
          $ref: '#/components/schemas/EventId'
        evidence_format:
          type: string
          enum:
            - flow-review-evidence-v1
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - review
        - automation
        - firing
        - session
        - originating_event
        - source_run
        - from_sequence
        - through_sequence
        - terminal_source_event
        - evidence_format
        - evidence_digest
      additionalProperties: false
    Union_369:
      type: number
      enum:
        - 42
        - 44
        - 45
        - 45
    Objects_370:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        result:
          type: string
          enum:
            - passed
            - concerns
        criteria:
          type: array
          items:
            $ref: '#/components/schemas/Objects_146'
          allOf:
            - minItems: 1
            - maxItems: 16
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        through_event_id:
          $ref: '#/components/schemas/EventId'
        route:
          $ref: '#/components/schemas/Objects_193'
        usage:
          $ref: '#/components/schemas/Objects_69'
        evaluated_at:
          type: string
      required:
        - review
        - result
        - criteria
        - evidence_digest
        - through_event_id
        - route
        - usage
        - evaluated_at
      additionalProperties: false
    Objects_372:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        result:
          type: string
          enum:
            - passed
            - concerns
        criteria:
          type: array
          items:
            $ref: '#/components/schemas/Objects_146'
          allOf:
            - minItems: 1
            - maxItems: 16
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        through_event_id:
          $ref: '#/components/schemas/EventId'
        route:
          $ref: '#/components/schemas/Objects_196'
        usage:
          $ref: '#/components/schemas/Objects_69'
        evaluated_at:
          type: string
      required:
        - review
        - result
        - criteria
        - evidence_digest
        - through_event_id
        - route
        - usage
        - evaluated_at
      additionalProperties: false
    Objects_374:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        reason:
          $ref: '#/components/schemas/Union_267'
      required:
        - review
        - reason
      additionalProperties: false
    Objects_376:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_378:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_380:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_382:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
        source_state_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - watch
        - source_state_hash
      additionalProperties: false
    Objects_384:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
        reason:
          type: string
          enum:
            - duplicate
            - self_authored
            - stale_hint
            - unsafe_content
        source_state_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - watch
        - reason
      additionalProperties: false
    Objects_386:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_387'
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
      additionalProperties: false
    Objects_389:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        generation:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - branch
        - connection
        - generation
      additionalProperties: false
    Objects_391:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        proved_at:
          type: string
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - proved_at
      additionalProperties: false
    Union_370:
      type: number
      enum:
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_393:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_387'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        commit:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        pull_request_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        pull_request_url:
          type: string
          allOf:
            - pattern: ^https:\/\/\S+$
            - maxLength: 2048
        revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        watch:
          $ref: '#/components/schemas/WatchId'
        base_revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        signature:
          anyOf:
            - type: object
              properties:
                state:
                  type: string
                  enum:
                    - signed
                key_id:
                  type: string
                  allOf:
                    - minLength: 8
                    - maxLength: 64
                    - pattern: ^[0-9A-F]+$
              required:
                - state
                - key_id
              additionalProperties: false
            - type: object
              properties:
                state:
                  type: string
                  enum:
                    - skipped
                reason:
                  type: string
                  enum:
                    - signing_unconfigured
                    - signing_unavailable
                    - provider_unsupported
              required:
                - state
                - reason
              additionalProperties: false
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - commit
        - pull_request_number
        - pull_request_url
        - revision
        - base_revision
      additionalProperties: false
    Union_371:
      type: number
      enum:
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
    Objects_395:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_387'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        commit:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        pull_request_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        pull_request_url:
          type: string
          allOf:
            - pattern: ^https:\/\/\S+$
            - maxLength: 2048
        revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - commit
        - pull_request_number
        - pull_request_url
        - revision
      additionalProperties: false
    Objects_397:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_387'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        reason:
          type: string
          enum:
            - destination_diverged
            - destination_unowned
            - pull_request_ambiguous
            - stale_base
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - reason
      additionalProperties: false
    Union_372:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            mount:
              $ref: '#/components/schemas/MountId'
            project:
              $ref: '#/components/schemas/ProjectId'
            capture:
              $ref: '#/components/schemas/ProjectCaptureId'
            reason:
              $ref: '#/components/schemas/Union_373'
          required:
            - run
            - attempt
            - mount
            - project
            - capture
            - reason
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            mount:
              $ref: '#/components/schemas/MountId'
            project:
              $ref: '#/components/schemas/ProjectId'
            capture:
              $ref: '#/components/schemas/ProjectCaptureId'
            result:
              $ref: '#/components/schemas/Objects_387'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            connection:
              $ref: '#/components/schemas/ConnectionId'
            branch:
              $ref: '#/components/schemas/GitBranchName'
            reason:
              type: string
              enum:
                - authority_lost
                - capture_invalid
                - provider_budget
                - provider_rejected
                - provider_weather_exhausted
                - session_ineligible
          required:
            - run
            - attempt
            - mount
            - project
            - capture
            - result
            - acted_as
            - connection
            - branch
            - reason
          additionalProperties: false
    SpanEventType:
      type: string
      allOf:
        - pattern: ^span\.\S+$
    JsonValue:
      description: >-
        A value in the JSON data model: null, boolean, finite number, string,
        array, or object.
    Objects_401:
      type: object
      properties:
        content:
          type: string
        attachments:
          type: array
          items:
            type: string
        authored_by: false
        caused_by: false
      required:
        - content
      additionalProperties: false
    Objects_403:
      type: object
      properties:
        authored_by: false
        caused_by: false
      additionalProperties: false
    Objects_405:
      type: object
      properties:
        tool_use_id:
          type: string
        result: {}
        authored_by: false
        caused_by: false
      required:
        - tool_use_id
        - result
      additionalProperties: false
    Union_374:
      type: number
      enum:
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
    Objects_407:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_259'
        requested_by:
          $ref: '#/components/schemas/Union_103'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_255'
        agent_installation_id:
          $ref: '#/components/schemas/Union_352'
        surface_scope_id:
          $ref: '#/components/schemas/Union_353'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
      additionalProperties: false
    Objects_409:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_259'
        requested_by: false
        acted_as: false
        caused_by: false
      required:
        - run
        - trigger
      additionalProperties: false
    Objects_411:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
      required:
        - run
        - attempt
      additionalProperties: false
    Objects_413:
      type: object
      properties:
        tool:
          $ref: '#/components/schemas/Union_320'
        args: {}
      required:
        - tool
        - args
      additionalProperties: false
    Objects_415:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        stop_reason:
          $ref: '#/components/schemas/Union_262'
        cost:
          $ref: '#/components/schemas/Objects_143'
      required:
        - run
        - stop_reason
        - cost
      additionalProperties: false
    Objects_417:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        error:
          $ref: '#/components/schemas/Objects_144'
      required:
        - run
        - error
      additionalProperties: false
    Objects_419:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
      required:
        - run
        - attempt
        - action
      additionalProperties: false
    Union_375:
      type: number
      enum:
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
        - 45
    Objects_421:
      type: object
      properties:
        delivery:
          $ref: '#/components/schemas/WebhookDeliveryId'
        endpoint:
          $ref: '#/components/schemas/WebhookEndpointId'
        provider_coordinate:
          $ref: '#/components/schemas/EventId'
        delivery_grade:
          type: string
          enum:
            - at_most_once_on_ambiguity
        reason:
          type: string
          enum:
            - acknowledgement_lost
      required:
        - delivery
        - endpoint
        - provider_coordinate
        - delivery_grade
        - reason
      additionalProperties: false
    Union_376:
      type: number
      enum:
        - 43
        - 44
        - 45
    Union_377:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_258'
            requested_by:
              $ref: '#/components/schemas/Union_103'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_254'
            agent_installation_id:
              $ref: '#/components/schemas/Union_256'
            surface_scope_id:
              $ref: '#/components/schemas/Union_257'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins:
              $ref: '#/components/schemas/Objects_33'
            connected_runtime: false
            native_runtime: false
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - execution_pins
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_258'
            requested_by:
              $ref: '#/components/schemas/Union_103'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_254'
            agent_installation_id:
              $ref: '#/components/schemas/Union_256'
            surface_scope_id:
              $ref: '#/components/schemas/Union_257'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins: false
            native_runtime: false
            connected_runtime:
              $ref: '#/components/schemas/Objects_295'
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - connected_runtime
          additionalProperties: false
    Objects_424:
      type: object
      properties:
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        content_class:
          anyOf:
            - $ref: '#/components/schemas/Union_343'
            - type: 'null'
        reason:
          type: string
          enum:
            - shredded
            - zdr
        structural_replay:
          type: string
          enum:
            - complete
            - incomplete
        replay_fact:
          anyOf:
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - state_neutral
              required:
                - version
                - seq
                - kind
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - user_message
                content_length:
                  type: integer
                  allOf:
                    - minimum: 0
                authored_by:
                  anyOf:
                    - $ref: '#/components/schemas/Union_308'
                    - type: 'null'
              required:
                - version
                - seq
                - kind
                - content_length
                - authored_by
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - agent_message
                content_length:
                  type: integer
                  allOf:
                    - minimum: 0
              required:
                - version
                - seq
                - kind
                - content_length
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - system_message
              required:
                - version
                - seq
                - kind
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - user_custom_tool_result
                authored_by:
                  $ref: '#/components/schemas/Union_308'
                session_thread_id:
                  $ref: '#/components/schemas/SessionThreadId'
              required:
                - version
                - seq
                - kind
                - authored_by
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - user_tool_confirmation
                authored_by:
                  $ref: '#/components/schemas/Union_308'
              required:
                - version
                - seq
                - kind
                - authored_by
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - user_question_answer
                question:
                  $ref: '#/components/schemas/QuestionId'
                authored_by:
                  $ref: '#/components/schemas/Union_308'
              required:
                - version
                - seq
                - kind
                - question
                - authored_by
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - run_requires_action
                run:
                  $ref: '#/components/schemas/RunId'
                attempt:
                  $ref: '#/components/schemas/RunAttemptId'
                action:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - custom_tool
                        tool_use_id:
                          type: string
                      required:
                        - kind
                        - tool_use_id
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - action_approval
                        approval:
                          $ref: '#/components/schemas/ActionApprovalId'
                        tool_use_id:
                          type: string
                        on_approve:
                          type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - custom_tool
                          required:
                            - kind
                          additionalProperties: false
                      required:
                        - kind
                        - approval
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - question
                        question:
                          $ref: '#/components/schemas/QuestionId'
                      required:
                        - kind
                        - question
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - outcome_evaluation
                        outcome:
                          $ref: '#/components/schemas/OutcomeId'
                        iteration:
                          type: integer
                          allOf:
                            - minimum: 0
                      required:
                        - kind
                        - outcome
                        - iteration
                      additionalProperties: false
                cost:
                  $ref: '#/components/schemas/Objects_143'
              required:
                - version
                - seq
                - kind
                - run
                - attempt
                - action
                - cost
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - run_failed
                run:
                  $ref: '#/components/schemas/RunId'
                attempt:
                  anyOf:
                    - $ref: '#/components/schemas/RunAttemptId'
                    - type: 'null'
                error_type:
                  $ref: '#/components/schemas/Union_213'
              required:
                - version
                - seq
                - kind
                - run
                - attempt
                - error_type
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - run_attempt_requeued
                run:
                  $ref: '#/components/schemas/RunId'
                attempt:
                  $ref: '#/components/schemas/RunAttemptId'
                error_type:
                  $ref: '#/components/schemas/Union_213'
              required:
                - version
                - seq
                - kind
                - run
                - attempt
                - error_type
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - approval_resolved
                approval:
                  $ref: '#/components/schemas/ActionApprovalId'
                participant:
                  anyOf:
                    - $ref: '#/components/schemas/PrincipalId'
                    - type: 'null'
              required:
                - version
                - seq
                - kind
                - approval
                - participant
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - user_define_outcome
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                authored_by:
                  $ref: '#/components/schemas/Union_308'
                max_iterations:
                  type: integer
                  allOf:
                    - minimum: 1
                      maximum: 20
              required:
                - version
                - seq
                - kind
                - outcome
                - authored_by
                - max_iterations
              additionalProperties: false
            - type: object
              properties:
                version:
                  type: number
                  enum:
                    - 1
                seq:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                kind:
                  type: string
                  enum:
                    - outcome_evaluation_completed
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                iteration:
                  type: integer
                  allOf:
                    - minimum: 0
                result:
                  type: string
                  enum:
                    - satisfied
                    - needs_revision
                    - max_iterations_reached
                    - failed
                    - interrupted
                report_summary:
                  anyOf:
                    - $ref: '#/components/schemas/OutcomeReportSummaryCounts'
                    - type: 'null'
              required:
                - version
                - seq
                - kind
                - outcome
                - iteration
                - result
                - report_summary
              additionalProperties: false
        prompt_integrity:
          anyOf:
            - type: object
              properties:
                analyzer_version:
                  type: string
                  enum:
                    - unicode-17.0.0-uts39-r32-checkfu-1
                disposition:
                  $ref: '#/components/schemas/Union_298'
              required:
                - analyzer_version
                - disposition
              additionalProperties: false
            - type: 'null'
      required:
        - seq
        - content_class
        - reason
      additionalProperties: false
    Union_65:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/MessageContentBlocks'
    Union_298:
      type: string
      enum:
        - accepted_normalization
        - preserved_original
    Union_200:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - mixed_script_confusable
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            replacement:
              type: string
              allOf:
                - maxLength: 5
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
            - replacement
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - bidirectional_control
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
          additionalProperties: false
    ConnectedRuntimeId:
      type: string
      allOf:
        - pattern: ^crt_[0-9a-f]{32}$
    HostContextData:
      type: object
      additionalProperties:
        type: string
        allOf:
          - maxLength: 4096
      allOf:
        - propertyNames:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 128
    Union_308:
      anyOf:
        - $ref: '#/components/schemas/PrincipalId'
        - $ref: '#/components/schemas/ApiKeyId'
        - $ref: '#/components/schemas/AutomationId'
        - $ref: '#/components/schemas/AgentInstallationId'
    Union_255:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api
            request_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - external_event
            external_installation_id:
              $ref: '#/components/schemas/CollaborationInstallationId'
            surface_scope_id:
              $ref: '#/components/schemas/SurfaceScopeId'
            external_event_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - external_installation_id
            - surface_scope_id
            - external_event_id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - watch
            watch:
              $ref: '#/components/schemas/WatchId'
            source_state_hash:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - watch
            - source_state_hash
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session_thread
            session:
              $ref: '#/components/schemas/SessionId'
            session_thread_id:
              $ref: '#/components/schemas/SessionThreadId'
            run:
              $ref: '#/components/schemas/RunId'
          required:
            - kind
            - session
            - session_thread_id
            - run
          additionalProperties: false
    SurfaceScopeId:
      type: string
      allOf:
        - pattern: ^surf_[0-9a-f]{32}$
    Union_254:
      anyOf:
        - $ref: '#/components/schemas/Union_255'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - action_approval
            approval:
              $ref: '#/components/schemas/ActionApprovalId'
          required:
            - kind
            - approval
          additionalProperties: false
    QuestionId:
      type: string
      allOf:
        - pattern: ^qst_[0-9a-f]{32}$
    ManagedQuestionAnswers:
      type: array
      items:
        type: object
        properties:
          id:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[A-Za-z0-9_-]+$
          values:
            type: array
            items:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            allOf:
              - minItems: 1
              - maxItems: 32
        required:
          - id
          - values
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 4
    OutcomeId:
      type: string
      allOf:
        - pattern: ^outc_[0-9a-f]{32}$
    OutcomeDescription:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 4096
          description: >-
            A non-empty, at-most-4,096-character definition of the Outcome's
            done state.
    OutcomeReportDistinctOutputKeys:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - string
              acceptance:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - one_of
                  values:
                    $ref: >-
                      #/components/schemas/OutcomeReportDistinctStringAcceptanceValues
                required:
                  - kind
                  - values
                additionalProperties: false
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - integer
              acceptance:
                $ref: '#/components/schemas/OutcomeReportNumericAcceptanceRange'
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - number
              acceptance:
                $ref: '#/components/schemas/OutcomeReportNumericAcceptanceRange'
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - boolean
              acceptance:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - equals
                  value:
                    type: boolean
                required:
                  - kind
                  - value
                additionalProperties: false
            required:
              - key
              - title
              - type
            additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 32
    SubagentId:
      type: string
      allOf:
        - pattern: ^subg_[0-9a-f]{32}$
    Objects_193:
      type: object
      properties:
        model_routing_profile_key:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
        access_source:
          $ref: '#/components/schemas/Union_71'
      required:
        - model_routing_profile_key
        - model
        - tier
        - reason
        - access_source
      additionalProperties: false
    Objects_69:
      type: object
      properties:
        input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cached_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cache_write_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        output_tokens:
          type: integer
          allOf:
            - minimum: 0
        reasoning_output_tokens:
          type: integer
          allOf:
            - minimum: 0
        total_tokens:
          type: integer
          allOf:
            - minimum: 0
      required:
        - input_tokens
        - cached_input_tokens
        - cache_write_input_tokens
        - output_tokens
        - reasoning_output_tokens
        - total_tokens
      additionalProperties: false
    Objects_196:
      type: object
      properties:
        model_routing_profile_key:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
      required:
        - model_routing_profile_key
        - model
        - tier
        - reason
      additionalProperties: false
    Union_320:
      anyOf:
        - type: string
          allOf:
            - pattern: ^conn_[0-9a-f]{32}:\S+$
        - type: string
          allOf:
            - pattern: ^harness:\S+$
    ProviderToolName:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 256
    Objects_144:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/Union_213'
        message:
          type: string
        more:
          type: string
          allOf:
            - pattern: ^https:\/\/docs\.checkfu\.com\/reference\/errors#[a-z0-9-]+$
      required:
        - type
        - message
      additionalProperties: false
    ManagedQuestionItems:
      type: array
      items:
        type: object
        properties:
          id:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[A-Za-z0-9_-]+$
          prompt:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 4096
          header:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 4096
          options:
            type: array
            items:
              type: object
              properties:
                label:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                description:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
              required:
                - label
              additionalProperties: false
            allOf:
              - maxItems: 32
          allow_multiple:
            type: boolean
        required:
          - id
          - prompt
          - options
          - allow_multiple
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 4
    Union_262:
      type: string
      enum:
        - end_turn
        - requires_action
        - interrupted
        - retries_exhausted
        - max_tokens
        - max_turn_requests
        - refusal
        - error
        - budget_reached
    Union_213:
      type: string
      enum:
        - validation.malformed
        - validation.prompt_integrity_review_required
        - validation.not_found
        - validation.conflict
        - validation.idempotency_conflict
        - validation.idempotency_in_progress
        - validation.payload_too_large
        - validation.range_too_large
        - auth.invalid_key
        - auth.disabled_tenancy
        - policy.denied
        - budget.exceeded
        - model.no_eligible_model
        - model.credential_rejected
        - model.platform_supply_unavailable
        - model.platform_capacity_reached
        - billing.entitlement_unavailable
        - billing.usage_limit_reached
        - billing.payment_required
        - billing.seat_activation_unavailable
        - memory.not_found
        - memory.conflict
        - memory.read_only
        - memory.invalid_path
        - memory.backend_unavailable
        - memory.curation_failed
        - runtime.invalid_transition
        - runtime.primary_thread
        - runtime.checkpoint_expired
        - runtime.session_history_unavailable
        - runtime.harness_unavailable
        - runtime.harness_failed
        - runtime.runner_unavailable
        - runtime.lease_lost
        - runtime.start_timeout
        - runtime.provisioning_suspended
        - runtime.turn_deadline_exceeded
        - runtime.observation_gap
        - runtime.observation_conflict
        - runtime.attestation_invalid
        - runtime.harness_incompatible
        - runtime.internal
    ApiKeyId:
      type: string
      allOf:
        - pattern: ^akey_[0-9a-f]{32}$
    OrganizationId:
      type: string
      allOf:
        - pattern: ^org_[0-9a-f]{32}$
    Union_15:
      type: string
      enum:
        - root
        - admin
        - developer
        - runner
        - viewer
    Union_16:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - organization
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - workspace
            workspace_id:
              $ref: '#/components/schemas/WorkspaceId'
          required:
            - type
            - workspace_id
          additionalProperties: false
    AutomationId:
      type: string
      allOf:
        - pattern: ^auto_[0-9a-f]{32}$
    AgentInstallationId:
      type: string
      allOf:
        - pattern: ^aini_[0-9a-f]{32}$
    Union_342:
      anyOf:
        - type: object
          properties:
            mode:
              type: string
              enum:
                - zdr
          required:
            - mode
          additionalProperties: false
        - type: object
          properties:
            mode:
              type: string
              enum:
                - standard
            default_ttl_seconds:
              type: integer
              allOf:
                - exclusiveMinimum: 0
                - maximum: 2147483647
            overrides:
              type: array
              items:
                type: object
                properties:
                  content_class:
                    $ref: '#/components/schemas/Union_343'
                  ttl_seconds:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                      - maximum: 2147483647
                required:
                  - content_class
                  - ttl_seconds
                additionalProperties: false
          required:
            - mode
          additionalProperties: false
    BetaManagedAgentsSessionAgent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AgentId'
        description:
          $ref: '#/components/schemas/Union_31'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_5'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfig'
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        skills:
          $ref: '#/components/schemas/Arrays_6'
        system:
          $ref: '#/components/schemas/Union_33'
        tools:
          $ref: '#/components/schemas/Arrays_7'
        multiagent:
          anyOf:
            - $ref: >-
                #/components/schemas/BetaManagedAgentsSessionMultiagentCoordinator
            - type: 'null'
        type:
          type: string
          enum:
            - agent
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - id
        - description
        - mcp_servers
        - model
        - name
        - skills
        - system
        - tools
        - multiagent
        - type
        - version
      additionalProperties: false
    BetaEnvironment:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EnvironmentId'
        archived_at:
          anyOf:
            - type: string
            - type: 'null'
        config:
          $ref: '#/components/schemas/BetaEnvironmentConfig'
        created_at:
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        name:
          type: string
        type:
          type: string
          enum:
            - environment
        updated_at:
          type: string
        scope:
          $ref: '#/components/schemas/BetaEnvironmentScope'
      required:
        - id
        - archived_at
        - config
        - created_at
        - description
        - metadata
        - name
        - type
        - updated_at
      additionalProperties: false
    Union_37:
      anyOf:
        - type: object
          properties:
            name:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            display_name:
              type: string
              allOf:
                - minLength: 1
            description:
              type: string
              allOf:
                - minLength: 1
            launch_role:
              $ref: '#/components/schemas/HarnessLaunchRole'
            tier:
              $ref: '#/components/schemas/Union_38'
            mode:
              type: string
              enum:
                - managed
            availability:
              type: string
              enum:
                - ready
            adoption:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - managed
                artifact:
                  $ref: '#/components/schemas/Objects_20'
                driver_version:
                  type: string
                  allOf:
                    - minLength: 1
                default_configuration:
                  $ref: '#/components/schemas/HarnessConfiguration'
                configuration_schema:
                  $ref: '#/components/schemas/Union_39'
              required:
                - kind
                - artifact
                - driver_version
                - default_configuration
                - configuration_schema
              additionalProperties: false
            capability_ceiling:
              $ref: '#/components/schemas/Objects_21'
          required:
            - name
            - display_name
            - description
            - launch_role
            - tier
            - mode
            - availability
            - adoption
            - capability_ceiling
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            display_name:
              type: string
              allOf:
                - minLength: 1
            description:
              type: string
              allOf:
                - minLength: 1
            launch_role:
              $ref: '#/components/schemas/HarnessLaunchRole'
            tier:
              $ref: '#/components/schemas/Union_38'
            mode:
              $ref: '#/components/schemas/Union_40'
            capability_ceiling:
              $ref: '#/components/schemas/Objects_21'
            availability:
              type: string
              enum:
                - image_required
            adoption:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - oci_recipe
                upstream_project:
                  type: string
                  allOf:
                    - minLength: 1
                upstream_revision:
                  type: string
                  allOf:
                    - minLength: 1
                recipe:
                  $ref: '#/components/schemas/Objects_22'
                image_contract:
                  $ref: '#/components/schemas/Union_41'
                driver_version:
                  type: string
                  allOf:
                    - minLength: 1
                default_configuration:
                  $ref: '#/components/schemas/HarnessConfiguration'
                configuration_schema:
                  $ref: '#/components/schemas/Union_39'
                default_image:
                  type: 'null'
              required:
                - kind
                - upstream_project
                - upstream_revision
                - recipe
                - image_contract
                - driver_version
                - default_configuration
                - configuration_schema
                - default_image
              additionalProperties: false
          required:
            - name
            - display_name
            - description
            - launch_role
            - tier
            - mode
            - capability_ceiling
            - availability
            - adoption
          additionalProperties: false
        - $ref: '#/components/schemas/HarnessCatalogReadinessReceiptCoordinates'
        - type: object
          properties:
            name:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            display_name:
              type: string
              allOf:
                - minLength: 1
            description:
              type: string
              allOf:
                - minLength: 1
            launch_role:
              $ref: '#/components/schemas/HarnessLaunchRole'
            tier:
              $ref: '#/components/schemas/Union_38'
            mode:
              $ref: '#/components/schemas/Union_40'
            capability_ceiling:
              $ref: '#/components/schemas/Objects_21'
            availability:
              type: string
              enum:
                - blocked
            missing_evidence:
              type: string
              allOf:
                - minLength: 1
            adoption:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - oci_recipe
                upstream_project:
                  type: string
                  allOf:
                    - minLength: 1
                upstream_revision:
                  type: string
                  allOf:
                    - minLength: 1
                recipe:
                  $ref: '#/components/schemas/Objects_22'
                image_contract:
                  $ref: '#/components/schemas/Union_41'
                driver_version:
                  type: string
                  allOf:
                    - minLength: 1
                default_configuration:
                  $ref: '#/components/schemas/HarnessConfiguration'
                configuration_schema:
                  $ref: '#/components/schemas/Union_39'
                default_image:
                  $ref: '#/components/schemas/OciImageReference'
              required:
                - kind
                - upstream_project
                - upstream_revision
                - recipe
                - image_contract
                - driver_version
                - default_configuration
                - configuration_schema
                - default_image
              additionalProperties: false
          required:
            - name
            - display_name
            - description
            - launch_role
            - tier
            - mode
            - capability_ceiling
            - availability
            - missing_evidence
            - adoption
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            display_name:
              type: string
              allOf:
                - minLength: 1
            description:
              type: string
              allOf:
                - minLength: 1
            launch_role:
              $ref: '#/components/schemas/HarnessLaunchRole'
            tier:
              $ref: '#/components/schemas/Union_38'
            mode:
              type: string
              enum:
                - connected
            adoption:
              $ref: '#/components/schemas/Objects_24'
            capability_ceiling:
              $ref: '#/components/schemas/Objects_21'
            availability:
              type: string
              enum:
                - ready
          required:
            - name
            - display_name
            - description
            - launch_role
            - tier
            - mode
            - adoption
            - capability_ceiling
            - availability
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            display_name:
              type: string
              allOf:
                - minLength: 1
            description:
              type: string
              allOf:
                - minLength: 1
            launch_role:
              $ref: '#/components/schemas/HarnessLaunchRole'
            tier:
              $ref: '#/components/schemas/Union_38'
            mode:
              type: string
              enum:
                - connected
            adoption:
              $ref: '#/components/schemas/Objects_24'
            capability_ceiling:
              $ref: '#/components/schemas/Objects_21'
            availability:
              type: string
              enum:
                - blocked
            missing_plane:
              type: string
              allOf:
                - minLength: 1
          required:
            - name
            - display_name
            - description
            - launch_role
            - tier
            - mode
            - adoption
            - capability_ceiling
            - availability
            - missing_plane
          additionalProperties: false
    PublicWorkloadTrustAdmission:
      type: object
      properties:
        declaration:
          $ref: '#/components/schemas/Union_34'
        facts:
          $ref: '#/components/schemas/WorkloadTrustFacts'
        effective:
          $ref: '#/components/schemas/WorkloadTrust'
      required:
        - declaration
        - facts
        - effective
      additionalProperties: false
    CurrentTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: A canonical UTC ISO-8601 timestamp with millisecond precision.
    RunId:
      type: string
      allOf:
        - pattern: ^run_[0-9a-f]{32}$
    CheckpointId:
      type: string
      allOf:
        - pattern: ^ckpt_[0-9a-f]{32}$
    MountId:
      type: string
      allOf:
        - pattern: ^mnt_[0-9a-f]{32}$
    ProjectId:
      type: string
      allOf:
        - pattern: ^prj_[0-9a-f]{32}$
    MountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    Union_226:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - latest
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - pinned
            revision:
              type: integer
              allOf:
                - exclusiveMinimum: 0
          required:
            - kind
            - revision
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - ref
            ref:
              $ref: '#/components/schemas/GitReference'
          required:
            - kind
            - ref
          additionalProperties: false
    Union_227:
      type: string
      enum:
        - read_only
        - read_write
    Objects_127:
      type: object
      properties:
        kind:
          type: string
          enum:
            - pull_request
        commit_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        pull_request_title:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        pull_request_body:
          type: string
          allOf:
            - maxLength: 16384
      required:
        - kind
      additionalProperties: false
    FileId:
      type: string
      allOf:
        - pattern: ^file_[0-9a-f]{32}$
    Objects_253:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        requested:
          $ref: '#/components/schemas/Union_228'
        effective:
          $ref: '#/components/schemas/Union_228'
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        mount_path:
          $ref: '#/components/schemas/MountPath'
      required:
        - store
        - requested
        - effective
      additionalProperties: false
    Objects_163:
      type: object
      properties:
        kind:
          type: string
          enum:
            - tool
            - skill
        ref:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 512
      required:
        - kind
        - ref
      additionalProperties: false
    Union_191:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - upload
          required:
            - kind
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_110'
    Objects_110:
      type: object
      properties:
        kind:
          type: string
          enum:
            - git
        provider:
          type: string
          enum:
            - github
        repository:
          $ref: '#/components/schemas/GitHubRepository'
        ref:
          $ref: '#/components/schemas/GitReference'
        commit_sha:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        tree_sha:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
      required:
        - kind
        - provider
        - repository
        - ref
        - commit_sha
      additionalProperties: false
    ResolvedSkillsMountIntegrity:
      type: object
      properties:
        kind:
          type: string
          enum:
            - skills
        mount_path:
          $ref: '#/components/schemas/MountPath'
        skills:
          type: array
          items:
            type: object
            properties:
              skill_id:
                $ref: '#/components/schemas/SkillId'
              name:
                type: string
                allOf:
                  - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
              skill_kind:
                $ref: '#/components/schemas/Union_143'
              version:
                type: integer
                allOf:
                  - exclusiveMinimum: 0
              content_sha256:
                type: string
                allOf:
                  - pattern: ^sha256:[0-9a-f]{64}$
            required:
              - skill_id
              - name
              - skill_kind
              - version
              - content_sha256
            additionalProperties: false
          allOf:
            - minItems: 1
      required:
        - kind
        - mount_path
        - skills
      additionalProperties: false
    MemoryStoreId:
      type: string
      allOf:
        - pattern: ^memstore_[0-9a-f]{32}$
    Union_228:
      type: string
      enum:
        - read_only
        - read_write
    MemoryRevisionId:
      type: string
      allOf:
        - pattern: ^mrev_[0-9a-f]{32}$
    MemoryPath:
      type: string
    Union_116:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - canonical
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session
            session:
              $ref: '#/components/schemas/SessionId'
          required:
            - kind
            - session
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - proposal
            proposal:
              $ref: '#/components/schemas/MemoryProposalId'
          required:
            - kind
            - proposal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - curation
            run:
              $ref: '#/components/schemas/CurationRunId'
          required:
            - kind
            - run
          additionalProperties: false
    MemoryProposalId:
      type: string
      allOf:
        - pattern: ^mprop_[0-9a-f]{32}$
    Union_114:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            principal:
              $ref: '#/components/schemas/PrincipalId'
          required:
            - kind
            - principal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api_key
            key:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - key
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session_agent
            session:
              $ref: '#/components/schemas/SessionId'
            agent:
              $ref: '#/components/schemas/AgentId'
          required:
            - kind
            - session
            - agent
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - curator
            run:
              $ref: '#/components/schemas/CurationRunId'
          required:
            - kind
            - run
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - platform
            operation:
              type: string
              enum:
                - import
                - redaction
          required:
            - kind
            - operation
          additionalProperties: false
    CurationRunId:
      type: string
      allOf:
        - pattern: ^mcur_[0-9a-f]{32}$
    RunAttemptId:
      type: string
      allOf:
        - pattern: ^ratt_[0-9a-f]{32}$
    Objects_158:
      type: object
      properties:
        unit:
          $ref: '#/components/schemas/Union_285'
        quantity_millionths:
          type: integer
          allOf:
            - minimum: 0
      required:
        - unit
        - quantity_millionths
      additionalProperties: false
    Objects_286:
      type: object
      properties:
        source:
          anyOf:
            - type: string
              enum:
                - openai
                - anthropic
                - google
                - openrouter
                - replay
            - type: string
              pattern: ^extension:[\s\S]*?$
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        bytes:
          type: integer
          allOf:
            - minimum: 0
      required:
        - source
        - content_digest
        - bytes
      additionalProperties: false
    ToolInvocationId:
      type: string
      allOf:
        - pattern: ^tinv_[0-9a-f]{32}$
    ConnectionId:
      type: string
      allOf:
        - pattern: ^conn_[0-9a-f]{32}$
    ToolSourceId:
      type: string
      allOf:
        - pattern: ^ts_[0-9a-f]{32}$
    Union_276:
      type: string
      enum:
        - builtin
        - executor
        - connector
    Union_259:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - question
            question:
              $ref: '#/components/schemas/QuestionId'
          required:
            - kind
            - question
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - outcome
            outcome:
              $ref: '#/components/schemas/OutcomeId'
          required:
            - kind
            - outcome
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - watch
            watch:
              $ref: '#/components/schemas/WatchId'
            source_state_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
          required:
            - kind
            - watch
            - source_state_hash
          additionalProperties: false
    Union_103:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            principal:
              $ref: '#/components/schemas/PrincipalId'
          required:
            - kind
            - principal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - system
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - name
          additionalProperties: false
    PrincipalId:
      type: string
      allOf:
        - pattern: ^prin_[0-9a-f]{32}$
    Union_352:
      anyOf:
        - $ref: '#/components/schemas/AgentInstallationId'
        - type: 'null'
    Union_353:
      anyOf:
        - $ref: '#/components/schemas/SurfaceScopeId'
        - type: 'null'
    Objects_33:
      type: object
      properties:
        agent_id:
          $ref: '#/components/schemas/AgentId'
        agent_release_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness_profile_id:
          $ref: '#/components/schemas/HarnessProfileId'
        harness_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness_release_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        harness_driver_version:
          type: string
        sandbox_profile_id:
          $ref: '#/components/schemas/SandboxProfileId'
        sandbox_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        sandbox_image_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        model_routing_profile_id:
          $ref: '#/components/schemas/ModelRoutingProfileId'
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        plane_policy_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        selected_skills:
          $ref: '#/components/schemas/Arrays_10'
        selected_tools:
          $ref: '#/components/schemas/Arrays_11'
        instructions_sha256:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - agent_id
        - agent_release_number
        - harness_profile_id
        - harness_profile_revision_number
        - harness_release_digest
        - harness_driver_version
        - sandbox_profile_id
        - sandbox_profile_revision_number
        - sandbox_image_digest
        - model_routing_profile_id
        - model_routing_profile_revision_number
        - plane_policy_hash
      additionalProperties: false
    Objects_295:
      type: object
      properties:
        kind:
          type: string
          enum:
            - connected
        protocol:
          type: string
          enum:
            - acp-v1
        runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
      required:
        - kind
        - protocol
      additionalProperties: false
    SandboxProfileId:
      type: string
      allOf:
        - pattern: ^sprof_[0-9a-f]{32}$
    Arrays_10:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
    Arrays_11:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
    RunnerPoolId:
      type: string
      allOf:
        - pattern: ^rpool_[0-9a-f]{32}$
    Objects_43:
      type: object
      properties:
        provider_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        provider_revision:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        materialization_revision:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        placement:
          $ref: '#/components/schemas/Union_18'
        runtime_assurances:
          $ref: '#/components/schemas/Objects_9'
        runner_pool:
          $ref: '#/components/schemas/RunnerPoolId'
      required:
        - provider_id
        - provider_revision
        - materialization_revision
        - placement
        - runner_pool
      additionalProperties: false
    Objects_21:
      type: object
      properties:
        event_fidelity:
          type: string
          enum:
            - native
            - structured
            - text_only
            - minimal
        continuation:
          type: string
          enum:
            - in_flight
            - next_turn
            - rebuild_only
        checkpoint:
          type: string
          enum:
            - process_and_disk
            - disk_only
            - conversation_only
            - none
        approval_delivery:
          type: string
          enum:
            - park
            - snapshot_release
            - end_reinject
            - unsupported
        interrupt:
          type: string
          enum:
            - cooperative
            - kill_only
        mid_run_input:
          type: string
          enum:
            - native
            - turn_boundary_only
            - unsupported
        model_control:
          type: string
          enum:
            - platform_enforced
            - compatible
            - opaque
            - harness_owned
        usage_authority:
          type: string
          enum:
            - platform_observed
            - harness_reported
            - unknown
        multiagent_shared_environment:
          type: boolean
        subagents:
          type: string
          enum:
            - observed
            - flatten
      required:
        - event_fidelity
        - continuation
        - checkpoint
        - approval_delivery
        - interrupt
        - mid_run_input
        - model_control
        - usage_authority
        - multiagent_shared_environment
      additionalProperties: false
    Objects_143:
      type: object
      properties:
        tokens:
          type: integer
          allOf:
            - minimum: 0
        tool_calls:
          type: integer
          allOf:
            - minimum: 0
        active_ms:
          type: integer
          allOf:
            - minimum: 0
      additionalProperties: false
    ActionApprovalId:
      anyOf:
        - $ref: '#/components/schemas/NonBrowserActionApprovalId'
        - $ref: '#/components/schemas/BrowserActionApprovalId'
      description: >-
        an ActionApprovalId of the form approval_<32 hex chars> or bapproval_<32
        hex chars>
    Union_72:
      type: string
      enum:
        - post_materialize
        - pre_writeback
    Union_361:
      type: string
      enum:
        - passed
        - failed
        - timed_out
        - slot_unavailable
        - skipped
    Union_73:
      type: string
      enum:
        - abort
        - continue
    SandboxLifecycleHookOutput:
      type: string
      allOf:
        - maxLength: 8192
    MessageContentBlocks:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              type:
                type: string
                enum:
                  - text
              text:
                $ref: '#/components/schemas/MessageContentPlainTextData'
            required:
              - type
              - text
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - image
              source:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - base64
                      media_type:
                        type: string
                        enum:
                          - image/png
                          - image/jpeg
                          - image/gif
                          - image/webp
                      data:
                        $ref: '#/components/schemas/MessageContentBase64Data'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - url
                      url:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 2048
                    required:
                      - type
                      - url
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - file
                      file_id:
                        $ref: '#/components/schemas/FileId'
                    required:
                      - type
                      - file_id
                    additionalProperties: false
            required:
              - type
              - source
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - document
              source:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - base64
                      media_type:
                        type: string
                        enum:
                          - application/pdf
                      data:
                        $ref: '#/components/schemas/MessageContentBase64Data'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - text
                      media_type:
                        type: string
                        enum:
                          - text/plain
                      data:
                        $ref: '#/components/schemas/MessageContentPlainTextData'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - url
                      url:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 2048
                    required:
                      - type
                      - url
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - file
                      file_id:
                        $ref: '#/components/schemas/FileId'
                    required:
                      - type
                      - file_id
                    additionalProperties: false
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 1024
              context:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
            required:
              - type
              - source
            additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 32
    ModelRoutingProfileId:
      type: string
      allOf:
        - pattern: ^mrp_[0-9a-f]{32}$
    Union_71:
      anyOf:
        - $ref: '#/components/schemas/Objects_40'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - platform_supply
            provider:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            usage_entry_id:
              $ref: '#/components/schemas/UsageEntryId'
            supply_id:
              $ref: '#/components/schemas/PlatformSupplyId'
            credential_generation_id:
              $ref: '#/components/schemas/SupplyCredentialGenerationId'
            rate_card_id:
              $ref: '#/components/schemas/BillingRateCardId'
            rated_at:
              $ref: '#/components/schemas/PlatformModelRatedAt'
          required:
            - kind
            - provider
            - usage_entry_id
            - supply_id
            - credential_generation_id
            - rate_card_id
            - rated_at
          additionalProperties: false
    Union_364:
      type: string
      enum:
        - binding_unavailable
        - model_refused
        - budget
        - consultation_unrecorded
        - not_available
    Objects_353:
      type: object
      properties:
        connection:
          $ref: '#/components/schemas/ConnectionId'
        tool:
          $ref: '#/components/schemas/Union_320'
        arg_hash:
          type: string
        principal:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - connection
        - tool
        - arg_hash
        - principal
      additionalProperties: false
    Objects_354:
      type: object
      properties:
        kind:
          type: string
          enum:
            - custom_tool
        session:
          $ref: '#/components/schemas/SessionId'
        run:
          $ref: '#/components/schemas/RunId'
        tool_use_id:
          type: string
        agent_definition:
          $ref: '#/components/schemas/AgentId'
        tool:
          $ref: '#/components/schemas/Union_320'
        arg_hash:
          type: string
        principal:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - kind
        - session
        - run
        - tool_use_id
        - agent_definition
        - tool
        - arg_hash
        - principal
      additionalProperties: false
    HarnessToolUseId:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 256
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    Union_90:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - system
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api_key
            id:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            id:
              $ref: '#/components/schemas/PrincipalId'
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - console_user
            id:
              type: string
              allOf:
                - minLength: 1
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - operator
            id:
              type: string
              allOf:
                - minLength: 1
          required:
            - kind
            - id
          additionalProperties: false
    Union_155:
      type: string
      enum:
        - satisfied
        - needs_revision
        - max_iterations_reached
        - failed
        - interrupted
    OutcomeReportResultStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - accepted
            - rejected
        extraction:
          type: string
          enum:
            - json
            - model
        outputs:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - invalid
                  key:
                    type: string
                    allOf:
                      - pattern: ^[a-z][a-z0-9_]{0,49}$
                  title:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 200
                  type:
                    type: string
                    enum:
                      - string
                      - integer
                      - number
                      - boolean
                  reason:
                    type: string
                    enum:
                      - source_invalid
                      - missing
                      - type_mismatch
                      - not_integer
                  accepted:
                    type: boolean
                    enum:
                      - false
                required:
                  - kind
                  - key
                  - title
                  - type
                  - reason
                  - accepted
                additionalProperties: false
              - anyOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - string
                      value:
                        type: string
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - integer
                      value:
                        type: integer
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - number
                      value:
                        type: number
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - boolean
                      value:
                        type: boolean
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
          allOf:
            - minItems: 1
            - maxItems: 32
      required:
        - status
        - extraction
        - outputs
      additionalProperties: false
    FlowReviewId:
      type: string
      allOf:
        - pattern: ^flrev_[0-9a-f]{32}$
    AutomationFiringId:
      type: string
      allOf:
        - pattern: ^afire_[0-9a-f]{32}$
    Objects_126:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        tier:
          $ref: '#/components/schemas/Union_134'
        criteria:
          $ref: '#/components/schemas/UniqueFlowReviewCriteria'
      required:
        - model_routing_profile_key
        - criteria
      additionalProperties: false
    Union_133:
      type: string
      enum:
        - cheapest_sufficient
        - pinned
        - fallback
    Objects_157:
      type: object
      properties:
        tier:
          $ref: '#/components/schemas/Union_134'
        provider:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        effort:
          type: string
          enum:
            - minimal
            - low
            - medium
            - high
            - max
        speed:
          type: string
          enum:
            - standard
            - fast
      required:
        - tier
        - provider
        - model
      additionalProperties: false
    Objects_40:
      type: object
      properties:
        kind:
          type: string
          enum:
            - workspace_credential
        provider:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_credential_id:
          $ref: '#/components/schemas/ModelCredentialId'
        model_credential_generation_id:
          $ref: '#/components/schemas/ModelCredentialGenerationId'
      required:
        - kind
        - provider
        - model_credential_id
        - model_credential_generation_id
      additionalProperties: false
    Objects_146:
      type: object
      properties:
        key:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 64
            - pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
        result:
          type: string
          enum:
            - pass
            - concern
            - unknown
        explanation:
          type: string
          allOf:
            - maxLength: 512
        event_ids:
          type: array
          items:
            $ref: '#/components/schemas/EventId'
          allOf:
            - maxItems: 16
      required:
        - key
        - result
        - explanation
        - event_ids
      additionalProperties: false
    Union_267:
      type: string
      enum:
        - evidence_unavailable
        - evidence_unsupported
        - evidence_too_large
        - source_erased
        - reviewer_unavailable
    WatchId:
      type: string
      allOf:
        - pattern: ^wch_[0-9a-f]{32}$
    ProjectCaptureId:
      type: string
      allOf:
        - pattern: ^pcap_[0-9a-f]{32}$
    Objects_387:
      type: object
      properties:
        kind:
          type: string
          enum:
            - changes
        capture_id:
          $ref: '#/components/schemas/ProjectCaptureId'
        manifest_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        operation_count:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 2048
        put_count:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 1024
        reserved_bytes:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 20971520
        sealed_at:
          $ref: '#/components/schemas/ProjectCaptureTimestamp'
      required:
        - kind
        - capture_id
        - manifest_digest
        - operation_count
        - put_count
        - reserved_bytes
        - sealed_at
      additionalProperties: false
    GitBranchName:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    Union_373:
      type: string
      enum:
        - ineligible_mount
        - nested_mount
        - listing_failed
        - listing_invalid
        - incomplete_listing
        - invalid_path
        - unsupported_entry
        - duplicate_path
        - path_conflict
        - file_limit
        - file_too_large
        - tree_too_large
        - operation_limit
        - read_failed
        - missing_body
        - body_size_mismatch
        - body_digest_mismatch
        - digest_unavailable
        - manifest_invalid
        - capture_unavailable
        - capture_invalid
        - authority_lost
        - retention_refused
        - transfer_unavailable
    WebhookDeliveryId:
      type: string
      allOf:
        - pattern: ^wdel_[0-9a-f]{32}$
    WebhookEndpointId:
      type: string
      allOf:
        - pattern: ^whe_[0-9a-f]{32}$
    Union_258:
      anyOf:
        - $ref: '#/components/schemas/Union_259'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - action_approval
            approval:
              $ref: '#/components/schemas/ActionApprovalId'
          required:
            - kind
            - approval
          additionalProperties: false
    Union_256:
      anyOf:
        - $ref: '#/components/schemas/AgentInstallationId'
        - type: 'null'
    Union_257:
      anyOf:
        - $ref: '#/components/schemas/SurfaceScopeId'
        - type: 'null'
    Union_343:
      type: string
      enum:
        - message
        - thinking
        - tool_arguments
        - tool_result
        - artifact
        - checkpoint
        - file_body
        - memory_document
        - sandbox_state
        - wire_frame
    OutcomeReportSummaryCounts:
      type: object
      properties:
        status:
          type: string
          enum:
            - accepted
            - rejected
        output_count:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 32
        accepted_count:
          type: integer
          allOf:
            - minimum: 0
      required:
        - status
        - output_count
        - accepted_count
      additionalProperties: false
    CollaborationInstallationId:
      type: string
      allOf:
        - pattern: ^exti_[0-9a-f]{32}$
    OutcomeReportDistinctStringAcceptanceValues:
      type: array
      items:
        type: string
      allOf:
        - minItems: 1
        - maxItems: 32
    OutcomeReportNumericAcceptanceRange:
      type: object
      properties:
        kind:
          type: string
          enum:
            - range
        minimum:
          type: number
        maximum:
          type: number
      required:
        - kind
      additionalProperties: false
    Union_31:
      anyOf:
        - type: string
        - type: 'null'
    Arrays_5:
      type: array
      items:
        $ref: '#/components/schemas/Objects_12'
    BetaManagedAgentsModelConfig:
      type: object
      properties:
        id:
          type: string
        effort:
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - low
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - medium
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - high
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - xhigh
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - max
              required:
                - type
              additionalProperties: false
        inference_geo:
          type: string
          enum:
            - global
            - us
        speed:
          type: string
          enum:
            - standard
            - fast
      required:
        - id
      additionalProperties: false
    Arrays_6:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              type:
                type: string
                enum:
                  - anthropic
              skill_id:
                type: string
              version:
                type: string
            required:
              - type
              - skill_id
              - version
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - custom
              skill_id:
                type: string
              version:
                type: string
            required:
              - type
              - skill_id
              - version
            additionalProperties: false
    Union_33:
      anyOf:
        - type: string
        - type: 'null'
    Arrays_7:
      type: array
      items:
        $ref: '#/components/schemas/BetaManagedAgentsTool'
    BetaManagedAgentsSessionMultiagentCoordinator:
      type: object
      properties:
        agents:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/BetaManagedAgentsSessionThreadAgent'
              - $ref: '#/components/schemas/BetaManagedAgentsAdvisor'
        type:
          type: string
          enum:
            - coordinator
      required:
        - agents
        - type
      additionalProperties: false
    EnvironmentId:
      type: string
      allOf:
        - pattern: ^env_[0-9a-f]{32}$
    BetaEnvironmentConfig:
      anyOf:
        - $ref: '#/components/schemas/BetaCloudConfig'
        - $ref: '#/components/schemas/BetaSelfHostedConfig'
    ResourceMetadata:
      type: object
      additionalProperties:
        type: string
        allOf:
          - maxLength: 512
      allOf:
        - propertyNames:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
        - maxProperties: 16
          description: at most 16 correlation pairs with keys of 1 to 64 characters
    BetaEnvironmentScope:
      type: string
      enum:
        - organization
        - account
    HarnessLaunchRole:
      type: string
      enum:
        - primary
        - alternative
        - local_fixture
      description: >-
        Operator-owned launch intent: product primary, explicit alternative, or
        local-only fixture
    Union_38:
      type: string
      enum:
        - certified
        - beta
        - experimental
    Objects_20:
      type: object
      properties:
        kind:
          type: string
          enum:
            - managed
        protocol:
          type: string
          enum:
            - mock
        preset:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        adapter_version:
          type: string
          allOf:
            - minLength: 1
        recipe_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - kind
        - protocol
        - preset
        - adapter_version
        - recipe_digest
      additionalProperties: false
    HarnessConfiguration:
      type: object
      additionalProperties:
        description: >-
          A value in the JSON data model: null, boolean, finite number, string,
          array, or object.
        allOf:
          - x-checkfu-json-budget:
              maximumBytes: 65536
              maximumDepth: 32
              maximumNodes: 4000
              maximumInspectionWork: 4000
      allOf:
        - x-checkfu-json-budget:
            maximumBytes: 65536
            maximumDepth: 32
            maximumNodes: 4000
            maximumInspectionWork: 4000
        - maxProperties: 4000
          description: harness configuration of at most 64 KiB, depth 32, and 4,000 nodes
    Union_39:
      anyOf:
        - type: boolean
        - $ref: '#/components/schemas/HarnessConfigurationSchemaObject'
    Union_40:
      type: string
      enum:
        - packaged
        - custom
    Objects_22:
      type: object
      properties:
        id:
          type: string
          allOf:
            - minLength: 1
        revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        scaffold_command:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
            - type: 'null'
      required:
        - id
        - revision
        - scaffold_command
      additionalProperties: false
    Union_41:
      anyOf:
        - type: object
          properties:
            argv: false
            prompt_transport: false
            output_mode: false
            resume_flag: false
            output_schema_flag: false
            output_schema_transport: false
            protocol:
              type: string
              enum:
                - acp-v1
            entrypoint:
              type: string
              allOf:
                - maxLength: 4096
                - pattern: >-
                    ^\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+)*$
            arguments:
              $ref: '#/components/schemas/HarnessProcessArgumentVectorUtf8Bytes'
            mcp_delivery:
              type: string
              enum:
                - session_http
                - none
            working_directory:
              type: string
              allOf:
                - maxLength: 4096
                - pattern: >-
                    ^\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+)*$
            platforms:
              $ref: '#/components/schemas/Arrays_8'
            model_plane:
              type: string
              enum:
                - workspace
            model_wire_dialects:
              type: array
              items:
                type: string
                enum:
                  - anthropic_messages
                  - openai_chat
                  - openai_responses
                  - fal_queue
              allOf:
                - minItems: 1
                - maxItems: 4
                - uniqueItems: true
            run_as_user:
              type: string
              enum:
                - '65532:65532'
            read_only_root:
              type: boolean
              enum:
                - true
            writable_paths:
              $ref: '#/components/schemas/Arrays_9'
          required:
            - protocol
            - entrypoint
            - arguments
            - mcp_delivery
            - working_directory
            - platforms
            - model_plane
            - run_as_user
            - read_only_root
            - writable_paths
          additionalProperties: false
        - $ref: '#/components/schemas/OneShotImageContractPromptPath'
    HarnessCatalogReadinessReceiptCoordinates:
      type: object
      properties:
        name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        display_name:
          type: string
          allOf:
            - minLength: 1
        description:
          type: string
          allOf:
            - minLength: 1
        launch_role:
          $ref: '#/components/schemas/HarnessLaunchRole'
        tier:
          $ref: '#/components/schemas/Union_38'
        mode:
          $ref: '#/components/schemas/Union_40'
        capability_ceiling:
          $ref: '#/components/schemas/Objects_21'
        availability:
          type: string
          enum:
            - ready
        readiness_receipt:
          $ref: '#/components/schemas/Objects_23'
        adoption:
          type: object
          properties:
            kind:
              type: string
              enum:
                - oci_recipe
            upstream_project:
              type: string
              allOf:
                - minLength: 1
            upstream_revision:
              type: string
              allOf:
                - minLength: 1
            recipe:
              $ref: '#/components/schemas/Objects_22'
            image_contract:
              $ref: '#/components/schemas/Union_41'
            driver_version:
              type: string
              allOf:
                - minLength: 1
            default_configuration:
              $ref: '#/components/schemas/HarnessConfiguration'
            configuration_schema:
              $ref: '#/components/schemas/Union_39'
            default_image:
              $ref: '#/components/schemas/OciImageReference'
          required:
            - kind
            - upstream_project
            - upstream_revision
            - recipe
            - image_contract
            - driver_version
            - default_configuration
            - configuration_schema
            - default_image
          additionalProperties: false
      required:
        - name
        - display_name
        - description
        - launch_role
        - tier
        - mode
        - capability_ceiling
        - availability
        - readiness_receipt
        - adoption
      additionalProperties: false
    OciImageReference:
      type: string
    Objects_24:
      type: object
      properties:
        kind:
          type: string
          enum:
            - connected
        upstream_project:
          type: string
          allOf:
            - minLength: 1
        upstream_revision:
          type: string
          allOf:
            - minLength: 1
        command:
          type: string
          allOf:
            - maxLength: 65536
            - pattern: ^[^\u0000]*$
              description: >-
                Exact process argument text, preserving whitespace; U+0000 is
                forbidden and UTF-8 encoding is limited to 65536 bytes
            - minLength: 1
        arguments:
          $ref: '#/components/schemas/HarnessProcessArgumentVectorUtf8Bytes'
      required:
        - kind
        - upstream_project
        - upstream_revision
        - command
        - arguments
      additionalProperties: false
    Union_34:
      anyOf:
        - type: object
          properties:
            value:
              $ref: '#/components/schemas/WorkloadTrust'
            recorded_at:
              $ref: '#/components/schemas/CurrentTimestamp'
          required:
            - value
            - recorded_at
          additionalProperties: false
        - type: 'null'
    WorkloadTrustFacts:
      type: object
      properties:
        authorship:
          type: string
          enum:
            - organization_engineer
            - end_user
            - third_party
            - unknown
        source_review:
          type: string
          enum:
            - workspace_controlled
            - unreviewed
            - unknown
        execution_plane:
          type: string
          enum:
            - organization_local
            - organization_single_tenant
            - shared_or_third_party
            - unknown
        input_exposure:
          type: object
          properties:
            source_build:
              $ref: '#/components/schemas/WorkloadInputControl'
            ingress:
              $ref: '#/components/schemas/WorkloadInputControl'
            mounts:
              $ref: '#/components/schemas/WorkloadInputControl'
            installations:
              $ref: '#/components/schemas/WorkloadInputControl'
            content_capabilities:
              $ref: '#/components/schemas/WorkloadInputControl'
          required:
            - source_build
            - ingress
            - mounts
            - installations
            - content_capabilities
          additionalProperties: false
      required:
        - authorship
        - source_review
        - execution_plane
        - input_exposure
      additionalProperties: false
    WorkloadTrust:
      type: string
      enum:
        - trusted
        - adversarial
    GitReference:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
        - pattern: ^\S+$
    GitHubRepository:
      type: string
      allOf:
        - pattern: ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$
        - maxLength: 202
    SkillId:
      type: string
      allOf:
        - pattern: ^skl_[0-9a-f]{32}$
    Union_143:
      type: string
      enum:
        - instructional
        - executable
    Union_285:
      type: string
      enum:
        - image
        - video_second
        - compute_second
    HarnessProfileId:
      type: string
      allOf:
        - pattern: ^hprof_[0-9a-f]{32}$
    Union_18:
      type: string
      enum:
        - local
        - hosted
        - byoc
    Objects_9:
      type: object
      properties:
        compute_accounting:
          type: boolean
        network_isolation:
          type: boolean
        bounded_start:
          type: boolean
        bounded_cancel:
          type: boolean
        teardown:
          type: boolean
      required:
        - compute_accounting
        - network_isolation
        - bounded_start
        - bounded_cancel
        - teardown
      additionalProperties: false
    NonBrowserActionApprovalId:
      type: string
      allOf:
        - pattern: ^approval_[0-9a-f]{32}$
    BrowserActionApprovalId:
      type: string
      allOf:
        - pattern: ^bapproval_[0-9a-f]{32}$
    MessageContentPlainTextData:
      type: string
      allOf:
        - minLength: 1
    MessageContentBase64Data:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1048576
    UsageEntryId:
      type: string
      allOf:
        - pattern: ^use_[0-9a-f]{32}$
    PlatformSupplyId:
      type: string
      allOf:
        - pattern: ^sup_[0-9a-f]{32}$
    SupplyCredentialGenerationId:
      type: string
      allOf:
        - pattern: ^sgen_[0-9a-f]{32}$
    BillingRateCardId:
      type: string
      allOf:
        - pattern: ^rate_[0-9a-f]{32}$
    PlatformModelRatedAt:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 model-rating instant with millisecond
            precision.
    Union_134:
      type: string
      enum:
        - default
        - planning
        - tool_loop
    UniqueFlowReviewCriteria:
      type: array
      items:
        type: object
        properties:
          key:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
          description:
            $ref: '#/components/schemas/FlowReviewCriterionDescription'
          severity:
            type: string
            enum:
              - low
              - medium
              - high
        required:
          - key
          - description
          - severity
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 16
    ModelCredentialId:
      type: string
      allOf:
        - pattern: ^mcred_[0-9a-f]{32}$
    ModelCredentialGenerationId:
      type: string
      allOf:
        - pattern: ^mcgen_[0-9a-f]{32}$
    ProjectCaptureTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 Project capture timestamp with millisecond
            precision.
    Objects_12:
      type: object
      properties:
        type:
          type: string
          enum:
            - url
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        url:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 2048
      required:
        - type
        - name
        - url
      additionalProperties: false
    BetaManagedAgentsTool:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                anyOf:
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - bash
                      type:
                        type: string
                        enum:
                          - bash
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - edit
                      type:
                        type: string
                        enum:
                          - edit
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - glob
                      type:
                        type: string
                        enum:
                          - glob
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - grep
                      type:
                        type: string
                        enum:
                          - grep
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - read
                      type:
                        type: string
                        enum:
                          - read
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - web_fetch
                      type:
                        type: string
                        enum:
                          - web_fetch
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                      allowed_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      blocked_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      max_content_tokens:
                        anyOf:
                          - type: integer
                            allOf:
                              - exclusiveMinimum: 0
                          - type: 'null'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - web_search
                      type:
                        type: string
                        enum:
                          - web_search
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                      allowed_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      blocked_domains:
                        $ref: '#/components/schemas/Arrays_4'
                      user_location:
                        anyOf:
                          - $ref: '#/components/schemas/Objects_15'
                          - type: 'null'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
                  - type: object
                    properties:
                      name:
                        type: string
                        enum:
                          - write
                      type:
                        type: string
                        enum:
                          - write
                      enabled:
                        type: boolean
                      permission_policy:
                        $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                    required:
                      - name
                      - type
                      - enabled
                      - permission_policy
                    additionalProperties: false
            default_config:
              $ref: '#/components/schemas/Objects_18'
          required:
            - type
            - configs
            - default_config
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - mcp_toolset
            mcp_server_name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            configs:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  enabled:
                    type: boolean
                  permission_policy:
                    $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
                required:
                  - name
                  - enabled
                  - permission_policy
                additionalProperties: false
            default_config:
              $ref: '#/components/schemas/Objects_18'
          required:
            - type
            - mcp_server_name
            - configs
            - default_config
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_17'
    BetaManagedAgentsSessionThreadAgent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AgentId'
        description:
          $ref: '#/components/schemas/Union_31'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_5'
        model:
          $ref: '#/components/schemas/BetaManagedAgentsModelConfig'
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        skills:
          $ref: '#/components/schemas/Arrays_6'
        system:
          $ref: '#/components/schemas/Union_33'
        tools:
          $ref: '#/components/schemas/Arrays_7'
        type:
          type: string
          enum:
            - agent
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - id
        - description
        - mcp_servers
        - model
        - name
        - skills
        - system
        - tools
        - type
        - version
      additionalProperties: false
    BetaManagedAgentsAdvisor:
      type: object
      properties:
        model:
          type: string
        type:
          type: string
          enum:
            - advisor
      required:
        - model
        - type
      additionalProperties: false
    BetaCloudConfig:
      type: object
      properties:
        type:
          type: string
          enum:
            - cloud
        networking:
          anyOf:
            - $ref: '#/components/schemas/BetaUnrestrictedNetwork'
            - $ref: '#/components/schemas/BetaLimitedNetwork'
        packages:
          $ref: '#/components/schemas/BetaPackages'
      required:
        - type
        - networking
        - packages
      additionalProperties: false
    BetaSelfHostedConfig:
      type: object
      properties:
        type:
          type: string
          enum:
            - self_hosted
      required:
        - type
      additionalProperties: false
    HarnessConfigurationSchemaObject:
      type: object
      additionalProperties:
        description: >-
          A value in the JSON data model: null, boolean, finite number, string,
          array, or object.
        allOf:
          - x-checkfu-json-budget:
              maximumBytes: 65536
              maximumDepth: 32
              maximumNodes: 4000
              maximumInspectionWork: 4000
      allOf:
        - x-checkfu-json-budget:
            maximumBytes: 65536
            maximumDepth: 32
            maximumNodes: 4000
            maximumInspectionWork: 4000
        - maxProperties: 4000
          description: >-
            harness configuration schema of at most 64 KiB, depth 32, and 4,000
            nodes
    HarnessProcessArgumentVectorUtf8Bytes:
      type: array
      items:
        $ref: '#/components/schemas/HarnessProcessArgumentUtf8Bytes'
      allOf:
        - maxItems: 256
          description: >-
            At most 256 exact process arguments and 131072 aggregate UTF-8 bytes
            including one terminator per argument
    Arrays_8:
      type: array
      items:
        $ref: '#/components/schemas/Objects_8'
      allOf:
        - minItems: 1
    Arrays_9:
      type: array
      items:
        type: string
        allOf:
          - maxLength: 4096
          - pattern: >-
              ^\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+)*$
      allOf:
        - minItems: 1
    OneShotImageContractPromptPath:
      type: object
      properties:
        protocol:
          type: string
          enum:
            - oneshot-v1
        arguments: false
        mcp_delivery: false
        entrypoint:
          type: string
          allOf:
            - maxLength: 4096
            - pattern: >-
                ^\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+)*$
        argv:
          $ref: '#/components/schemas/OneShotArgvPlaceholders'
        prompt_transport:
          $ref: '#/components/schemas/Union_44'
        output_mode:
          $ref: '#/components/schemas/Union_45'
        resume_flag:
          type: string
          allOf:
            - maxLength: 65536
            - pattern: ^[^\u0000]*$
              description: >-
                Exact process argument text, preserving whitespace; U+0000 is
                forbidden and UTF-8 encoding is limited to 65536 bytes
            - minLength: 1
        output_schema_flag:
          type: string
          allOf:
            - maxLength: 65536
            - pattern: ^[^\u0000]*$
              description: >-
                Exact process argument text, preserving whitespace; U+0000 is
                forbidden and UTF-8 encoding is limited to 65536 bytes
            - minLength: 1
        output_schema_transport:
          type: string
          enum:
            - argv_json
            - argv_path
        working_directory:
          type: string
          allOf:
            - maxLength: 4096
            - pattern: >-
                ^\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._-]+)*$
        platforms:
          $ref: '#/components/schemas/Arrays_8'
        model_plane:
          type: string
          enum:
            - workspace
        model_wire_dialects:
          type: array
          items:
            type: string
            enum:
              - anthropic_messages
              - openai_chat
              - openai_responses
              - fal_queue
          allOf:
            - minItems: 1
            - maxItems: 4
            - uniqueItems: true
        run_as_user:
          type: string
          enum:
            - '65532:65532'
        read_only_root:
          type: boolean
          enum:
            - true
        writable_paths:
          $ref: '#/components/schemas/Arrays_9'
      required:
        - protocol
        - entrypoint
        - argv
        - prompt_transport
        - output_mode
        - working_directory
        - platforms
        - model_plane
        - run_as_user
        - read_only_root
        - writable_paths
      additionalProperties: false
    Objects_23:
      type: object
      properties:
        schema_version:
          type: number
          enum:
            - 1
        harness_name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        image:
          $ref: '#/components/schemas/OciImageReference'
        recipe_revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        image_contract_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        local_prompt_evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        hosted_prompt_evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        conformance_report_id:
          $ref: '#/components/schemas/ConformanceReportId'
        conformance_report_fingerprint:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        integration_descriptor_digest:
          anyOf:
            - type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            - type: 'null'
        statement_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        attestation_type:
          type: string
          enum:
            - https://checkfu.dev/attestations/harness-readiness/v1
        qualified_at:
          $ref: '#/components/schemas/HarnessReadinessInstant'
      required:
        - schema_version
        - harness_name
        - image
        - recipe_revision
        - image_contract_digest
        - local_prompt_evidence_digest
        - hosted_prompt_evidence_digest
        - conformance_report_id
        - conformance_report_fingerprint
        - statement_digest
        - attestation_type
        - qualified_at
      additionalProperties: false
    WorkloadInputControl:
      type: string
      enum:
        - controlled
        - third_party
        - unknown
    FlowReviewCriterionDescription:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
    BetaManagedAgentsPermissionPolicy:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_allow
          required:
            - type
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - always_ask
          required:
            - type
          additionalProperties: false
    Arrays_4:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 255
      allOf:
        - minItems: 1
        - maxItems: 64
    Objects_15:
      type: object
      properties:
        type:
          type: string
          enum:
            - approximate
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIsoCountryCode'
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - $ref: '#/components/schemas/BetaManagedAgentsIanaTimeZone'
            - type: 'null'
      required:
        - type
      additionalProperties: false
    Objects_18:
      type: object
      properties:
        enabled:
          type: boolean
        permission_policy:
          $ref: '#/components/schemas/BetaManagedAgentsPermissionPolicy'
      required:
        - enabled
        - permission_policy
      additionalProperties: false
    Objects_17:
      type: object
      properties:
        type:
          type: string
          enum:
            - custom
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 128
            - pattern: ^[A-Za-z0-9_-]+$
        description:
          type: string
          allOf:
            - minLength: 1
        input_schema:
          $ref: '#/components/schemas/BetaManagedAgentsCustomToolInputSchema'
      required:
        - type
        - name
        - description
        - input_schema
      additionalProperties: false
    BetaUnrestrictedNetwork:
      type: object
      properties:
        type:
          type: string
          enum:
            - unrestricted
      required:
        - type
      additionalProperties: false
    BetaLimitedNetwork:
      type: object
      properties:
        type:
          type: string
          enum:
            - limited
        allow_mcp_servers:
          type: boolean
        allow_package_managers:
          type: boolean
        allowed_hosts:
          type: array
          items:
            type: string
      required:
        - type
        - allow_mcp_servers
        - allow_package_managers
        - allowed_hosts
      additionalProperties: false
    BetaPackages:
      type: object
      properties:
        type:
          type: string
          enum:
            - packages
        apt:
          $ref: '#/components/schemas/Arrays_48'
        cargo:
          $ref: '#/components/schemas/Arrays_48'
        gem:
          $ref: '#/components/schemas/Arrays_48'
        go:
          $ref: '#/components/schemas/Arrays_48'
        npm:
          $ref: '#/components/schemas/Arrays_48'
        pip:
          $ref: '#/components/schemas/Arrays_48'
      required:
        - apt
        - cargo
        - gem
        - go
        - npm
        - pip
      additionalProperties: false
    HarnessProcessArgumentUtf8Bytes:
      type: string
      allOf:
        - maxLength: 65536
        - pattern: ^[^\u0000]*$
          description: >-
            Exact process argument text, preserving whitespace; U+0000 is
            forbidden and UTF-8 encoding is limited to 65536 bytes
    Objects_8:
      type: object
      properties:
        os:
          type: string
          enum:
            - linux
        architecture:
          type: string
          enum:
            - amd64
            - arm64
      required:
        - os
        - architecture
      additionalProperties: false
    OneShotArgvPlaceholders:
      type: array
      items:
        $ref: '#/components/schemas/HarnessProcessArgumentUtf8Bytes'
      allOf:
        - maxItems: 256
          description: >-
            At most 256 exact process arguments and 131072 aggregate UTF-8 bytes
            including one terminator per argument
    Union_44:
      type: string
      enum:
        - stdin
        - argv_path
    Union_45:
      type: string
      enum:
        - stream_json
        - text
    ConformanceReportId:
      type: string
      allOf:
        - pattern: ^conf_[0-9a-f]{32}$
    HarnessReadinessInstant:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 harness-readiness instant with millisecond
            precision.
    BetaManagedAgentsIsoCountryCode:
      type: string
      allOf:
        - pattern: ^[A-Z]{2}$
    BetaManagedAgentsIanaTimeZone:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    BetaManagedAgentsCustomToolInputSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - object
        properties:
          anyOf:
            - type: object
              additionalProperties:
                $ref: '#/components/schemas/JsonValue'
            - type: 'null'
        required:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
      required:
        - type
      additionalProperties:
        $ref: '#/components/schemas/JsonValue'
      description: JSON Schema for custom tool input parameters.
    Arrays_48:
      type: array
      items:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````