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

# Create a Project-owned Automation

> Create one Automation whose target is this Project and record it on owned_automation_ids for teardown.



## OpenAPI

````yaml /openapi.json post /v1/projects/{id}/automations
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-31'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; bootstrap poll token; or anonymous bootstrap
    creation and credential-free pairing redemption. Every general Checkfu REST
    request requires the dated `Checkfu-Version` header (one of: 2026-08-31);
    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: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentBlueprints
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: bootstrapRequests
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: fileTrees
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: projects
  - name: actionApprovals
  - name: standingApprovals
  - name: workloadReviewPolicies
  - 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: sessionHandoffs
  - name: sessionCapsules
  - name: sessionTrajectories
  - name: webhookEndpoints
  - name: integrationGateway
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: computerHeadlessOperations
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/projects/{id}/automations:
    post:
      tags:
        - projects
      summary: Create a Project-owned Automation
      description: >-
        Create one Automation whose target is this Project and record it on
        `owned_automation_ids` for teardown. The Project id in the path is
        forced onto the target; ordinary `automations.createAutomation` with a
        Project target does not set ownership. Authority is `create_routine` on
        the Project. The body is idempotent under `idempotency-key`.


        Checkfu support posture: alpha; hosted. No release evidence journey
        applies to this operation.
      operationId: projects.createProjectAutomation
      parameters:
        - name: id
          in: path
          schema:
            $ref: '#/components/schemas/ProjectId'
          required: true
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-31'
          required: true
        - name: idempotency-key
          in: header
          schema:
            type: string
            allOf:
              - maxLength: 255
          required: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CurrentCreateAutomation'
        required: true
      responses:
        '201':
          description: Automation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Automation_6'
          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'
        '409':
          description: >-
            The request conflicts with the resource's current state. | An
            idempotent mutation conflicts with a completed or in-progress
            request for the same key.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationConflictError'
                  - $ref: '#/components/schemas/IdempotencyConflictError'
        '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'
        '503':
          description: >-
            The MemoryStore backend cannot serve the operation and applied no
            write.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBackendUnavailableError'
      security:
        - bearerAuth: []
components:
  schemas:
    ProjectId:
      type: string
      allOf:
        - pattern: ^proj_[0-9a-f]{32}$
    CurrentCreateAutomation:
      anyOf:
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime:
              anyOf:
                - $ref: '#/components/schemas/ConnectedRuntimeId'
                - type: 'null'
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Objects_128'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_129'
            input:
              $ref: '#/components/schemas/CurrentSnapshotAutomationInput'
            ingest_secret: false
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
            - input
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime:
              anyOf:
                - $ref: '#/components/schemas/ConnectedRuntimeId'
                - type: 'null'
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Objects_128'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_134'
            input:
              $ref: '#/components/schemas/CurrentTemplateAutomationInput'
            ingest_secret:
              type: string
              allOf:
                - pattern: ^whsec_[A-Za-z0-9_-]{43}$
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
            - input
            - ingest_secret
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime:
              anyOf:
                - $ref: '#/components/schemas/ConnectedRuntimeId'
                - type: 'null'
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Objects_128'
            collaboration_space_id:
              $ref: '#/components/schemas/CollaborationSpaceId'
            trigger:
              $ref: '#/components/schemas/Objects_135'
            input:
              $ref: '#/components/schemas/CurrentTemplateAutomationInput'
            ingest_secret: false
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - collaboration_space_id
            - trigger
            - input
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime: false
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Union_257'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_129'
            input: false
            ingest_secret: false
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime: false
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Union_257'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_134'
            input: false
            ingest_secret:
              type: string
              allOf:
                - pattern: ^whsec_[A-Za-z0-9_-]{43}$
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
            - ingest_secret
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime: false
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/Objects_138'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_129'
            input: false
            ingest_secret: false
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime:
              anyOf:
                - $ref: '#/components/schemas/ConnectedRuntimeId'
                - type: 'null'
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/ProjectAutomationWorkAgent'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_129'
            input:
              $ref: '#/components/schemas/CurrentSnapshotAutomationInput'
            ingest_secret: false
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
            - input
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            description:
              anyOf:
                - type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                - type: 'null'
            created_by:
              $ref: '#/components/schemas/PrincipalId'
            identity:
              $ref: '#/components/schemas/Objects_127'
            external_id:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            environment_id:
              $ref: '#/components/schemas/EnvironmentId'
            connected_runtime:
              anyOf:
                - $ref: '#/components/schemas/ConnectedRuntimeId'
                - type: 'null'
            metadata:
              $ref: '#/components/schemas/ResourceMetadata'
            target:
              $ref: '#/components/schemas/ProjectAutomationWorkAgent'
            collaboration_space_id:
              anyOf:
                - $ref: '#/components/schemas/CollaborationSpaceId'
                - type: 'null'
            trigger:
              $ref: '#/components/schemas/Objects_134'
            input:
              $ref: '#/components/schemas/CurrentTemplateAutomationInput'
            ingest_secret:
              type: string
              allOf:
                - pattern: ^whsec_[A-Za-z0-9_-]{43}$
          required:
            - name
            - created_by
            - identity
            - environment_id
            - target
            - trigger
            - input
            - ingest_secret
          additionalProperties: false
    Automation_6:
      anyOf:
        - $ref: '#/components/schemas/Objects_139'
        - $ref: '#/components/schemas/Objects_141'
        - $ref: '#/components/schemas/Objects_143'
        - $ref: '#/components/schemas/Objects_144'
        - $ref: '#/components/schemas/Objects_145'
        - $ref: '#/components/schemas/Objects_146'
        - $ref: '#/components/schemas/Objects_147'
        - $ref: '#/components/schemas/Objects_148'
    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.
    ValidationConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.conflict
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request conflicts with the resource's current state.
    IdempotencyConflictError:
      anyOf:
        - $ref: '#/components/schemas/ValidationIdempotencyConflictError'
        - $ref: '#/components/schemas/ValidationIdempotencyInProgressError'
      description: >-
        An idempotent mutation conflicts with a completed or in-progress request
        for the same key.
    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.
    MemoryBackendUnavailableError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - memory.backend_unavailable
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#memory-backend-unavailable
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The MemoryStore backend cannot serve the operation and applied no write.
    PrincipalId:
      type: string
      allOf:
        - pattern: ^prin_[0-9a-f]{32}$
    Objects_127:
      type: object
      properties:
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - acted_as
      additionalProperties: false
    EnvironmentId:
      type: string
      allOf:
        - pattern: ^env_[0-9a-f]{32}$
    ConnectedRuntimeId:
      type: string
      allOf:
        - pattern: ^crt_[0-9a-f]{32}$
    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
    Objects_128:
      type: object
      properties:
        kind:
          type: string
          enum:
            - agent_definition
        agent:
          $ref: '#/components/schemas/ManagedAgentsAgentParams'
        agent_deployment_id: false
        agent_deployment_revision_selection: false
        budget:
          $ref: '#/components/schemas/SessionBudgetRequest'
      required:
        - kind
        - agent
      additionalProperties: false
    CollaborationSpaceId:
      type: string
      allOf:
        - pattern: ^cspace_[0-9a-f]{32}$
    Objects_129:
      type: object
      properties:
        kind:
          type: string
          enum:
            - schedule
        cron:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        timezone:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        dedupe_key: false
        source: false
        filter: false
      required:
        - kind
        - cron
        - timezone
      additionalProperties: false
    CurrentSnapshotAutomationInput:
      type: object
      properties:
        kind:
          type: string
          enum:
            - snapshot
        prompt:
          $ref: '#/components/schemas/AutomationPrompt'
        outcome:
          $ref: '#/components/schemas/Objects_130'
        flow_review:
          $ref: '#/components/schemas/Objects_131'
        delivery_screen:
          anyOf:
            - type: object
              properties:
                model_routing_profile_key:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                tier:
                  $ref: '#/components/schemas/Union_150'
                instructions:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - model_routing_profile_key
                - instructions
              additionalProperties: false
            - type: object
              properties:
                evaluation:
                  $ref: '#/components/schemas/Objects_109'
                rule:
                  $ref: '#/components/schemas/Union_213'
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - evaluation
                - rule
              additionalProperties: false
        resources:
          $ref: '#/components/schemas/AutomationResources'
        prompt_template: false
      required:
        - kind
        - prompt
      additionalProperties: false
    Objects_134:
      type: object
      properties:
        kind:
          type: string
          enum:
            - webhook
        dedupe_key:
          type: object
          properties:
            kind:
              type: string
              enum:
                - json_pointer
            pointer:
              type: string
              allOf:
                - maxLength: 512
                - pattern: ^(?:\/(?:[^~/]|~[01])*)*$
          required:
            - kind
            - pointer
          additionalProperties: false
        filter:
          type: object
          properties:
            predicates:
              type: array
              items:
                $ref: '#/components/schemas/Union_254'
              allOf:
                - maxItems: 32
            check:
              anyOf:
                - type: object
                  properties:
                    model_routing_profile_key:
                      type: string
                      allOf:
                        - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                    tier:
                      type: string
                      enum:
                        - default
                        - planning
                        - tool_loop
                    instructions:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 4096
                    failure:
                      $ref: '#/components/schemas/Union_247'
                  required:
                    - model_routing_profile_key
                    - instructions
                    - failure
                  additionalProperties: false
                - type: object
                  properties:
                    evaluation:
                      $ref: '#/components/schemas/Objects_109'
                    rule:
                      $ref: '#/components/schemas/Union_213'
                    failure:
                      $ref: '#/components/schemas/Union_247'
                  required:
                    - evaluation
                    - rule
                    - failure
                  additionalProperties: false
          required:
            - predicates
          additionalProperties: false
        cron: false
        timezone: false
        source: false
      required:
        - kind
        - dedupe_key
      additionalProperties: false
    CurrentTemplateAutomationInput:
      type: object
      properties:
        kind:
          type: string
          enum:
            - template
        prompt_template:
          $ref: '#/components/schemas/AutomationPrompt'
        outcome:
          $ref: '#/components/schemas/Objects_130'
        flow_review:
          $ref: '#/components/schemas/Objects_131'
        delivery_screen:
          anyOf:
            - type: object
              properties:
                model_routing_profile_key:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                tier:
                  $ref: '#/components/schemas/Union_150'
                instructions:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - model_routing_profile_key
                - instructions
              additionalProperties: false
            - type: object
              properties:
                evaluation:
                  $ref: '#/components/schemas/Objects_109'
                rule:
                  $ref: '#/components/schemas/Union_213'
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - evaluation
                - rule
              additionalProperties: false
        resources:
          $ref: '#/components/schemas/AutomationResources'
        prompt: false
      required:
        - kind
        - prompt_template
      additionalProperties: false
    Objects_135:
      type: object
      properties:
        kind:
          type: string
          enum:
            - subscription
        source:
          $ref: '#/components/schemas/Union_256'
        cron: false
        timezone: false
        dedupe_key: false
        filter: false
      required:
        - kind
        - source
      additionalProperties: false
    Union_257:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - steps
            agent_deployment_id: false
            agent_deployment_revision_selection: false
            memory_store: false
            sessions: false
            budget: false
            steps:
              $ref: '#/components/schemas/AutomationStepGroups'
            dag: false
          required:
            - kind
            - steps
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - steps
            agent_deployment_id: false
            agent_deployment_revision_selection: false
            memory_store: false
            sessions: false
            budget: false
            dag:
              $ref: '#/components/schemas/AutomationStepDagDataflow'
            steps: false
          required:
            - kind
            - dag
          additionalProperties: false
    Objects_138:
      type: object
      properties:
        kind:
          type: string
          enum:
            - dream
        memory_store:
          $ref: '#/components/schemas/MemoryStoreId'
        sessions:
          $ref: '#/components/schemas/Objects_118'
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        review:
          type: boolean
        agent_deployment_id: false
        agent_deployment_revision_selection: false
        budget: false
      required:
        - kind
        - memory_store
        - sessions
      additionalProperties: false
    ProjectAutomationWorkAgent:
      type: object
      properties:
        kind:
          type: string
          enum:
            - project
        project_id:
          $ref: '#/components/schemas/ProjectId'
        role:
          $ref: '#/components/schemas/Union_260'
        agent:
          $ref: '#/components/schemas/ManagedAgentsSessionAgentParams'
      required:
        - kind
        - project_id
        - role
      additionalProperties: false
    Objects_139:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/Objects_128'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_129'
        input:
          $ref: '#/components/schemas/Objects_140'
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
        - input
      additionalProperties: false
    Objects_141:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/Objects_128'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_134'
        input:
          $ref: '#/components/schemas/Objects_142'
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
        - input
      additionalProperties: false
    Objects_143:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/Objects_128'
        collaboration_space_id:
          $ref: '#/components/schemas/CollaborationSpaceId'
        trigger:
          $ref: '#/components/schemas/Objects_135'
        input:
          $ref: '#/components/schemas/Objects_142'
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
        - input
      additionalProperties: false
    Objects_144:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/Union_257'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_129'
        input: false
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
      additionalProperties: false
    Objects_145:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/Union_257'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_134'
        input: false
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
      additionalProperties: false
    Objects_146:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        last_dream_id:
          anyOf:
            - $ref: '#/components/schemas/DreamId'
            - type: 'null'
        dream_cursor:
          type: integer
          allOf:
            - minimum: 0
        target:
          $ref: '#/components/schemas/Objects_138'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_129'
        input: false
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - last_dream_id
        - dream_cursor
        - target
        - collaboration_space_id
        - trigger
      additionalProperties: false
    Objects_147:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/ProjectAutomationWorkAgent'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_129'
        input:
          $ref: '#/components/schemas/Objects_140'
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
        - input
      additionalProperties: false
    Objects_148:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AutomationId'
        workspace_id:
          $ref: '#/components/schemas/WorkspaceId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        description:
          $ref: '#/components/schemas/Union_262'
        external_id:
          $ref: '#/components/schemas/Union_263'
        created_by:
          $ref: '#/components/schemas/PrincipalId'
        identity:
          $ref: '#/components/schemas/Objects_127'
        environment_id:
          $ref: '#/components/schemas/EnvironmentId'
        connected_runtime:
          $ref: '#/components/schemas/Union_264'
        metadata:
          $ref: '#/components/schemas/ResourceMetadata'
        status:
          $ref: '#/components/schemas/Union_234'
        paused_reason:
          $ref: '#/components/schemas/Union_265'
        last_run_at:
          $ref: '#/components/schemas/Union_266'
        last_session_id:
          $ref: '#/components/schemas/Union_267'
        last_run_id:
          $ref: '#/components/schemas/Union_268'
        next_run_at:
          $ref: '#/components/schemas/Union_269'
        created_at:
          type: string
        updated_at:
          type: string
        target:
          $ref: '#/components/schemas/ProjectAutomationWorkAgent'
        collaboration_space_id:
          anyOf:
            - $ref: '#/components/schemas/CollaborationSpaceId'
            - type: 'null'
        trigger:
          $ref: '#/components/schemas/Objects_134'
        input:
          $ref: '#/components/schemas/Objects_142'
      required:
        - id
        - workspace_id
        - version
        - name
        - description
        - external_id
        - created_by
        - identity
        - environment_id
        - connected_runtime
        - status
        - paused_reason
        - last_run_at
        - last_session_id
        - last_run_id
        - next_run_at
        - created_at
        - updated_at
        - target
        - collaboration_space_id
        - trigger
        - input
      additionalProperties: false
    ValidationIdempotencyConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_conflict
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The Idempotency-Key is already bound to a different request.
    ValidationIdempotencyInProgressError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_in_progress
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-in-progress
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An identical idempotent request is still in progress and may be retried
        later.
    ManagedAgentsAgentParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - type
        - id
      additionalProperties: false
    SessionBudgetRequest:
      type: object
      properties:
        limit:
          $ref: '#/components/schemas/SessionBudgetRequestSafeLimit'
        metric:
          type: string
          enum:
            - model_tokens
            - model_spend
            - session_runtime_ms
            - web_search_requests
            - total_spend
      required:
        - limit
      additionalProperties: false
      description: >-
        A create-time Session spending cap compiled into one session-scoped
        pause_session Budget.
    AutomationPrompt:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 65536
    Objects_130:
      type: object
      properties:
        rubric:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 65536
        max_iterations:
          type: integer
          allOf:
            - minimum: 1
              maximum: 20
        deliverables:
          $ref: '#/components/schemas/CurrentOutcomeDeliverablesDistinctPaths'
        report:
          type: object
          properties:
            extraction:
              type: string
              enum:
                - json
                - model
            outputs:
              $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
          required:
            - extraction
            - outputs
          additionalProperties: false
      required:
        - rubric
      additionalProperties: false
    Objects_131:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        tier:
          $ref: '#/components/schemas/Union_150'
        criteria:
          $ref: '#/components/schemas/UniqueFlowReviewCriteria'
      required:
        - model_routing_profile_key
        - criteria
      additionalProperties: false
    Union_150:
      type: string
      enum:
        - default
        - planning
        - tool_loop
    Objects_109:
      type: object
      properties:
        schema_version:
          type: number
          enum:
            - 1
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        tier:
          $ref: '#/components/schemas/Union_150'
        timeout_ms:
          type: number
          allOf:
            - minimum: 100
            - maximum: 30000
        questions:
          $ref: '#/components/schemas/TypedCheckQuestions'
      required:
        - schema_version
        - model_routing_profile_key
        - questions
      additionalProperties: false
    Union_213:
      anyOf:
        - $ref: '#/components/schemas/CheckBooleanRuleThresholds_1'
        - $ref: '#/components/schemas/Objects_110'
        - $ref: '#/components/schemas/CheckScoreTailRuleThresholds_1'
        - type: object
          properties:
            type:
              type: string
              enum:
                - all
            rules:
              type: array
              items:
                anyOf:
                  - $ref: '#/components/schemas/CheckBooleanRuleThresholds_1'
                  - $ref: '#/components/schemas/Objects_110'
                  - $ref: '#/components/schemas/CheckScoreTailRuleThresholds_1'
              allOf:
                - minItems: 1
                - maxItems: 8
          required:
            - type
            - rules
          additionalProperties: false
    AutomationResources:
      type: array
      items:
        anyOf:
          - $ref: '#/components/schemas/Union_249'
          - $ref: '#/components/schemas/Objects_133'
          - type: object
            properties:
              store:
                $ref: '#/components/schemas/MemoryStoreId'
              access:
                $ref: '#/components/schemas/Union_252'
              instructions:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
            required:
              - store
              - access
            additionalProperties: false
    Union_254:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - exists
            pointer:
              type: string
              allOf:
                - maxLength: 512
                - pattern: ^(?:\/(?:[^~/]|~[01])*)*$
            value: false
          required:
            - kind
            - pointer
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - equals
            pointer:
              type: string
              allOf:
                - maxLength: 512
                - pattern: ^(?:\/(?:[^~/]|~[01])*)*$
            value:
              type: string
              allOf:
                - maxLength: 4096
          required:
            - kind
            - pointer
            - value
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - contains
            pointer:
              type: string
              allOf:
                - maxLength: 512
                - pattern: ^(?:\/(?:[^~/]|~[01])*)*$
            value:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
          required:
            - kind
            - pointer
            - value
          additionalProperties: false
    Union_247:
      type: string
      enum:
        - fail_open
        - fail_closed
    Union_256:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - conversation
            conversation:
              $ref: '#/components/schemas/Union_216'
            resource_type: false
            external_id: false
          required:
            - kind
            - conversation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - resource
            resource_type:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            external_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
            conversation: false
          required:
            - kind
            - resource_type
            - external_id
          additionalProperties: false
    AutomationStepGroups:
      type: array
      items:
        $ref: '#/components/schemas/Objects_136'
      allOf:
        - minItems: 1
        - maxItems: 20
    AutomationStepDagDataflow:
      type: object
      properties:
        nodes:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/Objects_136'
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - decision
                  id:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  condition:
                    anyOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - predicates
                          predicates:
                            type: array
                            items:
                              $ref: '#/components/schemas/Union_254'
                            allOf:
                              - minItems: 1
                              - maxItems: 10
                          check: false
                          input:
                            $ref: '#/components/schemas/Objects_137'
                        required:
                          - kind
                          - predicates
                          - input
                        additionalProperties: false
                      - $ref: '#/components/schemas/AutomationDecisionCheckInput'
                required:
                  - kind
                  - id
                  - condition
                additionalProperties: false
          allOf:
            - minItems: 1
            - maxItems: 20
        edges:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - then
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - output
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - continue
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - otherwise
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    anyOf:
                      - type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 64
                          - pattern: ^[A-Za-z0-9_]+$
                      - type: 'null'
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - uncertain
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    anyOf:
                      - type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 64
                          - pattern: ^[A-Za-z0-9_]+$
                      - type: 'null'
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - error
                  from:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 64
                      - pattern: ^[A-Za-z0-9_]+$
                  to:
                    anyOf:
                      - type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 64
                          - pattern: ^[A-Za-z0-9_]+$
                      - type: 'null'
                required:
                  - kind
                  - from
                  - to
                additionalProperties: false
          allOf:
            - maxItems: 320
      required:
        - nodes
        - edges
      additionalProperties: false
    MemoryStoreId:
      type: string
      allOf:
        - pattern: ^memstore_[0-9a-f]{32}$
    Objects_118:
      type: object
      properties:
        kind:
          type: string
          enum:
            - since_last
        limit:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 100
      required:
        - kind
      additionalProperties: false
    Union_260:
      type: string
      enum:
        - coordinating
        - work
    ManagedAgentsSessionAgentParams:
      anyOf:
        - $ref: '#/components/schemas/AgentId'
        - $ref: '#/components/schemas/ManagedAgentsAgentParams'
        - $ref: '#/components/schemas/ManagedAgentsAgentWithOverridesParams'
    AutomationId:
      type: string
      allOf:
        - pattern: ^auto_[0-9a-f]{32}$
    Union_262:
      anyOf:
        - type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        - type: 'null'
    Union_263:
      anyOf:
        - type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        - type: 'null'
    Union_264:
      anyOf:
        - $ref: '#/components/schemas/ConnectedRuntimeId'
        - type: 'null'
    Union_234:
      type: string
      enum:
        - active
        - paused
    Union_265:
      anyOf:
        - $ref: '#/components/schemas/Union_235'
        - type: 'null'
    Union_266:
      anyOf:
        - type: string
        - type: 'null'
    Union_267:
      anyOf:
        - $ref: '#/components/schemas/SessionId'
        - type: 'null'
    Union_268:
      anyOf:
        - $ref: '#/components/schemas/RunId'
        - type: 'null'
    Union_269:
      anyOf:
        - type: string
        - type: 'null'
    Objects_140:
      type: object
      properties:
        kind:
          type: string
          enum:
            - snapshot
        prompt:
          $ref: '#/components/schemas/AutomationPrompt'
        outcome:
          $ref: '#/components/schemas/Objects_130'
        flow_review:
          $ref: '#/components/schemas/Objects_131'
        delivery_screen:
          anyOf:
            - type: object
              properties:
                model_routing_profile_key:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                tier:
                  $ref: '#/components/schemas/Union_150'
                instructions:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - model_routing_profile_key
                - instructions
              additionalProperties: false
            - type: object
              properties:
                evaluation:
                  $ref: '#/components/schemas/Objects_109'
                rule:
                  $ref: '#/components/schemas/Union_213'
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - evaluation
                - rule
              additionalProperties: false
        resources:
          $ref: '#/components/schemas/AutomationResources'
        prompt_template: false
      required:
        - kind
        - prompt
      additionalProperties: false
    Objects_142:
      type: object
      properties:
        kind:
          type: string
          enum:
            - template
        prompt_template:
          $ref: '#/components/schemas/AutomationPrompt'
        outcome:
          $ref: '#/components/schemas/Objects_130'
        flow_review:
          $ref: '#/components/schemas/Objects_131'
        delivery_screen:
          anyOf:
            - type: object
              properties:
                model_routing_profile_key:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                tier:
                  $ref: '#/components/schemas/Union_150'
                instructions:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - model_routing_profile_key
                - instructions
              additionalProperties: false
            - type: object
              properties:
                evaluation:
                  $ref: '#/components/schemas/Objects_109'
                rule:
                  $ref: '#/components/schemas/Union_213'
                failure:
                  type: string
                  enum:
                    - fail_open
                    - fail_closed
              required:
                - evaluation
                - rule
              additionalProperties: false
        resources:
          $ref: '#/components/schemas/AutomationResources'
        prompt: false
      required:
        - kind
        - prompt_template
      additionalProperties: false
    DreamId:
      type: string
      allOf:
        - pattern: ^drm_[0-9a-f]{32}$
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    SessionBudgetRequestSafeLimit:
      type: integer
      allOf:
        - exclusiveMinimum: 0
    CurrentOutcomeDeliverablesDistinctPaths:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^\/\S+$
      allOf:
        - minItems: 1
        - maxItems: 32
        - uniqueItems: true
          description: Outcome deliverables with distinct paths
    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
    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
    TypedCheckQuestions:
      type: array
      items:
        anyOf:
          - $ref: '#/components/schemas/Objects_96'
          - type: object
            properties:
              key:
                $ref: '#/components/schemas/CheckQuestionKey'
              type:
                type: string
                enum:
                  - choice
              instructions:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              options:
                $ref: '#/components/schemas/CheckChoiceOptions_1'
            required:
              - key
              - type
              - instructions
              - options
            additionalProperties: false
          - type: object
            properties:
              key:
                $ref: '#/components/schemas/CheckQuestionKey'
              type:
                type: string
                enum:
                  - score
              instructions:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              levels:
                $ref: '#/components/schemas/CheckScoreLevels_1'
            required:
              - key
              - type
              - instructions
              - levels
            additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 8
    CheckBooleanRuleThresholds_1:
      type: object
      properties:
        type:
          type: string
          enum:
            - boolean
        question_key:
          $ref: '#/components/schemas/CheckQuestionKey'
        expected:
          type: boolean
        false_max:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
        true_min:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
      required:
        - type
        - question_key
        - expected
        - false_max
        - true_min
      additionalProperties: false
    Objects_110:
      type: object
      properties:
        type:
          type: string
          enum:
            - choice_matches
        question_key:
          $ref: '#/components/schemas/CheckQuestionKey'
        option_keys:
          $ref: '#/components/schemas/CheckChoiceMatchesOptions_1'
        min_probability:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
        min_margin:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
      required:
        - type
        - question_key
        - option_keys
        - min_probability
        - min_margin
      additionalProperties: false
    CheckScoreTailRuleThresholds_1:
      type: object
      properties:
        type:
          type: string
          enum:
            - score_tail
        question_key:
          $ref: '#/components/schemas/CheckQuestionKey'
        at_or_above_level:
          type: integer
          allOf:
            - minimum: 0
        false_max:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
        true_min:
          type: number
          allOf:
            - minimum: 0
            - maximum: 1
      required:
        - type
        - question_key
        - at_or_above_level
        - false_max
        - true_min
      additionalProperties: false
    Union_249:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - file_tree
            file_tree_id:
              $ref: '#/components/schemas/FileTreeId'
            mount_path:
              $ref: '#/components/schemas/MountPath'
            version_policy:
              $ref: '#/components/schemas/Union_250'
            access:
              $ref: '#/components/schemas/Union_251'
            writeback:
              type: 'null'
          required:
            - kind
            - file_tree_id
            - mount_path
            - version_policy
            - access
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - file_tree
            file_tree_id:
              $ref: '#/components/schemas/FileTreeId'
            mount_path:
              $ref: '#/components/schemas/MountPath'
            version_policy:
              $ref: '#/components/schemas/Union_250'
            access:
              type: string
              enum:
                - read_write
            writeback:
              $ref: '#/components/schemas/Objects_132'
          required:
            - kind
            - file_tree_id
            - mount_path
            - version_policy
            - access
            - writeback
          additionalProperties: false
    Objects_133:
      type: object
      properties:
        kind:
          type: string
          enum:
            - file
        file_id:
          $ref: '#/components/schemas/FileId'
        mount_path:
          $ref: '#/components/schemas/MountPath'
        access:
          type: string
          enum:
            - read_only
      required:
        - kind
        - file_id
        - mount_path
        - access
      additionalProperties: false
    Union_252:
      type: string
      enum:
        - read_only
        - read_write
    Union_216:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - ambient
                - direct
            root_external_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
            thread_external_id:
              type: 'null'
          required:
            - kind
            - root_external_id
            - thread_external_id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - thread
            root_external_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
            thread_external_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - root_external_id
            - thread_external_id
          additionalProperties: false
    Objects_136:
      type: object
      properties:
        id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 64
            - pattern: ^[A-Za-z0-9_]+$
        name:
          type: string
          allOf:
            - maxLength: 255
        condition:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - predicates
                predicates:
                  type: array
                  items:
                    $ref: '#/components/schemas/Union_254'
                  allOf:
                    - minItems: 1
                    - maxItems: 10
                check: false
                input:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - trigger_payload
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - previous_step_output
                      required:
                        - kind
                      additionalProperties: false
              required:
                - kind
                - predicates
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - check
                check:
                  $ref: '#/components/schemas/Union_255'
                predicates: false
                input:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - trigger_payload
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - previous_step_output
                      required:
                        - kind
                      additionalProperties: false
              required:
                - kind
                - check
              additionalProperties: false
        group:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 64
            - pattern: ^[A-Za-z0-9_]+$
        action:
          anyOf:
            - anyOf:
                - type: object
                  properties:
                    action:
                      type: string
                      enum:
                        - run_agent
                    agent:
                      $ref: '#/components/schemas/ManagedAgentsAgentParams'
                    agent_deployment_revision_selection: false
                    outcome:
                      $ref: '#/components/schemas/Objects_130'
                    prompt:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 16384
                    input: false
                  required:
                    - action
                    - agent
                    - prompt
                  additionalProperties: false
                - type: object
                  properties:
                    action:
                      type: string
                      enum:
                        - run_agent
                    agent:
                      $ref: '#/components/schemas/ManagedAgentsAgentParams'
                    agent_deployment_revision_selection: false
                    outcome:
                      $ref: '#/components/schemas/Objects_130'
                    prompt:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 16384
                    input:
                      type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - trigger_payload
                      required:
                        - kind
                      additionalProperties: false
                  required:
                    - action
                    - agent
                    - prompt
                    - input
                  additionalProperties: false
                - type: object
                  properties:
                    action:
                      type: string
                      enum:
                        - run_agent
                    agent:
                      $ref: '#/components/schemas/ManagedAgentsAgentParams'
                    agent_deployment_revision_selection: false
                    outcome:
                      $ref: '#/components/schemas/Objects_130'
                    input:
                      type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - previous_step_output
                      required:
                        - kind
                      additionalProperties: false
                    prompt: false
                  required:
                    - action
                    - agent
                    - input
                  additionalProperties: false
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - check
                check:
                  $ref: '#/components/schemas/Union_255'
              required:
                - action
                - check
              additionalProperties: false
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - call_connection
                connection:
                  $ref: '#/components/schemas/ConnectionId'
                tool:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                arguments:
                  $ref: '#/components/schemas/AutomationStepArguments'
                acted_as: false
              required:
                - action
                - connection
                - tool
              additionalProperties: false
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - request_approval
                approver:
                  $ref: '#/components/schemas/PrincipalId'
                message:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 16384
                timeout_seconds:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                    - maximum: 604800
              required:
                - action
                - approver
                - message
              additionalProperties: false
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - wait
                seconds:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                    - maximum: 604800
              required:
                - action
                - seconds
              additionalProperties: false
      required:
        - id
        - action
      additionalProperties: false
    Objects_137:
      type: object
      properties:
        kind:
          type: string
          enum:
            - previous_step_output
      required:
        - kind
      additionalProperties: false
    AutomationDecisionCheckInput:
      type: object
      properties:
        kind:
          type: string
          enum:
            - check
        check:
          anyOf:
            - type: object
              properties:
                model_routing_profile_key:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                tier:
                  $ref: '#/components/schemas/Union_150'
                instructions:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                failure:
                  type: string
                  enum:
                    - fail_closed
              required:
                - model_routing_profile_key
                - instructions
                - failure
              additionalProperties: false
            - type: object
              properties:
                evaluation:
                  $ref: '#/components/schemas/Objects_109'
                rule:
                  $ref: '#/components/schemas/Union_213'
                failure:
                  type: string
                  enum:
                    - fail_closed
              required:
                - evaluation
                - rule
                - failure
              additionalProperties: false
        predicates: false
        input:
          anyOf:
            - $ref: '#/components/schemas/Objects_137'
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - trigger_payload
              required:
                - kind
              additionalProperties: false
      required:
        - kind
        - check
        - input
      additionalProperties: false
    ManagedAgentsAgentWithOverridesParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent_with_overrides
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness:
          $ref: '#/components/schemas/ManagedAgentsHarnessReference'
        mcp_servers:
          $ref: '#/components/schemas/Arrays_4'
        model:
          $ref: '#/components/schemas/ManagedAgentsModelConfigParams'
        skills:
          type: array
          items:
            $ref: '#/components/schemas/Union_29'
        system:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsSessionSystem'
            - type: 'null'
        tools:
          $ref: '#/components/schemas/Arrays_5'
      required:
        - type
        - id
      additionalProperties: false
    Union_235:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - manual
            error_type: false
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - error
            error_type:
              $ref: '#/components/schemas/Union_236'
          required:
            - kind
            - error_type
          additionalProperties: false
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    RunId:
      type: string
      allOf:
        - pattern: ^run_[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
    FlowReviewCriterionDescription:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
    Objects_96:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/CheckQuestionKey'
        type:
          type: string
          enum:
            - boolean
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        true_description:
          $ref: '#/components/schemas/CheckDescription'
        false_description:
          $ref: '#/components/schemas/CheckDescription'
      required:
        - key
        - type
        - instructions
      additionalProperties: false
    CheckQuestionKey:
      type: string
    CheckChoiceOptions_1:
      type: array
      items:
        $ref: '#/components/schemas/Objects_97'
      allOf:
        - minItems: 2
        - maxItems: 32
    CheckScoreLevels_1:
      type: array
      items:
        $ref: '#/components/schemas/CheckDescription'
      allOf:
        - minItems: 2
        - maxItems: 10
    CheckChoiceMatchesOptions_1:
      type: array
      items:
        $ref: '#/components/schemas/CheckQuestionKey'
      allOf:
        - minItems: 1
    FileTreeId:
      type: string
      allOf:
        - pattern: ^ftree_[0-9a-f]{32}$
    MountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    Union_250:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - latest
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - pinned
            version:
              type: integer
              allOf:
                - exclusiveMinimum: 0
          required:
            - kind
            - version
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - ref
            ref:
              $ref: '#/components/schemas/GitReference'
          required:
            - kind
            - ref
          additionalProperties: false
    Union_251:
      type: string
      enum:
        - read_only
        - read_write
    Objects_132:
      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}$
    Union_255:
      anyOf:
        - type: object
          properties:
            model_routing_profile_key:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            tier:
              $ref: '#/components/schemas/Union_150'
            instructions:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            failure:
              $ref: '#/components/schemas/Union_247'
          required:
            - model_routing_profile_key
            - instructions
            - failure
          additionalProperties: false
        - type: object
          properties:
            evaluation:
              $ref: '#/components/schemas/Objects_109'
            rule:
              $ref: '#/components/schemas/Union_213'
            failure:
              $ref: '#/components/schemas/Union_247'
          required:
            - evaluation
            - rule
            - failure
          additionalProperties: false
    ConnectionId:
      type: string
      allOf:
        - pattern: ^conn_[0-9a-f]{32}$
    AutomationStepArguments:
      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: 8192
              maximumDepth: 64
              maximumNodes: 8192
              maximumInspectionWork: 8192
            x-checkfu-unicode-scalar-values: true
      allOf:
        - x-checkfu-json-budget:
            maximumBytes: 8192
            maximumDepth: 64
            maximumNodes: 8192
            maximumInspectionWork: 8192
          x-checkfu-unicode-scalar-values: true
        - maxProperties: 8192
          description: JSON tool arguments of at most 8192 bytes
    ManagedAgentsHarnessReference:
      type: string
      allOf:
        - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})(?:@(?:latest|[1-9][0-9]{0,8}))?$
          description: >-
            a harness catalog name this deployment serves: claude-code, cline,
            codex, cursor, deepagents, deepseek, hermes, openclaw,
            openclaw-connected, opencode, pi, prime-agent
    Arrays_4:
      type: array
      items:
        $ref: '#/components/schemas/Union_27'
      allOf:
        - maxItems: 20
    ManagedAgentsModelConfigParams:
      anyOf:
        - type: string
        - type: object
          properties:
            id:
              type: string
            effort:
              anyOf:
                - anyOf:
                    - $ref: '#/components/schemas/Union_23'
                    - $ref: '#/components/schemas/Union_24'
                - type: 'null'
            inference_geo:
              anyOf:
                - $ref: '#/components/schemas/Union_11'
                - type: 'null'
            speed:
              anyOf:
                - type: string
                  enum:
                    - standard
                    - fast
                - type: 'null'
          required:
            - id
          additionalProperties: false
    Union_29:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - anthropic
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - custom
            skill_id:
              type: string
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - type
            - skill_id
          additionalProperties: false
    ManagedAgentsSessionSystem:
      type: string
    Arrays_5:
      type: array
      items:
        $ref: '#/components/schemas/ManagedAgentsToolParams'
      allOf:
        - maxItems: 128
    Union_236:
      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.project_fenced
        - runtime.project_limit_reached
        - retention.zdr_unsupported
        - runtime.checkpoint_expired
        - runtime.session_history_unavailable
        - runtime.harness_unavailable
        - runtime.harness_failed
        - runtime.runner_unavailable
        - runtime.provider_host_unavailable
        - runtime.lease_lost
        - runtime.start_timeout
        - runtime.allocation_failed
        - runtime.allocation_not_ready
        - runtime.provisioning_suspended
        - runtime.turn_deadline_exceeded
        - runtime.observation_gap
        - runtime.observation_conflict
        - runtime.attestation_invalid
        - runtime.harness_incompatible
        - runtime.target_mismatch
        - runtime.internal
    CheckDescription:
      type: string
      allOf:
        - minLength: 1
    Objects_97:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/CheckQuestionKey'
        description:
          $ref: '#/components/schemas/CheckDescription'
      required:
        - key
        - description
      additionalProperties: false
    GitReference:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
        - pattern: ^\S+$
    Union_27:
      anyOf:
        - 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
        - $ref: '#/components/schemas/ManagedAgentsConnectionMcpServerParams'
    Union_23:
      type: string
      enum:
        - low
        - medium
        - high
        - xhigh
        - max
    Union_24:
      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
    Union_11:
      type: string
      enum:
        - global
        - us
    ManagedAgentsToolParams:
      anyOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - agent_toolset_20260401
            configs:
              type: array
              items:
                $ref: '#/components/schemas/ManagedAgentsAgentToolConfigParams'
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_14'
                - type: 'null'
          required:
            - type
          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
                    allOf:
                      - minLength: 1
                      - maxLength: 128
                  enabled:
                    type: boolean
                  permission_policy:
                    $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                required:
                  - name
                additionalProperties: false
            default_config:
              anyOf:
                - $ref: '#/components/schemas/Objects_14'
                - type: 'null'
          required:
            - type
            - mcp_server_name
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_15'
    ManagedAgentsConnectionMcpServerParams:
      type: object
      properties:
        type:
          type: string
          enum:
            - connection
        name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        connection_id:
          $ref: '#/components/schemas/ConnectionId'
      required:
        - type
        - name
        - connection_id
      additionalProperties: false
      description: >-
        An explicit governed Connection account exposed under a named MCP
        toolset.
    ManagedAgentsAgentToolConfigParams:
      anyOf:
        - type: object
          properties:
            name:
              type: string
              enum:
                - bash
            type:
              type: string
              enum:
                - bash
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - edit
            type:
              type: string
              enum:
                - edit
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - glob
            type:
              type: string
              enum:
                - glob
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - grep
            type:
              type: string
              enum:
                - grep
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - read
            type:
              type: string
              enum:
                - read
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_fetch
            type:
              type: string
              enum:
                - web_fetch
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_6'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_6'
            max_content_tokens:
              anyOf:
                - type: integer
                  allOf:
                    - exclusiveMinimum: 0
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - web_search
            type:
              type: string
              enum:
                - web_search
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
            allowed_domains:
              $ref: '#/components/schemas/Arrays_6'
            blocked_domains:
              $ref: '#/components/schemas/Arrays_6'
            user_location:
              anyOf:
                - $ref: '#/components/schemas/Objects_13'
                - type: 'null'
          required:
            - name
          additionalProperties: false
        - type: object
          properties:
            name:
              type: string
              enum:
                - write
            type:
              type: string
              enum:
                - write
            enabled:
              anyOf:
                - type: boolean
                - type: 'null'
            permission_policy:
              anyOf:
                - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
                - type: 'null'
          required:
            - name
          additionalProperties: false
    Objects_14:
      type: object
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
        permission_policy:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsPermissionPolicy'
            - type: 'null'
      additionalProperties: false
    ManagedAgentsPermissionPolicy:
      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
    Objects_15:
      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/ManagedAgentsCustomToolInputSchema'
      required:
        - type
        - name
        - description
        - input_schema
      additionalProperties: false
    Arrays_6:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 255
      allOf:
        - minItems: 1
        - maxItems: 64
    Objects_13:
      type: object
      properties:
        type:
          type: string
          enum:
            - approximate
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsIsoCountryCode'
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - $ref: '#/components/schemas/ManagedAgentsIanaTimeZone'
            - type: 'null'
      required:
        - type
      additionalProperties: false
    ManagedAgentsCustomToolInputSchema:
      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.
    ManagedAgentsIsoCountryCode:
      type: string
      allOf:
        - pattern: ^[A-Z]{2}$
    ManagedAgentsIanaTimeZone:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    JsonValue:
      description: >-
        A value in the JSON data model: null, boolean, finite number, string,
        array, or object.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````