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

# Build

> Private Builder preview: start_draft (idea, website or typed definition), import_package (base64 Darwin Agent ZIP), import_source, billing_summary, save_draft, get_draft, list_drafts, check_slug, validate_draft, export_draft, export_destination, start_test, get_job, resume_job and cancel_job. billing_summary also requires payments:read and returns the owner plan, credit-pack catalog, available credits and payment-method readiness. Test submission/resumption and release preparation require a usage payment method on file. Node execution rates still require a verified quote. Account-owned draft reads require builder:read; save and test mutations require builder:write. save_draft uses expectedRevision and Idempotency-Key. start_test pins a saved revision; resume_job executes supported TypeScript in a configured isolated local runner. export_draft returns a base64 Darwin Agent ZIP archive alongside structured metadata. Structural validation is not execution evidence. Legacy agent-definition actions remain compatible under their existing scopes.

> [!NOTE]
>
> Private Builder preview. Account persistence requires the Builder migration. Tests require a configured isolated runner. Generation, managed resources, and custom-component compilation are not yet connected.

Begin a private draft without signing in on the web. Sign in to save it to your account. Browser drafts are local to that browser until saved.

Use `POST /api/v3/build` with an `action`:

* `import_source`: normalize supported JSON or Markdown source without executing it.
* `save_draft`: save the full draft with `expectedRevision` (0 for a new draft). Reuse the returned `draftId` and revision for edits.
* `get_draft`, `list_drafts`, `check_slug`: inspect your private drafts or check a name. Checking does not reserve a slug.
* `validate_draft`, `export_draft`: check a saved definition or export it.
* `start_test`: create a test for a saved revision and operation. `resume_job` runs it; `get_job` reads it and `cancel_job` cancels it.

Draft reads require `builder:read`; saves and test mutations require `builder:write`. Saves and starting tests require `Idempotency-Key`. Keep the key unchanged when retrying the same request. A stale revision returns a conflict instead of overwriting your work.

Tests support TypeScript without private connections, third-party dependencies, or network access in the initial isolated runner. Unsupported adapters fail explicitly. Structural validation does not prove that an operation works.

MCP exposes the same commands through `build`, with `command` and `idempotencyKey`. A component manifest is preserved in the draft; it is not proof that a custom component package has compiled or rendered.

Legacy agent-definition commands remain available with their existing resource scopes. Their `test_agent` and `test_operation` actions only validate definitions.

When ready, use [Publish](https://darwin.so/docs/studio/publish.md) to prepare a saved revision.


## OpenAPI

````yaml openapi-publish.json POST /v3/build
openapi: 3.1.0
info:
  title: Publish
  version: 3.0.0
  description: >-
    Owner-authorized agent and operation publishing, operating decisions and
    analytics, and durable campaign management. Publishing records does not
    bypass independent execution verification. Campaign submission requests
    review; it does not activate delivery or authorize spending.
servers:
  - url: https://api.darwin.so/api
security: []
paths:
  /v3/build:
    post:
      tags:
        - Build
      summary: Build
      description: >-
        Private Builder preview: start_draft (idea, website or typed
        definition), import_package (base64 Darwin Agent ZIP), import_source,
        billing_summary, save_draft, get_draft, list_drafts, check_slug,
        validate_draft, export_draft, export_destination, start_test, get_job,
        resume_job and cancel_job. billing_summary also requires payments:read
        and returns the owner plan, credit-pack catalog, available credits and
        payment-method readiness. Test submission/resumption and release
        preparation require a usage payment method on file. Node execution rates
        still require a verified quote. Account-owned draft reads require
        builder:read; save and test mutations require builder:write. save_draft
        uses expectedRevision and Idempotency-Key. start_test pins a saved
        revision; resume_job executes supported TypeScript in a configured
        isolated local runner. export_draft returns a base64 Darwin Agent ZIP
        archive alongside structured metadata. Structural validation is not
        execution evidence. Legacy agent-definition actions remain compatible
        under their existing scopes.
      operationId: build
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          description: >-
            Stable key for this exact mutation. Reusing it with different input
            returns 409.
          schema:
            type: string
            minLength: 1
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - oneOf:
                    - type: object
                      properties:
                        action:
                          type: string
                          const: list_templates
                      required:
                        - action
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_template
                        slug:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - slug
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: billing_summary
                      required:
                        - action
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: search_index
                        query:
                          type: string
                          maxLength: 120
                      required:
                        - action
                        - query
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: import_index
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - agentId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: list_nodes
                        query:
                          default: ''
                          type: string
                          maxLength: 200
                        offset:
                          default: 0
                          type: integer
                          minimum: 0
                          maximum: 10000
                      required:
                        - action
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_node
                        nodeId:
                          type: string
                          minLength: 1
                          maxLength: 200
                      required:
                        - action
                        - nodeId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: validate_execution_plan
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - draftId
                        - revision
                        - operationId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: start_draft
                        input:
                          oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: idea
                                description:
                                  type: string
                                  minLength: 1
                                  maxLength: 20000
                              required:
                                - kind
                                - description
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: website
                                url:
                                  type: string
                                  format: uri
                              required:
                                - kind
                                - url
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: definition
                                format:
                                  default: auto
                                  type: string
                                  enum:
                                    - auto
                                    - openapi
                                    - mcp
                                    - a2a
                                    - openai
                                    - claude
                                    - pap
                                    - ucp
                                    - acp
                                    - webmcp
                                    - ard
                                    - x402
                                    - mpp
                                    - ap2
                                    - markdown
                                filename:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                source:
                                  type: string
                                  minLength: 1
                                  maxLength: 500000
                              required:
                                - kind
                                - filename
                                - source
                              additionalProperties: false
                      required:
                        - action
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: generate_draft
                        message:
                          type: string
                          minLength: 1
                          maxLength: 20000
                        draft:
                          type: object
                          properties:
                            schemaVersion:
                              type: number
                              const: 1
                            technicalLevel:
                              default: unspecified
                              type: string
                              enum:
                                - unspecified
                                - guided
                                - standard
                                - advanced
                            identity:
                              type: object
                              properties:
                                name:
                                  default: ''
                                  type: string
                                  maxLength: 160
                                slug:
                                  default: ''
                                  type: string
                                  maxLength: 32
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                purpose:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                creationContext:
                                  default: unspecified
                                  type: string
                                  enum:
                                    - unspecified
                                    - personal
                                    - business_idea
                                    - digital_product
                                    - physical_service
                                logo:
                                  default: ''
                                  type: string
                                  maxLength: 500000
                                sphere:
                                  default: ''
                                  type: string
                                  maxLength: 500000
                                audience:
                                  default: both
                                  type: string
                                  enum:
                                    - humans
                                    - agents
                                    - both
                                humanIcp:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                agentIcp:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                intendedUses:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                exclusions:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                publisher:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                website:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                support:
                                  default: ''
                                  type: string
                                  maxLength: 320
                                languages:
                                  default:
                                    - en
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 80
                                regions:
                                  default: []
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 80
                                category:
                                  default: Other
                                  type: string
                                  enum:
                                    - Business & Productivity
                                    - Research & Data
                                    - Developer Tools
                                    - Sales & Marketing
                                    - Shopping & Commerce
                                    - Local Services & Booking
                                    - Finance & Administration
                                    - Creative & Media
                                    - Education
                                    - Health & Wellness
                                    - Travel & Hospitality
                                    - Personal & Lifestyle
                                    - Communication & Community
                                    - Other
                                secondaryCategories:
                                  default: []
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - Business & Productivity
                                      - Research & Data
                                      - Developer Tools
                                      - Sales & Marketing
                                      - Shopping & Commerce
                                      - Local Services & Booking
                                      - Finance & Administration
                                      - Creative & Media
                                      - Education
                                      - Health & Wellness
                                      - Travel & Hospitality
                                      - Personal & Lifestyle
                                      - Communication & Community
                                      - Other
                                privacyUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                termsUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                              additionalProperties: false
                            visibility:
                              default: private
                              type: string
                              const: private
                            hosting:
                              default: darwin
                              type: string
                              enum:
                                - existing
                                - darwin
                                - custom
                            sources:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  kind:
                                    type: string
                                    maxLength: 80
                                  locator:
                                    type: string
                                    maxLength: 20000
                                  evidence:
                                    type: string
                                    maxLength: 20000
                                  assumptions:
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                required:
                                  - id
                                  - kind
                                  - locator
                                  - evidence
                                  - assumptions
                            files:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  path:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                                  content:
                                    type: string
                                    maxLength: 500000
                                  mediaType:
                                    default: text/plain
                                    type: string
                                    maxLength: 120
                                required:
                                  - path
                                  - content
                                additionalProperties: false
                            operations:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  name:
                                    type: string
                                    maxLength: 160
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 20000
                                  examples:
                                    default: []
                                    maxItems: 20
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                  guidance:
                                    type: object
                                    properties:
                                      openingQuestion:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      primaryAction:
                                        default: ''
                                        type: string
                                        maxLength: 80
                                      context:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      afterInput:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      success:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      recovery:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                    additionalProperties: false
                                  experience:
                                    type: object
                                    properties:
                                      version:
                                        type: number
                                        const: 1
                                      revision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      initialState:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                      instructions:
                                        default: ''
                                        type: string
                                        maxLength: 4000
                                      states:
                                        minItems: 1
                                        maxItems: 64
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            description:
                                              type: string
                                              maxLength: 1000
                                            instructions:
                                              default: ''
                                              type: string
                                              maxLength: 2000
                                            executionStatuses:
                                              minItems: 1
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - not_started
                                                  - queued
                                                  - running
                                                  - waiting
                                                  - completed
                                                  - failed
                                                  - cancelled
                                                  - unavailable
                                            transitions:
                                              maxItems: 64
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            variants:
                                              minItems: 1
                                              maxItems: 1000
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                          required:
                                            - id
                                            - description
                                            - executionStatuses
                                            - transitions
                                            - variants
                                          additionalProperties: false
                                      variants:
                                        minItems: 1
                                        maxItems: 1000
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            description:
                                              type: string
                                              maxLength: 1000
                                            instructions:
                                              default: ''
                                              type: string
                                              maxLength: 2000
                                            modalities:
                                              default:
                                                - text
                                                - voice
                                              minItems: 1
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - text
                                                  - voice
                                                  - image
                                                  - audio
                                                  - video
                                                  - file
                                            presentation:
                                              type: object
                                              properties:
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 160
                                                summary:
                                                  type: string
                                                  maxLength: 3000
                                                layout:
                                                  type: string
                                                  enum:
                                                    - stack
                                                    - columns
                                                representation:
                                                  type: string
                                                  enum:
                                                    - components
                                                    - react
                                                    - media
                                                    - agent
                                                artifact:
                                                  anyOf:
                                                    - anyOf:
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: research
                                                            question:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 160
                                                              description: >-
                                                                One focused research question in 10-18
                                                                words.
                                                            focus:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                            sourceTypes:
                                                              maxItems: 3
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                          required:
                                                            - kind
                                                            - question
                                                            - focus
                                                            - sourceTypes
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: extraction
                                                            url:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 2048
                                                                - type: 'null'
                                                            purpose:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 160
                                                            fields:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  description:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 110
                                                                required:
                                                                  - name
                                                                  - description
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - url
                                                            - purpose
                                                            - fields
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: directory
                                                            audience:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                              description: >-
                                                                The target prospect audience, e.g.
                                                                independent fitness studios. Never the
                                                                role of the person using this interface.
                                                            criteria:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  label:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  value:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                required:
                                                                  - label
                                                                  - value
                                                                additionalProperties: false
                                                            columns:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                            questions:
                                                              maxItems: 3
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                          required:
                                                            - kind
                                                            - audience
                                                            - criteria
                                                            - columns
                                                            - questions
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: studio
                                                            headline:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 60
                                                            direction:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 140
                                                            palette:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  color:
                                                                    type: string
                                                                    pattern: ^#[0-9a-fA-F]{6}$
                                                                required:
                                                                  - name
                                                                  - color
                                                                additionalProperties: false
                                                            imageBrief:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 420
                                                          required:
                                                            - kind
                                                            - headline
                                                            - direction
                                                            - palette
                                                            - imageBrief
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: storyboard
                                                            durationSeconds:
                                                              type: number
                                                              minimum: 1
                                                              maximum: 600
                                                            aspectRatio:
                                                              type: string
                                                              enum:
                                                                - '9:16'
                                                                - '16:9'
                                                                - '1:1'
                                                                - '4:5'
                                                            scenes:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  start:
                                                                    type: number
                                                                    minimum: 0
                                                                  end:
                                                                    type: number
                                                                    exclusiveMinimum: 0
                                                                  visual:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 350
                                                                  caption:
                                                                    type: string
                                                                    maxLength: 150
                                                                required:
                                                                  - title
                                                                  - start
                                                                  - end
                                                                  - visual
                                                                  - caption
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - durationSeconds
                                                            - aspectRatio
                                                            - scenes
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: editorial
                                                            script:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 3000
                                                            tone:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                            targetSeconds:
                                                              anyOf:
                                                                - type: number
                                                                  minimum: 1
                                                                  maximum: 1800
                                                                - type: 'null'
                                                          required:
                                                            - kind
                                                            - script
                                                            - tone
                                                            - targetSeconds
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: comparison
                                                            question:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 90
                                                              description: >-
                                                                A concise decision question in 4-10
                                                                words, not a restatement of the entire
                                                                brief.
                                                            criteria:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 50
                                                            options:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 42
                                                                  values:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      maxLength: {}
                                                                required:
                                                                  - name
                                                                  - values
                                                                additionalProperties: false
                                                            basis:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                              description: >-
                                                                State whether these are proposed
                                                                approaches, supplied facts, or verified
                                                                evidence. Never invent product features
                                                                or scores.
                                                          required:
                                                            - kind
                                                            - question
                                                            - criteria
                                                            - options
                                                            - basis
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: planner
                                                            title:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 80
                                                            steps:
                                                              minItems: 2
                                                              maxItems: 6
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 80
                                                                  detail:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  durationMinutes:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                required:
                                                                  - title
                                                                  - detail
                                                                  - durationMinutes
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - title
                                                            - steps
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: estimate
                                                            title:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 80
                                                            currency:
                                                              type: string
                                                              enum:
                                                                - USD
                                                                - EUR
                                                                - GBP
                                                                - CAD
                                                                - AUD
                                                                - INR
                                                                - JPY
                                                            items:
                                                              minItems: 1
                                                              maxItems: 6
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  label:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 60
                                                                    description: >-
                                                                      Item name only. Never duplicate
                                                                      quantities, currency amounts or unit
                                                                      costs in this label; the user can edit
                                                                      those independently.
                                                                  quantity:
                                                                    type: number
                                                                    minimum: 0
                                                                    maximum: 1000000
                                                                  unitCost:
                                                                    type: number
                                                                    minimum: 0
                                                                    maximum: 100000000
                                                                required:
                                                                  - label
                                                                  - quantity
                                                                  - unitCost
                                                                additionalProperties: false
                                                            contingencyPercent:
                                                              type: number
                                                              minimum: 0
                                                              maximum: 100
                                                            assumptions:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 300
                                                              description: >-
                                                                Explicitly identify any assumed prices,
                                                                quantities and currency. These are
                                                                editable estimates, not provider quotes.
                                                          required:
                                                            - kind
                                                            - title
                                                            - currency
                                                            - items
                                                            - contingencyPercent
                                                            - assumptions
                                                          additionalProperties: false
                                                    - type: 'null'
                                                journey:
                                                  anyOf:
                                                    - type: object
                                                      properties:
                                                        stage:
                                                          type: string
                                                          enum:
                                                            - input
                                                            - review
                                                            - ready
                                                            - complete
                                                        instruction:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 160
                                                        action:
                                                          anyOf:
                                                            - type: object
                                                              properties:
                                                                kind:
                                                                  default: continue
                                                                  type: string
                                                                  enum:
                                                                    - continue
                                                                    - execute
                                                                    - copy
                                                                label:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 60
                                                                intent:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 800
                                                                  description: >-
                                                                    A concrete next-step instruction in
                                                                    plain language. Never an opaque command
                                                                    token such as confirm_criteria.
                                                                operationId:
                                                                  anyOf:
                                                                    - type: string
                                                                      maxLength: 200
                                                                    - type: 'null'
                                                                argumentsJson:
                                                                  anyOf:
                                                                    - type: string
                                                                      maxLength: 16000
                                                                    - type: 'null'
                                                              required:
                                                                - label
                                                                - intent
                                                                - operationId
                                                                - argumentsJson
                                                              additionalProperties: false
                                                            - type: 'null'
                                                      required:
                                                        - stage
                                                        - instruction
                                                        - action
                                                      additionalProperties: false
                                                    - type: 'null'
                                                design:
                                                  type: object
                                                  properties:
                                                    character:
                                                      type: string
                                                      enum:
                                                        - editorial
                                                        - research
                                                        - extraction
                                                        - directory
                                                        - storyboard
                                                        - studio
                                                        - comparison
                                                        - planner
                                                        - estimate
                                                        - utility
                                                    density:
                                                      type: string
                                                      enum:
                                                        - relaxed
                                                        - compact
                                                  required:
                                                    - character
                                                    - density
                                                  additionalProperties: false
                                                runtimeRegions:
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      id:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      sectionId:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      libraryDigest:
                                                        type: string
                                                        pattern: ^[a-f0-9]{64}$
                                                      status:
                                                        type: string
                                                        enum:
                                                          - generated
                                                          - ready
                                                          - unavailable
                                                      artifactId:
                                                        anyOf:
                                                          - type: string
                                                            format: uuid
                                                            pattern: >-
                                                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                          - type: 'null'
                                                      tree:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              nodes:
                                                                minItems: 1
                                                                maxItems: 12
                                                                type: array
                                                                items: {}
                                                            required:
                                                              - nodes
                                                            additionalProperties: false
                                                          - type: 'null'
                                                      inputFields:
                                                        maxItems: 16
                                                        type: array
                                                        items:
                                                          type: string
                                                          maxLength: 80
                                                      failure:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 120
                                                          - type: 'null'
                                                      model:
                                                        type: string
                                                        maxLength: 160
                                                      inputTokens:
                                                        type: integer
                                                        minimum: 0
                                                        maximum: 9007199254740991
                                                      outputTokens:
                                                        type: integer
                                                        minimum: 0
                                                        maximum: 9007199254740991
                                                    required:
                                                      - id
                                                      - sectionId
                                                      - libraryDigest
                                                      - status
                                                      - artifactId
                                                      - tree
                                                      - inputFields
                                                      - failure
                                                    additionalProperties: false
                                                sections:
                                                  minItems: 1
                                                  maxItems: 12
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      id:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      kind:
                                                        type: string
                                                        enum:
                                                          - message
                                                          - list
                                                          - fields
                                                          - operation
                                                          - progress
                                                          - results
                                                          - notice
                                                      title:
                                                        type: string
                                                        maxLength: 160
                                                      text:
                                                        type: string
                                                        maxLength: 4000
                                                      items:
                                                        maxItems: 20
                                                        type: array
                                                        items:
                                                          type: string
                                                          maxLength: 800
                                                      operationId:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 200
                                                          - type: 'null'
                                                    required:
                                                      - id
                                                      - kind
                                                      - title
                                                      - text
                                                      - items
                                                      - operationId
                                                    additionalProperties: false
                                                next:
                                                  maxItems: 3
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      label:
                                                        type: string
                                                        maxLength: 100
                                                      intent:
                                                        type: string
                                                        maxLength: 500
                                                      confidence:
                                                        type: number
                                                        minimum: 0
                                                        maximum: 1
                                                    required:
                                                      - label
                                                      - intent
                                                      - confidence
                                                    additionalProperties: false
                                                reactSource:
                                                  anyOf:
                                                    - type: string
                                                      maxLength: 50000
                                                    - type: 'null'
                                                mediaPrompt:
                                                  anyOf:
                                                    - type: string
                                                      maxLength: 4000
                                                    - type: 'null'
                                              required:
                                                - title
                                                - summary
                                                - layout
                                                - representation
                                                - sections
                                                - next
                                                - reactSource
                                                - mediaPrompt
                                              additionalProperties: false
                                            runtimeComponents:
                                              maxItems: 4
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  sectionId:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  instructions:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 4000
                                                  components:
                                                    default: []
                                                    maxItems: 30
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Z][A-Za-z0-9]*$
                                                  inputFields:
                                                    default: []
                                                    maxItems: 16
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                                required:
                                                  - id
                                                  - sectionId
                                                  - instructions
                                                additionalProperties: false
                                            argumentBindings:
                                              maxItems: 50
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  field:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 120
                                                  target:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 200
                                                required:
                                                  - field
                                                  - target
                                                additionalProperties: false
                                            bindings:
                                              default: []
                                              maxItems: 64
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  path:
                                                    minItems: 2
                                                    maxItems: 8
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Za-z0-9_-]+$
                                                  source:
                                                    type: string
                                                    enum:
                                                      - message
                                                      - field
                                                  field:
                                                    type: string
                                                    maxLength: 120
                                                required:
                                                  - path
                                                  - source
                                                additionalProperties: false
                                          required:
                                            - id
                                            - description
                                            - presentation
                                          additionalProperties: false
                                    required:
                                      - version
                                      - revision
                                      - initialState
                                      - states
                                      - variants
                                    additionalProperties: false
                                  customer:
                                    default: both
                                    type: string
                                    enum:
                                      - humans
                                      - agents
                                      - both
                                  inputSchema:
                                    default:
                                      type: object
                                      properties: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties: {}
                                  outputSchema:
                                    default:
                                      type: object
                                      properties: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties: {}
                                  acceptsFiles:
                                    default: false
                                    type: boolean
                                  executionPlan:
                                    type: object
                                    properties:
                                      version:
                                        type: number
                                        const: 1
                                      authoring:
                                        default: guided
                                        type: string
                                        enum:
                                          - guided
                                          - nodes
                                          - code
                                          - endpoint
                                      runtime:
                                        type: object
                                        properties:
                                          language:
                                            default: typescript
                                            type: string
                                            enum:
                                              - typescript
                                              - python
                                              - docker
                                          entrypoint:
                                            default: ''
                                            type: string
                                            maxLength: 240
                                          dockerfile:
                                            default: ''
                                            type: string
                                            maxLength: 240
                                        additionalProperties: false
                                      nodes:
                                        default: []
                                        maxItems: 50
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 80
                                              pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                                            nodeId:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                            nodeVersion:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            group:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            input:
                                              default: {}
                                              type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                          required:
                                            - id
                                            - nodeId
                                            - nodeVersion
                                            - group
                                          additionalProperties: false
                                    required:
                                      - version
                                    additionalProperties: false
                                  implementation:
                                    type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - api
                                          - tool
                                          - workflow
                                          - typescript
                                          - model
                                          - data
                                          - file
                                          - human
                                          - browser
                                      source:
                                        default: ''
                                        type: string
                                        maxLength: 20000
                                      endpoint:
                                        default: ''
                                        type: string
                                        maxLength: 2048
                                      method:
                                        default: POST
                                        type: string
                                        enum:
                                          - GET
                                          - POST
                                          - PUT
                                          - PATCH
                                          - DELETE
                                      language:
                                        default: typescript
                                        type: string
                                        maxLength: 40
                                      steps:
                                        default: []
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            name:
                                              type: string
                                              maxLength: 20000
                                            kind:
                                              type: string
                                              maxLength: 80
                                            configuration:
                                              type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                          required:
                                            - id
                                            - name
                                            - kind
                                            - configuration
                                      dependencies:
                                        default: []
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 200
                                    required:
                                      - kind
                                    additionalProperties: false
                                  connectionIds:
                                    default: []
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 120
                                  secretRefs:
                                    default: []
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 120
                                  effects:
                                    default: read
                                    type: string
                                    enum:
                                      - read
                                      - write
                                      - mixed
                                  permissions:
                                    default: []
                                    maxItems: 30
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                  approval:
                                    default: writes
                                    type: string
                                    enum:
                                      - always
                                      - writes
                                      - none
                                  limits:
                                    default:
                                      timeoutSeconds: 30
                                      retries: 0
                                    type: object
                                    properties:
                                      timeoutSeconds:
                                        default: 30
                                        type: integer
                                        minimum: 1
                                        maximum: 300
                                      retries:
                                        default: 0
                                        type: integer
                                        minimum: 0
                                        maximum: 3
                                  pricing:
                                    default:
                                      kind: free
                                    oneOf:
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: free
                                        required:
                                          - kind
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: fixed
                                          amountCents:
                                            type: integer
                                            exclusiveMinimum: 0
                                            maximum: 100000000
                                          currency:
                                            type: string
                                            const: USD
                                        required:
                                          - kind
                                          - amountCents
                                          - currency
                                  tests:
                                    default: []
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          minLength: 1
                                          maxLength: 120
                                        name:
                                          type: string
                                          maxLength: 20000
                                        input:
                                          type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties: {}
                                        expected: {}
                                      required:
                                        - id
                                        - name
                                        - input
                                required:
                                  - id
                                  - name
                                  - implementation
                                additionalProperties: false
                            appearance:
                              default:
                                source: darwin_ui
                                instructions: ''
                                generationBrief: ''
                              type: object
                              properties:
                                source:
                                  default: darwin_ui
                                  type: string
                                  enum:
                                    - darwin_ui
                                    - uploaded
                                    - generated
                                library:
                                  type: object
                                  properties:
                                    schemaVersion:
                                      type: number
                                      const: 1
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                    version:
                                      type: string
                                      pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                    importName:
                                      type: string
                                      pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                    entry:
                                      type: string
                                      minLength: 1
                                    files:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties:
                                        type: string
                                        maxLength: 500000
                                    components:
                                      minItems: 1
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          export:
                                            type: string
                                            pattern: ^[A-Z][A-Za-z0-9]*$
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          props:
                                            type: string
                                            minLength: 1
                                            maxLength: 10000
                                          example:
                                            type: string
                                            minLength: 1
                                            maxLength: 20000
                                          human:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              states:
                                                minItems: 1
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - input
                                                    - running
                                                    - needs_input
                                                    - approval
                                                    - success
                                                    - empty
                                                    - error
                                            required:
                                              - description
                                              - states
                                            additionalProperties: false
                                          agent:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              outputSchema:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              example:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              instructions:
                                                default: ''
                                                type: string
                                                maxLength: 10000
                                            required:
                                              - description
                                              - outputSchema
                                              - example
                                            additionalProperties: false
                                        required:
                                          - export
                                          - description
                                          - props
                                          - example
                                        additionalProperties: false
                                  required:
                                    - schemaVersion
                                    - name
                                    - version
                                    - importName
                                    - entry
                                    - files
                                    - components
                                  additionalProperties: false
                                instructions:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                generationBrief:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                brand:
                                  type: object
                                  properties:
                                    primary:
                                      default: '#0071E3'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    secondary:
                                      default: '#AF52DE'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    background:
                                      default: '#FFFFFF'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    foreground:
                                      default: '#171717'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    font:
                                      default: system
                                      type: string
                                      enum:
                                        - system
                                        - serif
                                        - mono
                                  additionalProperties: false
                                loading:
                                  type: object
                                  properties:
                                    kind:
                                      default: darwin
                                      type: string
                                      enum:
                                        - darwin
                                        - pulse
                                        - media
                                    asset:
                                      type: string
                                      maxLength: 1400000
                                      pattern: >-
                                        ^data:(image\/(gif|webp)|video\/(mp4|webm));base64,[A-Za-z0-9+/]+=*$
                                    poster:
                                      type: string
                                      maxLength: 700000
                                      pattern: >-
                                        ^data:image\/(png|jpeg);base64,[A-Za-z0-9+/]+=*$
                                  additionalProperties: false
                              additionalProperties: false
                            authentication:
                              default:
                                mode: optional
                                humanProviders:
                                  - darwin
                                agentCredentials:
                                  - oauth
                                  - service_account
                              type: object
                              properties:
                                mode:
                                  default: optional
                                  type: string
                                  enum:
                                    - optional
                                    - required
                                humanProviders:
                                  default:
                                    - darwin
                                  maxItems: 5
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - darwin
                                      - google
                                      - apple
                                      - email
                                      - phone
                                agentCredentials:
                                  default:
                                    - oauth
                                    - service_account
                                  maxItems: 2
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - oauth
                                      - service_account
                              additionalProperties: false
                            billing:
                              default:
                                acceptedMethods:
                                  - card
                                  - bank
                                processor: unconfigured
                                provider: ''
                                connectionRef: ''
                                checkoutUrl: ''
                                existingSystem: online_checkout
                              type: object
                              properties:
                                acceptedMethods:
                                  default:
                                    - card
                                    - bank
                                  maxItems: 13
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - card
                                      - bank
                                      - link
                                      - apple_pay
                                      - google_pay
                                      - darwin_wallet
                                      - mpp
                                      - x402
                                      - spt
                                      - ucp
                                      - acp
                                      - stripe_dynamic
                                      - hosted_checkout
                                processor:
                                  default: unconfigured
                                  type: string
                                  enum:
                                    - unconfigured
                                    - darwin
                                    - existing
                                provider:
                                  default: ''
                                  type: string
                                  maxLength: 100
                                connectionRef:
                                  default: ''
                                  type: string
                                  maxLength: 200
                                checkoutUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                existingSystem:
                                  default: online_checkout
                                  type: string
                                  enum:
                                    - online_checkout
                                    - point_of_sale
                                    - commerce_platform
                                    - invoicing
                                    - custom
                              additionalProperties: false
                            advertising:
                              default:
                                enabled: false
                                audience: ''
                                regions: ''
                                languages: ''
                                keywords: []
                                negativeKeywords: []
                                match: phrase
                                objective: visits
                                bidModel: cpc
                                bidCredits: null
                                dailyBudgetCredits: null
                                totalBudgetCredits: null
                                conversion: operation_completed
                                operationId: ''
                                economics:
                                  profitCredits: null
                                  acquisitionPercent: null
                                  conversionPercent: null
                                  clickThroughPercent: null
                                externalChannels: []
                                otherChannel: ''
                                externalMonthlyBudgetCredits: null
                              type: object
                              properties:
                                enabled:
                                  default: false
                                  type: boolean
                                audience:
                                  default: ''
                                  type: string
                                  maxLength: 4000
                                regions:
                                  default: ''
                                  type: string
                                  maxLength: 1000
                                languages:
                                  default: ''
                                  type: string
                                  maxLength: 500
                                keywords:
                                  default: []
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                negativeKeywords:
                                  default: []
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                match:
                                  default: phrase
                                  type: string
                                  enum:
                                    - exact
                                    - phrase
                                    - broad
                                objective:
                                  default: visits
                                  type: string
                                  enum:
                                    - awareness
                                    - visits
                                    - conversions
                                bidModel:
                                  default: cpc
                                  type: string
                                  enum:
                                    - cpm
                                    - cpc
                                    - cpa
                                bidCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                dailyBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                totalBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                conversion:
                                  default: operation_completed
                                  type: string
                                  enum:
                                    - operation_completed
                                    - payment_completed
                                operationId:
                                  default: ''
                                  type: string
                                  maxLength: 120
                                economics:
                                  default:
                                    profitCredits: null
                                    acquisitionPercent: null
                                    conversionPercent: null
                                    clickThroughPercent: null
                                  type: object
                                  properties:
                                    profitCredits:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 1000000000
                                        - type: 'null'
                                    acquisitionPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                    conversionPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                    clickThroughPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                  additionalProperties: false
                                externalChannels:
                                  default: []
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - google_search
                                      - meta
                                      - other
                                otherChannel:
                                  default: ''
                                  type: string
                                  maxLength: 200
                                externalMonthlyBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                              additionalProperties: false
                            analytics:
                              default:
                                navigator: true
                                destinations: []
                                identityMode: anonymous
                                events:
                                  - operation_started
                                  - operation_completed
                                  - operation_failed
                              type: object
                              properties:
                                navigator:
                                  default: true
                                  type: boolean
                                  const: true
                                destinations:
                                  default: []
                                  maxItems: 10
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 120
                                      provider:
                                        type: string
                                        enum:
                                          - posthog
                                          - segment
                                          - amplitude
                                          - mixpanel
                                          - ga4
                                          - webhook
                                          - other
                                      enabled:
                                        default: true
                                        type: boolean
                                      connectionRef:
                                        default: ''
                                        type: string
                                        maxLength: 200
                                      projectRef:
                                        default: ''
                                        type: string
                                        maxLength: 200
                                    required:
                                      - id
                                      - provider
                                    additionalProperties: false
                                identityMode:
                                  default: anonymous
                                  type: string
                                  enum:
                                    - anonymous
                                    - pseudonymous
                                events:
                                  default:
                                    - operation_started
                                    - operation_completed
                                    - operation_failed
                                  maxItems: 6
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - operation_started
                                      - operation_completed
                                      - operation_failed
                                      - approval_requested
                                      - approval_resolved
                                      - payment_completed
                              additionalProperties: false
                            connections:
                              default: []
                              maxItems: 50
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  kind:
                                    type: string
                                    enum:
                                      - database
                                      - storage
                                      - model
                                      - payments
                                      - messaging
                                      - browser
                                      - other
                                  mode:
                                    type: string
                                    enum:
                                      - test
                                      - existing
                                      - managed
                                  reference:
                                    default: ''
                                    type: string
                                    maxLength: 200
                                  requirement:
                                    default: ''
                                    type: string
                                    maxLength: 20000
                                required:
                                  - id
                                  - kind
                                  - mode
                            distribution:
                              default:
                                - destination: navigator
                                  selected: true
                                  metadata: {}
                              maxItems: 20
                              type: array
                              items:
                                type: object
                                properties:
                                  destination:
                                    type: string
                                    enum:
                                      - navigator
                                      - web
                                      - chatgpt
                                      - claude
                                      - gemini
                                      - muse
                                      - instinct
                                      - mcp
                                      - a2a
                                      - poppy
                                      - ucp
                                      - acp
                                      - webmcp
                                      - openapi
                                      - imessage
                                      - whatsapp
                                      - slack
                                      - telegram
                                      - discord
                                  selected:
                                    type: boolean
                                  autoSelected:
                                    type: boolean
                                  metadata:
                                    default: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties:
                                      type: string
                                      maxLength: 10000
                                required:
                                  - destination
                                  - selected
                            messages:
                              default: []
                              maxItems: 200
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  role:
                                    type: string
                                    enum:
                                      - user
                                      - assistant
                                  text:
                                    type: string
                                    maxLength: 20000
                                  operationId:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                required:
                                  - id
                                  - role
                                  - text
                          required:
                            - schemaVersion
                            - identity
                          additionalProperties: false
                      required:
                        - action
                        - message
                        - draft
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: import_package
                        data:
                          type: string
                          maxLength: 4000000
                          pattern: ^[A-Za-z0-9+/]*={0,2}$
                      required:
                        - action
                        - data
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: import_source
                        filename:
                          type: string
                          minLength: 1
                          maxLength: 200
                        source:
                          type: string
                          maxLength: 500000
                      required:
                        - action
                        - filename
                        - source
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: save_draft
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        expectedRevision:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        draft:
                          type: object
                          properties:
                            schemaVersion:
                              type: number
                              const: 1
                            technicalLevel:
                              default: unspecified
                              type: string
                              enum:
                                - unspecified
                                - guided
                                - standard
                                - advanced
                            identity:
                              type: object
                              properties:
                                name:
                                  default: ''
                                  type: string
                                  maxLength: 160
                                slug:
                                  default: ''
                                  type: string
                                  maxLength: 32
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                purpose:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                creationContext:
                                  default: unspecified
                                  type: string
                                  enum:
                                    - unspecified
                                    - personal
                                    - business_idea
                                    - digital_product
                                    - physical_service
                                logo:
                                  default: ''
                                  type: string
                                  maxLength: 500000
                                sphere:
                                  default: ''
                                  type: string
                                  maxLength: 500000
                                audience:
                                  default: both
                                  type: string
                                  enum:
                                    - humans
                                    - agents
                                    - both
                                humanIcp:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                agentIcp:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                intendedUses:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                exclusions:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                publisher:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                website:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                support:
                                  default: ''
                                  type: string
                                  maxLength: 320
                                languages:
                                  default:
                                    - en
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 80
                                regions:
                                  default: []
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 80
                                category:
                                  default: Other
                                  type: string
                                  enum:
                                    - Business & Productivity
                                    - Research & Data
                                    - Developer Tools
                                    - Sales & Marketing
                                    - Shopping & Commerce
                                    - Local Services & Booking
                                    - Finance & Administration
                                    - Creative & Media
                                    - Education
                                    - Health & Wellness
                                    - Travel & Hospitality
                                    - Personal & Lifestyle
                                    - Communication & Community
                                    - Other
                                secondaryCategories:
                                  default: []
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - Business & Productivity
                                      - Research & Data
                                      - Developer Tools
                                      - Sales & Marketing
                                      - Shopping & Commerce
                                      - Local Services & Booking
                                      - Finance & Administration
                                      - Creative & Media
                                      - Education
                                      - Health & Wellness
                                      - Travel & Hospitality
                                      - Personal & Lifestyle
                                      - Communication & Community
                                      - Other
                                privacyUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                termsUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                              additionalProperties: false
                            visibility:
                              default: private
                              type: string
                              const: private
                            hosting:
                              default: darwin
                              type: string
                              enum:
                                - existing
                                - darwin
                                - custom
                            sources:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  kind:
                                    type: string
                                    maxLength: 80
                                  locator:
                                    type: string
                                    maxLength: 20000
                                  evidence:
                                    type: string
                                    maxLength: 20000
                                  assumptions:
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                required:
                                  - id
                                  - kind
                                  - locator
                                  - evidence
                                  - assumptions
                            files:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  path:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                                  content:
                                    type: string
                                    maxLength: 500000
                                  mediaType:
                                    default: text/plain
                                    type: string
                                    maxLength: 120
                                required:
                                  - path
                                  - content
                                additionalProperties: false
                            operations:
                              default: []
                              maxItems: 100
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  name:
                                    type: string
                                    maxLength: 160
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 20000
                                  examples:
                                    default: []
                                    maxItems: 20
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                  guidance:
                                    type: object
                                    properties:
                                      openingQuestion:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      primaryAction:
                                        default: ''
                                        type: string
                                        maxLength: 80
                                      context:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      afterInput:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      success:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                      recovery:
                                        default: ''
                                        type: string
                                        maxLength: 1200
                                    additionalProperties: false
                                  experience:
                                    type: object
                                    properties:
                                      version:
                                        type: number
                                        const: 1
                                      revision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      initialState:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                      instructions:
                                        default: ''
                                        type: string
                                        maxLength: 4000
                                      states:
                                        minItems: 1
                                        maxItems: 64
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            description:
                                              type: string
                                              maxLength: 1000
                                            instructions:
                                              default: ''
                                              type: string
                                              maxLength: 2000
                                            executionStatuses:
                                              minItems: 1
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - not_started
                                                  - queued
                                                  - running
                                                  - waiting
                                                  - completed
                                                  - failed
                                                  - cancelled
                                                  - unavailable
                                            transitions:
                                              maxItems: 64
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            variants:
                                              minItems: 1
                                              maxItems: 1000
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                          required:
                                            - id
                                            - description
                                            - executionStatuses
                                            - transitions
                                            - variants
                                          additionalProperties: false
                                      variants:
                                        minItems: 1
                                        maxItems: 1000
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            description:
                                              type: string
                                              maxLength: 1000
                                            instructions:
                                              default: ''
                                              type: string
                                              maxLength: 2000
                                            modalities:
                                              default:
                                                - text
                                                - voice
                                              minItems: 1
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - text
                                                  - voice
                                                  - image
                                                  - audio
                                                  - video
                                                  - file
                                            presentation:
                                              type: object
                                              properties:
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 160
                                                summary:
                                                  type: string
                                                  maxLength: 3000
                                                layout:
                                                  type: string
                                                  enum:
                                                    - stack
                                                    - columns
                                                representation:
                                                  type: string
                                                  enum:
                                                    - components
                                                    - react
                                                    - media
                                                    - agent
                                                artifact:
                                                  anyOf:
                                                    - anyOf:
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: research
                                                            question:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 160
                                                              description: >-
                                                                One focused research question in 10-18
                                                                words.
                                                            focus:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                            sourceTypes:
                                                              maxItems: 3
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                          required:
                                                            - kind
                                                            - question
                                                            - focus
                                                            - sourceTypes
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: extraction
                                                            url:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 2048
                                                                - type: 'null'
                                                            purpose:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 160
                                                            fields:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  description:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 110
                                                                required:
                                                                  - name
                                                                  - description
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - url
                                                            - purpose
                                                            - fields
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: directory
                                                            audience:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                              description: >-
                                                                The target prospect audience, e.g.
                                                                independent fitness studios. Never the
                                                                role of the person using this interface.
                                                            criteria:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  label:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  value:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                required:
                                                                  - label
                                                                  - value
                                                                additionalProperties: false
                                                            columns:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                            questions:
                                                              maxItems: 3
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                          required:
                                                            - kind
                                                            - audience
                                                            - criteria
                                                            - columns
                                                            - questions
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: studio
                                                            headline:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 60
                                                            direction:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 140
                                                            palette:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  color:
                                                                    type: string
                                                                    pattern: ^#[0-9a-fA-F]{6}$
                                                                required:
                                                                  - name
                                                                  - color
                                                                additionalProperties: false
                                                            imageBrief:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 420
                                                          required:
                                                            - kind
                                                            - headline
                                                            - direction
                                                            - palette
                                                            - imageBrief
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: storyboard
                                                            durationSeconds:
                                                              type: number
                                                              minimum: 1
                                                              maximum: 600
                                                            aspectRatio:
                                                              type: string
                                                              enum:
                                                                - '9:16'
                                                                - '16:9'
                                                                - '1:1'
                                                                - '4:5'
                                                            scenes:
                                                              minItems: 2
                                                              maxItems: 5
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  start:
                                                                    type: number
                                                                    minimum: 0
                                                                  end:
                                                                    type: number
                                                                    exclusiveMinimum: 0
                                                                  visual:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 350
                                                                  caption:
                                                                    type: string
                                                                    maxLength: 150
                                                                required:
                                                                  - title
                                                                  - start
                                                                  - end
                                                                  - visual
                                                                  - caption
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - durationSeconds
                                                            - aspectRatio
                                                            - scenes
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: editorial
                                                            script:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 3000
                                                            tone:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                            targetSeconds:
                                                              anyOf:
                                                                - type: number
                                                                  minimum: 1
                                                                  maximum: 1800
                                                                - type: 'null'
                                                          required:
                                                            - kind
                                                            - script
                                                            - tone
                                                            - targetSeconds
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: comparison
                                                            question:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 90
                                                              description: >-
                                                                A concise decision question in 4-10
                                                                words, not a restatement of the entire
                                                                brief.
                                                            criteria:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 50
                                                            options:
                                                              minItems: 2
                                                              maxItems: 4
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  name:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 42
                                                                  values:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      maxLength: {}
                                                                required:
                                                                  - name
                                                                  - values
                                                                additionalProperties: false
                                                            basis:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                              description: >-
                                                                State whether these are proposed
                                                                approaches, supplied facts, or verified
                                                                evidence. Never invent product features
                                                                or scores.
                                                          required:
                                                            - kind
                                                            - question
                                                            - criteria
                                                            - options
                                                            - basis
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: planner
                                                            title:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 80
                                                            steps:
                                                              minItems: 2
                                                              maxItems: 6
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 80
                                                                  detail:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  durationMinutes:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                required:
                                                                  - title
                                                                  - detail
                                                                  - durationMinutes
                                                                additionalProperties: false
                                                          required:
                                                            - kind
                                                            - title
                                                            - steps
                                                          additionalProperties: false
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              type: string
                                                              const: estimate
                                                            title:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 80
                                                            currency:
                                                              type: string
                                                              enum:
                                                                - USD
                                                                - EUR
                                                                - GBP
                                                                - CAD
                                                                - AUD
                                                                - INR
                                                                - JPY
                                                            items:
                                                              minItems: 1
                                                              maxItems: 6
                                                              type: array
                                                              items:
                                                                type: object
                                                                properties:
                                                                  label:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 60
                                                                    description: >-
                                                                      Item name only. Never duplicate
                                                                      quantities, currency amounts or unit
                                                                      costs in this label; the user can edit
                                                                      those independently.
                                                                  quantity:
                                                                    type: number
                                                                    minimum: 0
                                                                    maximum: 1000000
                                                                  unitCost:
                                                                    type: number
                                                                    minimum: 0
                                                                    maximum: 100000000
                                                                required:
                                                                  - label
                                                                  - quantity
                                                                  - unitCost
                                                                additionalProperties: false
                                                            contingencyPercent:
                                                              type: number
                                                              minimum: 0
                                                              maximum: 100
                                                            assumptions:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 300
                                                              description: >-
                                                                Explicitly identify any assumed prices,
                                                                quantities and currency. These are
                                                                editable estimates, not provider quotes.
                                                          required:
                                                            - kind
                                                            - title
                                                            - currency
                                                            - items
                                                            - contingencyPercent
                                                            - assumptions
                                                          additionalProperties: false
                                                    - type: 'null'
                                                journey:
                                                  anyOf:
                                                    - type: object
                                                      properties:
                                                        stage:
                                                          type: string
                                                          enum:
                                                            - input
                                                            - review
                                                            - ready
                                                            - complete
                                                        instruction:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 160
                                                        action:
                                                          anyOf:
                                                            - type: object
                                                              properties:
                                                                kind:
                                                                  default: continue
                                                                  type: string
                                                                  enum:
                                                                    - continue
                                                                    - execute
                                                                    - copy
                                                                label:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 60
                                                                intent:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 800
                                                                  description: >-
                                                                    A concrete next-step instruction in
                                                                    plain language. Never an opaque command
                                                                    token such as confirm_criteria.
                                                                operationId:
                                                                  anyOf:
                                                                    - type: string
                                                                      maxLength: 200
                                                                    - type: 'null'
                                                                argumentsJson:
                                                                  anyOf:
                                                                    - type: string
                                                                      maxLength: 16000
                                                                    - type: 'null'
                                                              required:
                                                                - label
                                                                - intent
                                                                - operationId
                                                                - argumentsJson
                                                              additionalProperties: false
                                                            - type: 'null'
                                                      required:
                                                        - stage
                                                        - instruction
                                                        - action
                                                      additionalProperties: false
                                                    - type: 'null'
                                                design:
                                                  type: object
                                                  properties:
                                                    character:
                                                      type: string
                                                      enum:
                                                        - editorial
                                                        - research
                                                        - extraction
                                                        - directory
                                                        - storyboard
                                                        - studio
                                                        - comparison
                                                        - planner
                                                        - estimate
                                                        - utility
                                                    density:
                                                      type: string
                                                      enum:
                                                        - relaxed
                                                        - compact
                                                  required:
                                                    - character
                                                    - density
                                                  additionalProperties: false
                                                runtimeRegions:
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      id:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      sectionId:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      libraryDigest:
                                                        type: string
                                                        pattern: ^[a-f0-9]{64}$
                                                      status:
                                                        type: string
                                                        enum:
                                                          - generated
                                                          - ready
                                                          - unavailable
                                                      artifactId:
                                                        anyOf:
                                                          - type: string
                                                            format: uuid
                                                            pattern: >-
                                                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                          - type: 'null'
                                                      tree:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              nodes:
                                                                minItems: 1
                                                                maxItems: 12
                                                                type: array
                                                                items: {}
                                                            required:
                                                              - nodes
                                                            additionalProperties: false
                                                          - type: 'null'
                                                      inputFields:
                                                        maxItems: 16
                                                        type: array
                                                        items:
                                                          type: string
                                                          maxLength: 80
                                                      failure:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 120
                                                          - type: 'null'
                                                      model:
                                                        type: string
                                                        maxLength: 160
                                                      inputTokens:
                                                        type: integer
                                                        minimum: 0
                                                        maximum: 9007199254740991
                                                      outputTokens:
                                                        type: integer
                                                        minimum: 0
                                                        maximum: 9007199254740991
                                                    required:
                                                      - id
                                                      - sectionId
                                                      - libraryDigest
                                                      - status
                                                      - artifactId
                                                      - tree
                                                      - inputFields
                                                      - failure
                                                    additionalProperties: false
                                                sections:
                                                  minItems: 1
                                                  maxItems: 12
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      id:
                                                        type: string
                                                        pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                      kind:
                                                        type: string
                                                        enum:
                                                          - message
                                                          - list
                                                          - fields
                                                          - operation
                                                          - progress
                                                          - results
                                                          - notice
                                                      title:
                                                        type: string
                                                        maxLength: 160
                                                      text:
                                                        type: string
                                                        maxLength: 4000
                                                      items:
                                                        maxItems: 20
                                                        type: array
                                                        items:
                                                          type: string
                                                          maxLength: 800
                                                      operationId:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 200
                                                          - type: 'null'
                                                    required:
                                                      - id
                                                      - kind
                                                      - title
                                                      - text
                                                      - items
                                                      - operationId
                                                    additionalProperties: false
                                                next:
                                                  maxItems: 3
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      label:
                                                        type: string
                                                        maxLength: 100
                                                      intent:
                                                        type: string
                                                        maxLength: 500
                                                      confidence:
                                                        type: number
                                                        minimum: 0
                                                        maximum: 1
                                                    required:
                                                      - label
                                                      - intent
                                                      - confidence
                                                    additionalProperties: false
                                                reactSource:
                                                  anyOf:
                                                    - type: string
                                                      maxLength: 50000
                                                    - type: 'null'
                                                mediaPrompt:
                                                  anyOf:
                                                    - type: string
                                                      maxLength: 4000
                                                    - type: 'null'
                                              required:
                                                - title
                                                - summary
                                                - layout
                                                - representation
                                                - sections
                                                - next
                                                - reactSource
                                                - mediaPrompt
                                              additionalProperties: false
                                            runtimeComponents:
                                              maxItems: 4
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  sectionId:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  instructions:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 4000
                                                  components:
                                                    default: []
                                                    maxItems: 30
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Z][A-Za-z0-9]*$
                                                  inputFields:
                                                    default: []
                                                    maxItems: 16
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                                required:
                                                  - id
                                                  - sectionId
                                                  - instructions
                                                additionalProperties: false
                                            argumentBindings:
                                              maxItems: 50
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  field:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 120
                                                  target:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 200
                                                required:
                                                  - field
                                                  - target
                                                additionalProperties: false
                                            bindings:
                                              default: []
                                              maxItems: 64
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  path:
                                                    minItems: 2
                                                    maxItems: 8
                                                    type: array
                                                    items:
                                                      type: string
                                                      pattern: ^[A-Za-z0-9_-]+$
                                                  source:
                                                    type: string
                                                    enum:
                                                      - message
                                                      - field
                                                  field:
                                                    type: string
                                                    maxLength: 120
                                                required:
                                                  - path
                                                  - source
                                                additionalProperties: false
                                          required:
                                            - id
                                            - description
                                            - presentation
                                          additionalProperties: false
                                    required:
                                      - version
                                      - revision
                                      - initialState
                                      - states
                                      - variants
                                    additionalProperties: false
                                  customer:
                                    default: both
                                    type: string
                                    enum:
                                      - humans
                                      - agents
                                      - both
                                  inputSchema:
                                    default:
                                      type: object
                                      properties: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties: {}
                                  outputSchema:
                                    default:
                                      type: object
                                      properties: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties: {}
                                  acceptsFiles:
                                    default: false
                                    type: boolean
                                  executionPlan:
                                    type: object
                                    properties:
                                      version:
                                        type: number
                                        const: 1
                                      authoring:
                                        default: guided
                                        type: string
                                        enum:
                                          - guided
                                          - nodes
                                          - code
                                          - endpoint
                                      runtime:
                                        type: object
                                        properties:
                                          language:
                                            default: typescript
                                            type: string
                                            enum:
                                              - typescript
                                              - python
                                              - docker
                                          entrypoint:
                                            default: ''
                                            type: string
                                            maxLength: 240
                                          dockerfile:
                                            default: ''
                                            type: string
                                            maxLength: 240
                                        additionalProperties: false
                                      nodes:
                                        default: []
                                        maxItems: 50
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 80
                                              pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                                            nodeId:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                            nodeVersion:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            group:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            input:
                                              default: {}
                                              type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                          required:
                                            - id
                                            - nodeId
                                            - nodeVersion
                                            - group
                                          additionalProperties: false
                                    required:
                                      - version
                                    additionalProperties: false
                                  implementation:
                                    type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - api
                                          - tool
                                          - workflow
                                          - typescript
                                          - model
                                          - data
                                          - file
                                          - human
                                          - browser
                                      source:
                                        default: ''
                                        type: string
                                        maxLength: 20000
                                      endpoint:
                                        default: ''
                                        type: string
                                        maxLength: 2048
                                      method:
                                        default: POST
                                        type: string
                                        enum:
                                          - GET
                                          - POST
                                          - PUT
                                          - PATCH
                                          - DELETE
                                      language:
                                        default: typescript
                                        type: string
                                        maxLength: 40
                                      steps:
                                        default: []
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              minLength: 1
                                              maxLength: 120
                                            name:
                                              type: string
                                              maxLength: 20000
                                            kind:
                                              type: string
                                              maxLength: 80
                                            configuration:
                                              type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                          required:
                                            - id
                                            - name
                                            - kind
                                            - configuration
                                      dependencies:
                                        default: []
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 200
                                    required:
                                      - kind
                                    additionalProperties: false
                                  connectionIds:
                                    default: []
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 120
                                  secretRefs:
                                    default: []
                                    maxItems: 50
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 120
                                  effects:
                                    default: read
                                    type: string
                                    enum:
                                      - read
                                      - write
                                      - mixed
                                  permissions:
                                    default: []
                                    maxItems: 30
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 20000
                                  approval:
                                    default: writes
                                    type: string
                                    enum:
                                      - always
                                      - writes
                                      - none
                                  limits:
                                    default:
                                      timeoutSeconds: 30
                                      retries: 0
                                    type: object
                                    properties:
                                      timeoutSeconds:
                                        default: 30
                                        type: integer
                                        minimum: 1
                                        maximum: 300
                                      retries:
                                        default: 0
                                        type: integer
                                        minimum: 0
                                        maximum: 3
                                  pricing:
                                    default:
                                      kind: free
                                    oneOf:
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: free
                                        required:
                                          - kind
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: fixed
                                          amountCents:
                                            type: integer
                                            exclusiveMinimum: 0
                                            maximum: 100000000
                                          currency:
                                            type: string
                                            const: USD
                                        required:
                                          - kind
                                          - amountCents
                                          - currency
                                  tests:
                                    default: []
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          minLength: 1
                                          maxLength: 120
                                        name:
                                          type: string
                                          maxLength: 20000
                                        input:
                                          type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties: {}
                                        expected: {}
                                      required:
                                        - id
                                        - name
                                        - input
                                required:
                                  - id
                                  - name
                                  - implementation
                                additionalProperties: false
                            appearance:
                              default:
                                source: darwin_ui
                                instructions: ''
                                generationBrief: ''
                              type: object
                              properties:
                                source:
                                  default: darwin_ui
                                  type: string
                                  enum:
                                    - darwin_ui
                                    - uploaded
                                    - generated
                                library:
                                  type: object
                                  properties:
                                    schemaVersion:
                                      type: number
                                      const: 1
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                    version:
                                      type: string
                                      pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                    importName:
                                      type: string
                                      pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                    entry:
                                      type: string
                                      minLength: 1
                                    files:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties:
                                        type: string
                                        maxLength: 500000
                                    components:
                                      minItems: 1
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          export:
                                            type: string
                                            pattern: ^[A-Z][A-Za-z0-9]*$
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          props:
                                            type: string
                                            minLength: 1
                                            maxLength: 10000
                                          example:
                                            type: string
                                            minLength: 1
                                            maxLength: 20000
                                          human:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              states:
                                                minItems: 1
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - input
                                                    - running
                                                    - needs_input
                                                    - approval
                                                    - success
                                                    - empty
                                                    - error
                                            required:
                                              - description
                                              - states
                                            additionalProperties: false
                                          agent:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              outputSchema:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              example:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              instructions:
                                                default: ''
                                                type: string
                                                maxLength: 10000
                                            required:
                                              - description
                                              - outputSchema
                                              - example
                                            additionalProperties: false
                                        required:
                                          - export
                                          - description
                                          - props
                                          - example
                                        additionalProperties: false
                                  required:
                                    - schemaVersion
                                    - name
                                    - version
                                    - importName
                                    - entry
                                    - files
                                    - components
                                  additionalProperties: false
                                instructions:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                generationBrief:
                                  default: ''
                                  type: string
                                  maxLength: 20000
                                brand:
                                  type: object
                                  properties:
                                    primary:
                                      default: '#0071E3'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    secondary:
                                      default: '#AF52DE'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    background:
                                      default: '#FFFFFF'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    foreground:
                                      default: '#171717'
                                      type: string
                                      pattern: ^#[0-9a-fA-F]{6}$
                                    font:
                                      default: system
                                      type: string
                                      enum:
                                        - system
                                        - serif
                                        - mono
                                  additionalProperties: false
                                loading:
                                  type: object
                                  properties:
                                    kind:
                                      default: darwin
                                      type: string
                                      enum:
                                        - darwin
                                        - pulse
                                        - media
                                    asset:
                                      type: string
                                      maxLength: 1400000
                                      pattern: >-
                                        ^data:(image\/(gif|webp)|video\/(mp4|webm));base64,[A-Za-z0-9+/]+=*$
                                    poster:
                                      type: string
                                      maxLength: 700000
                                      pattern: >-
                                        ^data:image\/(png|jpeg);base64,[A-Za-z0-9+/]+=*$
                                  additionalProperties: false
                              additionalProperties: false
                            authentication:
                              default:
                                mode: optional
                                humanProviders:
                                  - darwin
                                agentCredentials:
                                  - oauth
                                  - service_account
                              type: object
                              properties:
                                mode:
                                  default: optional
                                  type: string
                                  enum:
                                    - optional
                                    - required
                                humanProviders:
                                  default:
                                    - darwin
                                  maxItems: 5
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - darwin
                                      - google
                                      - apple
                                      - email
                                      - phone
                                agentCredentials:
                                  default:
                                    - oauth
                                    - service_account
                                  maxItems: 2
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - oauth
                                      - service_account
                              additionalProperties: false
                            billing:
                              default:
                                acceptedMethods:
                                  - card
                                  - bank
                                processor: unconfigured
                                provider: ''
                                connectionRef: ''
                                checkoutUrl: ''
                                existingSystem: online_checkout
                              type: object
                              properties:
                                acceptedMethods:
                                  default:
                                    - card
                                    - bank
                                  maxItems: 13
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - card
                                      - bank
                                      - link
                                      - apple_pay
                                      - google_pay
                                      - darwin_wallet
                                      - mpp
                                      - x402
                                      - spt
                                      - ucp
                                      - acp
                                      - stripe_dynamic
                                      - hosted_checkout
                                processor:
                                  default: unconfigured
                                  type: string
                                  enum:
                                    - unconfigured
                                    - darwin
                                    - existing
                                provider:
                                  default: ''
                                  type: string
                                  maxLength: 100
                                connectionRef:
                                  default: ''
                                  type: string
                                  maxLength: 200
                                checkoutUrl:
                                  default: ''
                                  type: string
                                  maxLength: 2048
                                existingSystem:
                                  default: online_checkout
                                  type: string
                                  enum:
                                    - online_checkout
                                    - point_of_sale
                                    - commerce_platform
                                    - invoicing
                                    - custom
                              additionalProperties: false
                            advertising:
                              default:
                                enabled: false
                                audience: ''
                                regions: ''
                                languages: ''
                                keywords: []
                                negativeKeywords: []
                                match: phrase
                                objective: visits
                                bidModel: cpc
                                bidCredits: null
                                dailyBudgetCredits: null
                                totalBudgetCredits: null
                                conversion: operation_completed
                                operationId: ''
                                economics:
                                  profitCredits: null
                                  acquisitionPercent: null
                                  conversionPercent: null
                                  clickThroughPercent: null
                                externalChannels: []
                                otherChannel: ''
                                externalMonthlyBudgetCredits: null
                              type: object
                              properties:
                                enabled:
                                  default: false
                                  type: boolean
                                audience:
                                  default: ''
                                  type: string
                                  maxLength: 4000
                                regions:
                                  default: ''
                                  type: string
                                  maxLength: 1000
                                languages:
                                  default: ''
                                  type: string
                                  maxLength: 500
                                keywords:
                                  default: []
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                negativeKeywords:
                                  default: []
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                match:
                                  default: phrase
                                  type: string
                                  enum:
                                    - exact
                                    - phrase
                                    - broad
                                objective:
                                  default: visits
                                  type: string
                                  enum:
                                    - awareness
                                    - visits
                                    - conversions
                                bidModel:
                                  default: cpc
                                  type: string
                                  enum:
                                    - cpm
                                    - cpc
                                    - cpa
                                bidCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                dailyBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                totalBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                                conversion:
                                  default: operation_completed
                                  type: string
                                  enum:
                                    - operation_completed
                                    - payment_completed
                                operationId:
                                  default: ''
                                  type: string
                                  maxLength: 120
                                economics:
                                  default:
                                    profitCredits: null
                                    acquisitionPercent: null
                                    conversionPercent: null
                                    clickThroughPercent: null
                                  type: object
                                  properties:
                                    profitCredits:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 1000000000
                                        - type: 'null'
                                    acquisitionPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                    conversionPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                    clickThroughPercent:
                                      default: null
                                      anyOf:
                                        - type: number
                                          minimum: 0
                                          maximum: 100
                                        - type: 'null'
                                  additionalProperties: false
                                externalChannels:
                                  default: []
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - google_search
                                      - meta
                                      - other
                                otherChannel:
                                  default: ''
                                  type: string
                                  maxLength: 200
                                externalMonthlyBudgetCredits:
                                  default: null
                                  anyOf:
                                    - type: number
                                      minimum: 0
                                      maximum: 1000000000
                                    - type: 'null'
                              additionalProperties: false
                            analytics:
                              default:
                                navigator: true
                                destinations: []
                                identityMode: anonymous
                                events:
                                  - operation_started
                                  - operation_completed
                                  - operation_failed
                              type: object
                              properties:
                                navigator:
                                  default: true
                                  type: boolean
                                  const: true
                                destinations:
                                  default: []
                                  maxItems: 10
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 120
                                      provider:
                                        type: string
                                        enum:
                                          - posthog
                                          - segment
                                          - amplitude
                                          - mixpanel
                                          - ga4
                                          - webhook
                                          - other
                                      enabled:
                                        default: true
                                        type: boolean
                                      connectionRef:
                                        default: ''
                                        type: string
                                        maxLength: 200
                                      projectRef:
                                        default: ''
                                        type: string
                                        maxLength: 200
                                    required:
                                      - id
                                      - provider
                                    additionalProperties: false
                                identityMode:
                                  default: anonymous
                                  type: string
                                  enum:
                                    - anonymous
                                    - pseudonymous
                                events:
                                  default:
                                    - operation_started
                                    - operation_completed
                                    - operation_failed
                                  maxItems: 6
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - operation_started
                                      - operation_completed
                                      - operation_failed
                                      - approval_requested
                                      - approval_resolved
                                      - payment_completed
                              additionalProperties: false
                            connections:
                              default: []
                              maxItems: 50
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  kind:
                                    type: string
                                    enum:
                                      - database
                                      - storage
                                      - model
                                      - payments
                                      - messaging
                                      - browser
                                      - other
                                  mode:
                                    type: string
                                    enum:
                                      - test
                                      - existing
                                      - managed
                                  reference:
                                    default: ''
                                    type: string
                                    maxLength: 200
                                  requirement:
                                    default: ''
                                    type: string
                                    maxLength: 20000
                                required:
                                  - id
                                  - kind
                                  - mode
                            distribution:
                              default:
                                - destination: navigator
                                  selected: true
                                  metadata: {}
                              maxItems: 20
                              type: array
                              items:
                                type: object
                                properties:
                                  destination:
                                    type: string
                                    enum:
                                      - navigator
                                      - web
                                      - chatgpt
                                      - claude
                                      - gemini
                                      - muse
                                      - instinct
                                      - mcp
                                      - a2a
                                      - poppy
                                      - ucp
                                      - acp
                                      - webmcp
                                      - openapi
                                      - imessage
                                      - whatsapp
                                      - slack
                                      - telegram
                                      - discord
                                  selected:
                                    type: boolean
                                  autoSelected:
                                    type: boolean
                                  metadata:
                                    default: {}
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties:
                                      type: string
                                      maxLength: 10000
                                required:
                                  - destination
                                  - selected
                            messages:
                              default: []
                              maxItems: 200
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  role:
                                    type: string
                                    enum:
                                      - user
                                      - assistant
                                  text:
                                    type: string
                                    maxLength: 20000
                                  operationId:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                required:
                                  - id
                                  - role
                                  - text
                          required:
                            - schemaVersion
                            - identity
                          additionalProperties: false
                      required:
                        - action
                        - expectedRevision
                        - draft
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_draft
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                      required:
                        - action
                        - draftId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: list_drafts
                      required:
                        - action
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: start_test
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        input:
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties: {}
                      required:
                        - action
                        - draftId
                        - revision
                        - operationId
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_job
                        jobId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - jobId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: resume_job
                        jobId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - jobId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: cancel_job
                        jobId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - jobId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: check_slug
                        slug:
                          type: string
                          maxLength: 32
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                      required:
                        - action
                        - slug
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: validate_draft
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                      required:
                        - action
                        - draftId
                        - revision
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: export_destination
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                        destination:
                          type: string
                          enum:
                            - navigator
                            - web
                            - chatgpt
                            - claude
                            - gemini
                            - muse
                            - instinct
                            - mcp
                            - a2a
                            - poppy
                            - ucp
                            - acp
                            - webmcp
                            - openapi
                            - imessage
                            - whatsapp
                            - slack
                            - telegram
                            - discord
                      required:
                        - action
                        - draftId
                        - revision
                        - destination
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: export_draft
                        draftId:
                          type: string
                          minLength: 1
                          maxLength: 120
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                      required:
                        - action
                        - draftId
                        - revision
                      additionalProperties: false
                - oneOf:
                    - type: object
                      properties:
                        action:
                          type: string
                          const: create_agent
                        input:
                          type: object
                          properties:
                            componentLibrary:
                              anyOf:
                                - type: object
                                  properties:
                                    source:
                                      type: string
                                      const: darwin_ui
                                  required:
                                    - source
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    schemaVersion:
                                      type: number
                                      const: 1
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                    version:
                                      type: string
                                      pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                    importName:
                                      type: string
                                      pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                    entry:
                                      type: string
                                      minLength: 1
                                    files:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties:
                                        type: string
                                        maxLength: 500000
                                    components:
                                      minItems: 1
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          export:
                                            type: string
                                            pattern: ^[A-Z][A-Za-z0-9]*$
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          props:
                                            type: string
                                            minLength: 1
                                            maxLength: 10000
                                          example:
                                            type: string
                                            minLength: 1
                                            maxLength: 20000
                                          human:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              states:
                                                minItems: 1
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - input
                                                    - running
                                                    - needs_input
                                                    - approval
                                                    - success
                                                    - empty
                                                    - error
                                            required:
                                              - description
                                              - states
                                            additionalProperties: false
                                          agent:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              outputSchema:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              example:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              instructions:
                                                default: ''
                                                type: string
                                                maxLength: 10000
                                            required:
                                              - description
                                              - outputSchema
                                              - example
                                            additionalProperties: false
                                        required:
                                          - export
                                          - description
                                          - props
                                          - example
                                        additionalProperties: false
                                  required:
                                    - schemaVersion
                                    - name
                                    - version
                                    - importName
                                    - entry
                                    - files
                                    - components
                                  additionalProperties: false
                            handle:
                              type: string
                              pattern: ^[a-z0-9](?:[a-z0-9-]{0,39}[a-z0-9])?$
                            name:
                              type: string
                              minLength: 1
                              maxLength: 160
                            description:
                              default: ''
                              type: string
                              maxLength: 5000
                            avatarUrl:
                              anyOf:
                                - type: string
                                  maxLength: 2000
                                  format: uri
                                - type: 'null'
                          required:
                            - handle
                            - name
                          additionalProperties: false
                      required:
                        - action
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: create_operation
                        input:
                          type: object
                          properties:
                            agentId:
                              type: string
                              minLength: 1
                              maxLength: 200
                            handle:
                              type: string
                              pattern: ^[a-z0-9](?:[a-z0-9-]{0,39}[a-z0-9])?$
                            name:
                              type: string
                              minLength: 1
                              maxLength: 160
                            description:
                              default: ''
                              type: string
                              maxLength: 20000
                            inputSchema:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            outputSchema:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            fulfillment:
                              default:
                                mechanism: MANUAL
                              type: object
                              properties:
                                mechanism:
                                  type: string
                                  enum:
                                    - MANUAL
                                    - API
                                    - MCP
                                    - A2A
                                    - WEBMCP
                                endpoint:
                                  type: string
                                  maxLength: 2000
                                  format: uri
                              required:
                                - mechanism
                              additionalProperties: false
                            pricing:
                              default:
                                currency: USD
                                amountCents: 0
                              type: object
                              properties:
                                currency:
                                  default: USD
                                  type: string
                                  const: USD
                                amountCents:
                                  type: integer
                                  minimum: 0
                                  maximum: 1000000000
                              required:
                                - amountCents
                              additionalProperties: false
                            ownerApproval:
                              default: MANUAL
                              type: string
                              enum:
                                - MANUAL
                                - AUTO
                          required:
                            - agentId
                            - handle
                            - name
                          additionalProperties: false
                      required:
                        - action
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: update_agent
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                        input:
                          type: object
                          properties:
                            componentLibrary:
                              anyOf:
                                - type: object
                                  properties:
                                    source:
                                      type: string
                                      const: darwin_ui
                                  required:
                                    - source
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    schemaVersion:
                                      type: number
                                      const: 1
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                    version:
                                      type: string
                                      pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                    importName:
                                      type: string
                                      pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                    entry:
                                      type: string
                                      minLength: 1
                                    files:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties:
                                        type: string
                                        maxLength: 500000
                                    components:
                                      minItems: 1
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          export:
                                            type: string
                                            pattern: ^[A-Z][A-Za-z0-9]*$
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          props:
                                            type: string
                                            minLength: 1
                                            maxLength: 10000
                                          example:
                                            type: string
                                            minLength: 1
                                            maxLength: 20000
                                          human:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              states:
                                                minItems: 1
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - input
                                                    - running
                                                    - needs_input
                                                    - approval
                                                    - success
                                                    - empty
                                                    - error
                                            required:
                                              - description
                                              - states
                                            additionalProperties: false
                                          agent:
                                            type: object
                                            properties:
                                              description:
                                                type: string
                                                minLength: 1
                                                maxLength: 2000
                                              outputSchema:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              example:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                              instructions:
                                                default: ''
                                                type: string
                                                maxLength: 10000
                                            required:
                                              - description
                                              - outputSchema
                                              - example
                                            additionalProperties: false
                                        required:
                                          - export
                                          - description
                                          - props
                                          - example
                                        additionalProperties: false
                                  required:
                                    - schemaVersion
                                    - name
                                    - version
                                    - importName
                                    - entry
                                    - files
                                    - components
                                  additionalProperties: false
                            handle:
                              type: string
                              pattern: ^[a-z0-9](?:[a-z0-9-]{0,39}[a-z0-9])?$
                            name:
                              type: string
                              minLength: 1
                              maxLength: 160
                            description:
                              type: string
                              maxLength: 5000
                            avatarUrl:
                              anyOf:
                                - type: string
                                  maxLength: 2000
                                  format: uri
                                - type: 'null'
                            expectedRevision:
                              type: integer
                              minimum: 1
                              maximum: 2147483647
                          required:
                            - expectedRevision
                          additionalProperties: false
                      required:
                        - action
                        - agentId
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: update_operation
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                        input:
                          type: object
                          properties:
                            handle:
                              type: string
                              pattern: ^[a-z0-9](?:[a-z0-9-]{0,39}[a-z0-9])?$
                            name:
                              type: string
                              minLength: 1
                              maxLength: 160
                            description:
                              type: string
                              maxLength: 20000
                            inputSchema:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            outputSchema:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                            fulfillment:
                              type: object
                              properties:
                                mechanism:
                                  type: string
                                  enum:
                                    - MANUAL
                                    - API
                                    - MCP
                                    - A2A
                                    - WEBMCP
                                endpoint:
                                  type: string
                                  maxLength: 2000
                                  format: uri
                              required:
                                - mechanism
                              additionalProperties: false
                            pricing:
                              type: object
                              properties:
                                currency:
                                  default: USD
                                  type: string
                                  const: USD
                                amountCents:
                                  type: integer
                                  minimum: 0
                                  maximum: 1000000000
                              required:
                                - amountCents
                              additionalProperties: false
                            ownerApproval:
                              type: string
                              enum:
                                - MANUAL
                                - AUTO
                            expectedRevision:
                              type: integer
                              minimum: 1
                              maximum: 2147483647
                          required:
                            - expectedRevision
                          additionalProperties: false
                      required:
                        - action
                        - operationId
                        - input
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_agent
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                      required:
                        - action
                        - agentId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: get_operation
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                      required:
                        - action
                        - operationId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: test_agent
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                      required:
                        - action
                        - agentId
                      additionalProperties: false
                    - type: object
                      properties:
                        action:
                          type: string
                          const: test_operation
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                      required:
                        - action
                        - operationId
                      additionalProperties: false
            example:
              action: list_drafts
      responses:
        '200':
          description: >-
            Current owner-scoped result. A mutation retry returns its saved
            response.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                description: >-
                  Action-specific private draft, job, validation, import or
                  export result.
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
        '403':
          description: Insufficient scope or user authority.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
        '404':
          description: Resource is absent or not owned by this caller.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
        '409':
          description: Revision, handle, idempotency, or decision conflict.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
        '503':
          description: Canonical product storage or migration is unavailable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type:
                      - string
                      - array
                  code:
                    type: string
      security:
        - apiKey: []
        - apiKeyBearer: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    apiKeyBearer:
      type: http
      scheme: bearer
      description: A Darwin API key supplied as an Authorization Bearer token.

````

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