# Generated by yarn openapi:generate in node-server; do not edit.
openapi: 3.2.0
info:
  title: Hidden Door Experience API
  version: 0.1.0
  description:
    Build narrative experiences in persistent, evolving worlds. Browse
    world seeds, populate instances, start stories, submit actions and converse
    with characters or the narrator. Hidden Door holds authoritative game state;
    requests submit inputs and identifiers rather than edited snapshots. Story
    options and conversations are temporary resources with explicit expiry
    times. Story input requests are durable.
paths:
  /world-seeds:
    get:
      operationId: listWorldSeeds
      summary: List world seeds
      description:
        'Lists world seeds the caller can create an instance from: official
        worlds followed by listed community worlds. Access filtering happens
        after pagination, so a page may be short or empty while nextOffset is
        non-null. Continue using nextOffset until it is null. This is a live
        catalog, not a snapshot.'
      tags:
        - World seeds
      parameters:
        - name: offset
          in: query
          required: false
          description: Start at zero; subsequently use the returned nextOffset.
          schema:
            default: 0
            description: Start at zero; subsequently use the returned nextOffset.
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: Maximum catalog entries examined before access filtering.
          schema:
            default: 20
            description: Maximum catalog entries examined before access filtering.
            type: integer
            minimum: 1
            maximum: 100
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /world-seeds Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  worldSeeds:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: Use this identifier when creating an instance.
                        displayName:
                          type: string
                        description:
                          type: string
                      required:
                        - name
                        - displayName
                        - description
                      additionalProperties: false
                      example:
                        name: oz
                        displayName: The Land of Oz
                        description:
                          A storybook fantasy filled with talking animals, witches, strange
                          creatures, and more!
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - worldSeeds
                  - nextOffset
                additionalProperties: false
                example:
                  worldSeeds:
                    - name: oz
                      displayName: The Land of Oz
                      description:
                        A storybook fantasy filled with talking animals, witches, strange
                        creatures, and more!
                  nextOffset: null
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /world-seeds/{worldSeedName}:
    get:
      operationId: getWorldSeed
      summary: Get a world seed
      description:
        Returns metadata for a world seed the caller can create an instance
        from, not the full engine seed. A known published, unlisted seed can be
        read by name if the caller has creation access. Missing seeds and seeds
        the caller cannot create from return 404.
      tags:
        - World seeds
      parameters:
        - name: worldSeedName
          in: path
          required: true
          description: GET /world-seeds/:worldSeedName Parameter
          schema:
            type: string
            minLength: 1
            maxLength: 200
            example: oz
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /world-seeds/:worldSeedName Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                    description: Use this identifier when creating an instance.
                  displayName:
                    type: string
                  description:
                    type: string
                required:
                  - name
                  - displayName
                  - description
                additionalProperties: false
                example:
                  name: oz
                  displayName: The Land of Oz
                  description:
                    A storybook fantasy filled with talking animals, witches, strange
                    creatures, and more!
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The world seed does not exist or is not available to your
            application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The world seed does not exist or is not available to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances:
    get:
      operationId: listInstances
      summary: List world instances
      description: List persistent, non-deleted world instances owned by your
        application, newest first. Results contain identity and creation
        metadata; read current game state for entities and stories. Continue
        with nextOffset until it is null.
      tags:
        - Instances
      parameters:
        - name: offset
          in: query
          required: false
          description: GET /instances Parameter
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: GET /instances Parameter
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
        - name: worldSeedName
          in: query
          required: false
          description: GET /instances Parameter
          schema:
            type: string
            minLength: 1
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  instances:
                    type: array
                    items:
                      type: object
                      properties:
                        instanceId:
                          type: string
                          format: uuid
                          example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
                        worldSeedName:
                          type: string
                          example: oz
                          description: The name used to address the seed at creation.
                        createdAt:
                          type: string
                          format: date-time
                          example: 2026-11-11T12:00:00Z
                          description: When this instance was created, in UTC.
                      required:
                        - instanceId
                        - worldSeedName
                        - createdAt
                      additionalProperties: false
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - instances
                  - nextOffset
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    post:
      operationId: createInstance
      summary: Create a world instance
      description:
        Creates a persistent, evolving instance from a published world
        seed, without creating characters or starting a story. Returns metadata
        and a Location header pointing to /experience/v1/instances/{instanceId}.
        Each successful call creates a new instance; creation is not idempotent.
        Profile preferences and world-access checks apply. A missing account
        profile or creation access returns 403; an unknown seed returns 404.
      tags:
        - Instances
      requestBody:
        description: POST /instances Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                worldSeedName:
                  type: string
                  minLength: 1
                  maxLength: 200
                  example: oz
              required:
                - worldSeedName
              additionalProperties: false
              example:
                worldSeedName: oz
        required: true
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  instanceId:
                    type: string
                    format: uuid
                    example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
                  worldSeedName:
                    type: string
                    example: oz
                    description: The name used to address the seed at creation.
                  createdAt:
                    type: string
                    format: date-time
                    example: 2026-11-11T12:00:00Z
                    description: When this instance was created, in UTC.
                required:
                  - instanceId
                  - worldSeedName
                  - createdAt
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description:
            The account cannot create an instance from this world seed, or has
            no Hidden Door account profile.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message:
                    The account cannot create an instance from this world seed, or has no
                    Hidden Door account profile.
        '404':
          description: The world seed does not exist.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The world seed does not exist.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}:
    delete:
      operationId: deleteInstance
      summary: Delete a world instance
      description:
        Delete this application-owned instance. Its entities, stories and
        temporary resources are no longer accessible through the API. This does
        not delete the world seed or other instances.
      tags:
        - Instances
      parameters:
        - name: instanceId
          in: path
          required: true
          description: DELETE /instances/:instanceId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: DELETE /instances/:instanceId Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  instanceId:
                    type: string
                    format: uuid
                    example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
                required:
                  - instanceId
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    get:
      operationId: getInstance
      summary: Get instance metadata
      description: Reads persistent instance metadata, not game state. Missing,
        deleted, and inaccessible instances all return 404.
      tags:
        - Instances
      parameters:
        - name: instanceId
          in: path
          required: true
          description: The identifier returned when creating the instance.
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
            description: The identifier returned when creating the instance.
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  instanceId:
                    type: string
                    format: uuid
                    example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
                  worldSeedName:
                    type: string
                    example: oz
                    description: The name used to address the seed at creation.
                  createdAt:
                    type: string
                    format: date-time
                    example: 2026-11-11T12:00:00Z
                    description: When this instance was created, in UTC.
                required:
                  - instanceId
                  - worldSeedName
                  - createdAt
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description:
            The instance does not exist, has been deleted, or is not owned by
            your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message:
                    The instance does not exist, has been deleted, or is not owned by your
                    application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/state:
    get:
      operationId: getGameState
      summary: Get current game state
      description:
        Read the instance’s current world, entities, stories and storyline
        progress. Every story includes its complete persisted public turn-event
        history, including earlier completed and cancelled stories. Events
        remain in stored order within each turn; history is not truncated to
        recent stories or paginated. Internal events and private fields are
        excluded. Response size grows with the instance’s history. To change
        state, use the entity and story operations with identifiers from this
        snapshot.
      tags:
        - Instances
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/state Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/state Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceGameState'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The instance does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The instance does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/characters:
    post:
      operationId: createCharacter
      summary: Create a character
      description:
        Generate an original character and save it in the instance. All
        generation inputs are optional; send an empty JSON object to generate
        from the world context. Generation may adapt the supplied text and add
        detail. To create a lead for a particular storyline, supply
        storylineTemplateId from an unlocked offer. For an offered canon lead,
        use the canon-character operation. Each successful call creates a new
        character. Use the returned entity.id during story setup.
      tags:
        - Characters
      parameters:
        - name: instanceId
          in: path
          required: true
          description: The instance the character will belong to.
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
            description: The instance the character will belong to.
      requestBody:
        description: POST /instances/:instanceId/characters Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                storylineTemplateId:
                  description:
                    An unlocked storyline offer whose lead archetype constrains
                    generation.
                  type: string
                  minLength: 1
                name:
                  description: Suggested name; free text is supported.
                  type: string
                  minLength: 1
                  example: Mallow
                pronoun:
                  description: Preferred pronoun. Omit to let generation choose.
                  type: string
                  enum:
                    - he
                    - she
                    - they
                  example: they
                highConcept:
                  description:
                    A short character concept, such as a talking field mouse who
                    repairs shoes.
                  type: string
                  minLength: 1
                  example: A talking field mouse who repairs travelers' shoes
                brief:
                  description:
                    Guidance for developing the character, such as motivations and
                    complications.
                  type: string
                  minLength: 1
                  example:
                    Find a missing mentor along the Yellow Brick Road. Promises help before
                    considering the danger.
              required: []
              additionalProperties: false
              example:
                name: Mallow
                pronoun: they
                highConcept: A talking field mouse who repairs travelers' shoes
                brief:
                  Find a missing mentor along the Yellow Brick Road. Promises help before
                  considering the danger.
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances/:instanceId/characters Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntityResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description:
            The instance or storyline offer does not exist or is not accessible
            to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message:
                    The instance or storyline offer does not exist or is not accessible to
                    your application.
        '409':
          description:
            The supplied guidance conflicts with this world or the selected
            storyline’s lead requirements.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The supplied guidance conflicts with this world or the selected
                    storyline’s lead requirements.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /modifiers:
    get:
      operationId: listModifiers
      summary: List available modifiers
      description:
        List available modifiers for story setup. Use the returned names in
        modifierNames; a modifier can change a world’s tone, rules and story
        possibilities.
      tags:
        - Modifiers
      parameters:
        - name: offset
          in: query
          required: false
          description: GET /modifiers Parameter
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: GET /modifiers Parameter
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /modifiers Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  modifiers:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceModifier'
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - modifiers
                  - nextOffset
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /modifiers/{modifierName}:
    get:
      operationId: getModifier
      summary: Get a modifier
      description:
        Read a modifier’s description, effects and creation guidance using
        its catalog name.
      tags:
        - Modifiers
      parameters:
        - name: modifierName
          in: path
          required: true
          description: GET /modifiers/:modifierName Parameter
          schema:
            type: string
            minLength: 1
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /modifiers/:modifierName Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceModifier'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/entities:
    get:
      operationId: listEntities
      summary: List entities in an instance
      description:
        Read characters, items and locations with their current narrative
        and gameplay detail. Relationships, inventory and location references
        use entity identifiers from this instance.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/entities Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: offset
          in: query
          required: false
          description: GET /instances/:instanceId/entities Parameter
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: GET /instances/:instanceId/entities Parameter
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
        - name: type
          in: query
          required: false
          description: GET /instances/:instanceId/entities Parameter
          schema:
            type: string
            enum:
              - character
              - item
              - location
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/entities Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  entities:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceEntity'
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - entities
                  - nextOffset
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/entities/{entityId}:
    get:
      operationId: getEntity
      summary: Get an entity
      description:
        Read a character, item or location in this instance, including its
        descriptive detail, relationships and gameplay state.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: entityId
          in: path
          required: true
          description: GET /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: 79a3af39-c171-4dfb-b51b-5a684f61525d
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/entities/:entityId Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntity'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    patch:
      operationId: editEntity
      summary: Edit an entity
      description:
        Update the supplied name, description, personality or backstory
        fields while preserving the entity’s identity and history. Story or
        canon constraints can reject an edit with 409. Inventory, location and
        story roles change through play.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: PATCH /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: entityId
          in: path
          required: true
          description: PATCH /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: 79a3af39-c171-4dfb-b51b-5a684f61525d
      requestBody:
        description: PATCH /instances/:instanceId/entities/:entityId Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                changes:
                  type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                    description:
                      type: string
                      minLength: 1
                    personality:
                      type:
                        - string
                        - 'null'
                    backstory:
                      type:
                        - string
                        - 'null'
                  additionalProperties: false
                  minProperties: 1
              required:
                - changes
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '200':
          description: PATCH /instances/:instanceId/entities/:entityId Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntityResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    delete:
      operationId: deleteEntity
      summary: Delete an entity
      description: Remove an entity from the instance. Returns 409 if a story or
        storyline still requires it, including outstanding input and lead
        references. To choose which new entities remain after a story, use
        entityIdsToKeep during story completion.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: DELETE /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: entityId
          in: path
          required: true
          description: DELETE /instances/:instanceId/entities/:entityId Parameter
          schema:
            type: string
            format: uuid
            example: 79a3af39-c171-4dfb-b51b-5a684f61525d
      security:
        - HTTP_1: []
      responses:
        '200':
          description: DELETE /instances/:instanceId/entities/:entityId Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  entityId:
                    type: string
                    format: uuid
                    example: 79a3af39-c171-4dfb-b51b-5a684f61525d
                  gameState:
                    $ref: '#/components/schemas/ExperienceGameState'
                required:
                  - entityId
                  - gameState
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/items:
    post:
      operationId: createItem
      summary: Create an item
      description: Generate an item and save it in this instance. All generation
        fields are optional, and the generated result may develop the supplied
        ideas. Each successful call creates a new entity. To use it for a
        pending story input, submit its identifier to that request; inventory
        placement is handled during play.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/items Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      requestBody:
        description: POST /instances/:instanceId/items Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Suggested name; free text is supported.
                  type: string
                  minLength: 1
                highConcept:
                  description: A short concept to guide generation.
                  type: string
                  minLength: 1
                brief:
                  description: Guidance for developing the generated entity.
                  type: string
                  minLength: 1
              required: []
              additionalProperties: false
              example:
                name: Roadside repair kit
                highConcept: A cobbler’s toolkit small enough for a field mouse
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances/:instanceId/items Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntityResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/locations:
    post:
      operationId: createLocation
      summary: Create a location
      description:
        Generate a location and save it in this instance. All generation
        fields are optional, and the generated result may develop the supplied
        ideas. Each successful call creates a new entity. To use it for a
        pending story input, submit its identifier to that request; characters
        move there during play.
      tags:
        - Entities
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/locations Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      requestBody:
        description: POST /instances/:instanceId/locations Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Suggested name; free text is supported.
                  type: string
                  minLength: 1
                highConcept:
                  description: A short concept to guide generation.
                  type: string
                  minLength: 1
                brief:
                  description: Guidance for developing the generated entity.
                  type: string
                  minLength: 1
              required: []
              additionalProperties: false
              example:
                name: The Wayside Workshop
                highConcept: A tiny repair shop beside the Yellow Brick Road
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances/:instanceId/locations Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntityResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/characters/canon:
    post:
      operationId: createCanonCharacter
      summary: Create a playable canon character
      description:
        Create the playable canon lead offered by a particular storyline.
        Use canonId and storylineTemplateId from an unlocked storyline offer;
        arbitrary canon characters are not eligible. Omitted edits retain the
        canon values. backstoryLines replaces only unlocked lines; locked facts
        remain. Creating the character does not start the storyline or a story.
      tags:
        - Characters
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/characters/canon Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      requestBody:
        description: POST /instances/:instanceId/characters/canon Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                storylineTemplateId:
                  type: string
                  minLength: 1
                canonId:
                  type: string
                  minLength: 1
                name:
                  type: string
                  minLength: 1
                pronoun:
                  type: string
                  enum:
                    - he
                    - she
                    - they
                    - it
                description:
                  type: string
                  minLength: 1
                personality:
                  type: string
                  minLength: 1
                backstoryLines:
                  type: array
                  items:
                    type: string
                    minLength: 1
              required:
                - storylineTemplateId
                - canonId
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances/:instanceId/characters/canon Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceEntityResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/storyline-offers:
    get:
      operationId: listStorylineOffers
      summary: List storyline offers
      description:
        Discover storylines this world can offer, their chapters, lead
        requirements and unlock conditions. An offer id is a template
        identifier, not the UUID of an instantiated storyline. Locked offers
        explain their requirements; they cannot be started. eligibleLeadIds
        names instance entities; canonLead provides creation details for an
        eligible canon lead.
      tags:
        - Storylines
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/storyline-offers Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/storyline-offers Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  offers:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceStorylineOffer'
                  continuingLeadIds:
                    type: array
                    items:
                      type: string
                      format: uuid
                      example: 79a3af39-c171-4dfb-b51b-5a684f61525d
                required:
                  - offers
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/storylines:
    get:
      operationId: listStorylines
      summary: List instantiated storylines
      description:
        Read storylines already started in this instance and their complete
        ordered chapter progress, including upcoming chapters. Choose which
        chapter details to display. Discover new storylines through storyline
        offers.
      tags:
        - Storylines
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/storylines Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/storylines Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  storylines:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceStoryline'
                required:
                  - storylines
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/storylines/{storylineId}:
    get:
      operationId: getStoryline
      summary: Get a storyline
      description: Read an instantiated storyline and the stories fulfilling its
        chapters. Chapter entityIds are canon references, not necessarily entity
        UUIDs in this instance. An offer’s expiry does not end a storyline that
        has already started.
      tags:
        - Storylines
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/storylines/:storylineId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storylineId
          in: path
          required: true
          description: GET /instances/:instanceId/storylines/:storylineId Parameter
          schema:
            type: string
            format: uuid
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/storylines/:storylineId Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryline'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/story-options:
    get:
      operationId: getStoryOptions
      summary: Get current story options
      description:
        Read this instance’s current set of three story options before its
        expiresAt time. Only the latest set is selectable. These options are
        temporary; story and storyline progress are persistent.
      tags:
        - Story setup
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/story-options Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/story-options Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryOptions'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description:
            The resource is missing, expired or not accessible to your
            application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource is missing, expired or not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    post:
      operationId: generateStoryOptions
      summary: Generate story options
      description: Generate three story options from the supplied lead, cast and
        modifiers. You can also provide an idea or context from a previous story
        or storyline. Each new set replaces the previous options for this
        instance. To start one, submit its id and the same setup to the
        story-creation operation.
      tags:
        - Story setup
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/story-options Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      requestBody:
        description: POST /instances/:instanceId/story-options Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                setup:
                  $ref: '#/components/schemas/ExperienceStorySetup'
                playerIdea:
                  type: string
                  minLength: 1
                  maxLength: 500
              required:
                - setup
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '200':
          description: POST /instances/:instanceId/story-options Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryOptions'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories:
    get:
      operationId: listStories
      summary: List stories
      description:
        Read stories in this instance, newest first, with their complete
        public turn histories and current objectives. Continue with nextOffset
        until it is null.
      tags:
        - Stories
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/stories Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: offset
          in: query
          required: false
          description: GET /instances/:instanceId/stories Parameter
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: GET /instances/:instanceId/stories Parameter
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/stories Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  stories:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceStory'
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - stories
                  - nextOffset
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    post:
      operationId: startStory
      summary: Start a story
      description:
        Start a story and its opening scene from an option in the current
        set. Supply the same setup used to generate the options. Changed setup
        or an expired, replaced or consumed option returns 409. A successful
        start consumes the option set and, for a first chapter, creates its
        storyline. If the response is lost, read current game state before
        retrying.
      tags:
        - Stories
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/stories Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      requestBody:
        description: POST /instances/:instanceId/stories Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                optionId:
                  type: string
                  format: uuid
                setup:
                  $ref: '#/components/schemas/ExperienceStorySetup'
              required:
                - optionId
                - setup
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '201':
          description: POST /instances/:instanceId/stories Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}:
    get:
      operationId: getStory
      summary: Get a story
      description:
        Read a story’s complete public turn history, current objectives,
        cast and storyline references. isActive is true while active, false when
        cancelled, and null when completed.
      tags:
        - Stories
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/stories/:storyId Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStory'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/action-suggestions:
    post:
      operationId: suggestActions
      summary: Get action suggestions
      description:
        Suggest actions for the story’s lead, optionally using playerText
        as guidance. Requesting suggestions leaves the story unchanged.
        Difficulty and scope are estimates; the server evaluates the submitted
        action against current state. For suggestions with talkToEntityId, open
        a conversation with that character.
      tags:
        - Story actions
      parameters:
        - name: instanceId
          in: path
          required: true
          description:
            POST /instances/:instanceId/stories/:storyId/action-suggestions
            Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description:
            POST /instances/:instanceId/stories/:storyId/action-suggestions
            Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      requestBody:
        description:
          POST /instances/:instanceId/stories/:storyId/action-suggestions
          Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                playerText:
                  default: ''
                  type: string
                advance:
                  default: false
                  type: boolean
              required: []
              additionalProperties: false
      security:
        - HTTP_1: []
      responses:
        '200':
          description:
            POST /instances/:instanceId/stories/:storyId/action-suggestions
            Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  phrases:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceIntentPhrase'
                required:
                  - phrases
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/turns:
    get:
      operationId: listTurns
      summary: List story turns
      description:
        Read public turns in chronological order, including their ordered
        events. Continue with nextOffset until it is null. This is the same
        public history included in the story and game-state reads.
      tags:
        - Story actions
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        - name: offset
          in: query
          required: false
          description: GET /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 9007199254740991
        - name: limit
          in: query
          required: false
          description: GET /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 100
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/stories/:storyId/turns Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  turns:
                    type: array
                    items:
                      type: object
                      properties:
                        turnId:
                          type: string
                          format: uuid
                        createdAt:
                          type: string
                          format: date-time
                        events:
                          type: array
                          items:
                            $ref: '#/components/schemas/ExperienceEvent'
                          description:
                            Public events in order, including the complete history of earlier
                            turns.
                      required:
                        - turnId
                        - createdAt
                        - events
                      additionalProperties: false
                  nextOffset:
                    type:
                      - integer
                      - 'null'
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - turns
                  - nextOffset
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
    post:
      operationId: submitTurn
      summary: Submit a story action
      description:
        Submit an action for the story’s lead. The server evaluates it
        against current state and resolves challenges by roll. An open
        conversation is finalized before the action takes place. Returns updated
        game state, new events and outstanding input requests. Answer pending
        input before submitting an unrelated action; conflicting actions return
        409.
      tags:
        - Story actions
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/turns Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      requestBody:
        description: POST /instances/:instanceId/stories/:storyId/turns Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                intentPhrase:
                  type: object
                  properties:
                    phrase:
                      type: string
                      minLength: 1
                      example: Follow the Yellow Brick Road toward the Emerald City
                  required:
                    - phrase
                  additionalProperties: false
              required:
                - intentPhrase
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '200':
          description: POST /instances/:instanceId/stories/:storyId/turns Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/inputs:
    get:
      operationId: listInputRequests
      summary: Get outstanding story input
      description:
        Read the durable input requests currently blocking this story,
        including prompts, eligible entities or offered choices. Requests are
        identified by their persisted begin event and do not expire with story
        options or conversations. An empty list means no input is outstanding.
      tags:
        - Story input
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId/inputs Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: GET /instances/:instanceId/stories/:storyId/inputs Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/stories/:storyId/inputs Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  inputRequests:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExperienceInputRequest'
                required:
                  - inputRequests
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/inputs/{eventId}:
    post:
      operationId: submitInput
      summary: Answer a story input request
      description:
        Answer a pending input request with an entity id, text, option id
        or scene name, matching the request’s type and eligible choices. For
        entity answers, the server applies required story roles and location
        changes before resuming the turn. Stale, superseded or already-answered
        requests return 409. If the response is lost, read current state before
        retrying.
      tags:
        - Story input
      parameters:
        - name: instanceId
          in: path
          required: true
          description:
            POST /instances/:instanceId/stories/:storyId/inputs/:eventId
            Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description:
            POST /instances/:instanceId/stories/:storyId/inputs/:eventId
            Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        - name: eventId
          in: path
          required: true
          description:
            POST /instances/:instanceId/stories/:storyId/inputs/:eventId
            Parameter
          schema:
            type: string
            format: uuid
            example: 81563a95-1576-49c2-af93-9e7c9cb4709e
      requestBody:
        description:
          POST /instances/:instanceId/stories/:storyId/inputs/:eventId
          Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                answer:
                  $ref: '#/components/schemas/ExperienceInputAnswer'
              required:
                - answer
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '200':
          description:
            POST /instances/:instanceId/stories/:storyId/inputs/:eventId
            Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/complete:
    post:
      operationId: completeStory
      summary: Finalize a completed story
      description:
        Apply final story outcomes and storyline progress after the story
        has ended. Omit entityIdsToKeep to retain all newly introduced entities,
        or supply the subset to retain; an empty array retains none of the
        eligible new entities. Existing entities, hidden entities and the lead
        are preserved. This operation does not force an active story to end or
        start the next story.
      tags:
        - Stories
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/complete Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/complete Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      requestBody:
        description: POST /instances/:instanceId/stories/:storyId/complete Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                entityIdsToKeep:
                  type: array
                  items:
                    type: string
                    format: uuid
                    example: 79a3af39-c171-4dfb-b51b-5a684f61525d
              required: []
              additionalProperties: false
      security:
        - HTTP_1: []
      responses:
        '200':
          description:
            POST /instances/:instanceId/stories/:storyId/complete Positive
            response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/cancel:
    post:
      operationId: cancelStory
      summary: Cancel an active story
      description:
        Cancel the active story, release its narrative constraints and
        return the resulting instance state. Cancellation is distinct from
        successful completion and retains the cancelled story’s public history
        with isActive false.
      tags:
        - Stories
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/cancel Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/cancel Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      requestBody:
        description: POST /instances/:instanceId/stories/:storyId/cancel Request body
        content:
          application/json:
            schema:
              type: object
              properties: {}
              required: []
              additionalProperties: false
      security:
        - HTTP_1: []
      responses:
        '200':
          description: POST /instances/:instanceId/stories/:storyId/cancel Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/conversations:
    post:
      operationId: openConversation
      summary: Open a character or narrator conversation
      description:
        Open one conversation in this active story and generate its opening
        dialogue. Character mode targets a present, eligible NPC; narrator mode
        is an out-of-character aside. Existing story rules still govern
        eligibility, including once-per-turn limits. The server retains the
        transcript until expiresAt. Expiry discards it without applying pending
        effects; explicit end or submitting the next story action applies those
        effects. Another open conversation or incompatible story input returns
        409.
      tags:
        - Conversations
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/conversations Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST /instances/:instanceId/stories/:storyId/conversations Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
      requestBody:
        description: POST /instances/:instanceId/stories/:storyId/conversations Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                target:
                  $ref: '#/components/schemas/ExperienceConversationTarget'
              required:
                - target
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '201':
          description:
            POST /instances/:instanceId/stories/:storyId/conversations Positive
            response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceConversation'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/conversations/{conversationId}:
    get:
      operationId: getConversation
      summary: Get a conversation
      description: Read an open conversation’s transcript, reply suggestions and
        current expiry. Missing, ended and expired conversations return 404.
      tags:
        - Conversations
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET
            /instances/:instanceId/stories/:storyId/conversations/:conversationId
            Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: GET
            /instances/:instanceId/stories/:storyId/conversations/:conversationId
            Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        - name: conversationId
          in: path
          required: true
          description: GET
            /instances/:instanceId/stories/:storyId/conversations/:conversationId
            Parameter
          schema:
            type: string
            format: uuid
            example: d0bc5bda-9876-4086-8b2c-39119a811f7e
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET
            /instances/:instanceId/stories/:storyId/conversations/:conversationId
            Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceConversation'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description:
            The resource is missing, expired or not accessible to your
            application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource is missing, expired or not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/conversations/{conversationId}/messages:
    post:
      operationId: sendConversationMessage
      summary: Send a conversation message
      description:
        Append your application’s dialogue and generate the NPC or narrator
        reply using the server-held transcript. Return the updated conversation
        and its current expiry. Story effects are applied when the conversation
        ends, not on every message. A resolved conversation cannot accept more
        messages; end it to apply its effects.
      tags:
        - Conversations
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/messages
            Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/messages
            Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        - name: conversationId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/messages
            Parameter
          schema:
            type: string
            format: uuid
            example: d0bc5bda-9876-4086-8b2c-39119a811f7e
      requestBody:
        description: POST
          /instances/:instanceId/stories/:storyId/conversations/:conversationId/messages
          Request body
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  minLength: 1
                  example: Have you seen a cobbler traveling toward the Emerald City?
              required:
                - text
              additionalProperties: false
        required: true
      security:
        - HTTP_1: []
      responses:
        '200':
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/messages
            Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceConversation'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/stories/{storyId}/conversations/{conversationId}/end:
    post:
      operationId: endConversation
      summary: End a conversation
      description: Finalize the dialogue and apply its narrative effects to the
        instance. Return updated game state and public events. The temporary
        conversation can no longer receive messages. An expired conversation has
        already been discarded and cannot be finalized.
      tags:
        - Conversations
      parameters:
        - name: instanceId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/end
            Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        - name: storyId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/end
            Parameter
          schema:
            type: string
            format: uuid
            example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        - name: conversationId
          in: path
          required: true
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/end
            Parameter
          schema:
            type: string
            format: uuid
            example: d0bc5bda-9876-4086-8b2c-39119a811f7e
      requestBody:
        description: POST
          /instances/:instanceId/stories/:storyId/conversations/:conversationId/end
          Request body
        content:
          application/json:
            schema:
              type: object
              properties: {}
              required: []
              additionalProperties: false
      security:
        - HTTP_1: []
      responses:
        '200':
          description: POST
            /instances/:instanceId/stories/:storyId/conversations/:conversationId/end
            Positive response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperienceStoryResult'
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '409':
          description:
            The operation conflicts with the current instance or story state.
            Read the current state before choosing the next action.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Conflict
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Conflict
                  message:
                    The operation conflicts with the current instance or story state. Read
                    the current state before choosing the next action.
        '413':
          description:
            The JSON request body exceeds 100 KB. Reduce its size before
            retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Payload Too Large
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Payload Too Large
                  message: The JSON request body exceeds 100 KB. Reduce its size before retrying.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
  /instances/{instanceId}/rules:
    get:
      operationId: getWorldRules
      summary: Get world rules
      description:
        Read the world’s rules for setting, magic, technology, physics,
        social norms and death, including the effects of the current story’s
        modifiers. Categories without authored rules are omitted.
      tags:
        - Instances
      parameters:
        - name: instanceId
          in: path
          required: true
          description: GET /instances/:instanceId/rules Parameter
          schema:
            type: string
            format: uuid
            example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
      security:
        - HTTP_1: []
      responses:
        '200':
          description: GET /instances/:instanceId/rules Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  rules:
                    type: object
                    properties:
                      setting:
                        type: array
                        items:
                          type: string
                      magic:
                        type: array
                        items:
                          type: string
                      technology:
                        type: array
                        items:
                          type: string
                      physics:
                        type: array
                        items:
                          type: string
                      socialNorms:
                        type: array
                        items:
                          type: string
                      deathMode:
                        type: array
                        items:
                          type: string
                    additionalProperties: false
                required:
                  - rules
                additionalProperties: false
        '400':
          description:
            Request parameters or the JSON body do not conform to this
            operation’s input schema. Correct the request before retrying.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Bad Request
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Bad Request
                  message:
                    Request parameters or the JSON body do not conform to this operation’s
                    input schema. Correct the request before retrying.
        '401':
          description:
            'Authentication is missing or invalid. Supply a valid API key in
            the Authorization: Bearer header.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Unauthorized
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Unauthorized
                  message:
                    'Authentication is missing or invalid. Supply a valid API key in the
                    Authorization: Bearer header.'
        '403':
          description: The authenticated account does not have access to the Experience API.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Forbidden
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Forbidden
                  message: The authenticated account does not have access to the Experience API.
        '404':
          description: The resource does not exist or is not accessible to your application.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Not Found
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Not Found
                  message: The resource does not exist or is not accessible to your application.
        '500':
          description:
            The server could not complete the request. Internal error details
            are not exposed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    const: Internal Server Error
                    description: The HTTP error category. Use the status code to handle failures.
                  message:
                    type: string
                    description:
                      A human-readable explanation. Do not parse this text for program
                      logic.
                required:
                  - error
                  - message
                additionalProperties: false
                example:
                  error: Internal Server Error
                  message: Internal server error
components:
  schemas:
    ExperienceGameState:
      type: object
      properties:
        instanceId:
          type: string
          format: uuid
        world:
          type: object
          properties:
            worldId:
              type: string
              format: uuid
            worldSeed:
              type: string
            name:
              type: string
            displayName:
              type: string
            description:
              type:
                - string
                - 'null'
            characters:
              type: array
              items:
                $ref: '#/components/schemas/ExperienceEntity'
            items:
              type: array
              items:
                $ref: '#/components/schemas/ExperienceEntity'
            locations:
              type: array
              items:
                $ref: '#/components/schemas/ExperienceEntity'
            twistNames:
              type: array
              items:
                type: string
              description: Applied world modifiers, including seed defaults.
            playerSelectedModifiers:
              type: array
              items:
                type: string
              description: The selected subset, excluding seed defaults.
          required:
            - worldId
            - worldSeed
            - name
            - displayName
            - description
            - characters
            - items
            - locations
            - twistNames
            - playerSelectedModifiers
          additionalProperties: false
        stories:
          type: array
          items:
            $ref: '#/components/schemas/ExperienceStory'
        storylines:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            $ref: '#/components/schemas/ExperienceStoryline'
        meta:
          type: object
          properties:
            currentLocale:
              type: string
            contentRating:
              description: Instance-level override, not the resolved scene or story rating.
              type: string
              enum:
                - all_ages
                - teen
                - mature
          additionalProperties: false
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - instanceId
        - world
        - stories
        - meta
        - createdAt
        - updatedAt
      additionalProperties: false
      examples:
        - instanceId: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
          world:
            worldId: 51ca502e-b07b-4ad1-a43a-93d5434f59dc
            worldSeed: oz
            name: oz
            displayName: The Land of Oz
            description:
              A storybook fantasy filled with talking animals, witches, strange
              creatures, and more!
            characters: []
            items: []
            locations: []
            twistNames: []
            playerSelectedModifiers: []
          stories: []
          storylines: {}
          meta:
            currentLocale: en-US
          createdAt: 2026-11-11T12:00:00Z
          updatedAt: 2026-11-12T12:00:00.000Z
    ExperienceStory:
      type: object
      properties:
        storyId:
          type: string
          format: uuid
        isActive:
          type:
            - boolean
            - 'null'
        name:
          type: string
        summary:
          type:
            - string
            - 'null'
        objectives:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              parentId:
                type:
                  - string
                  - 'null'
                format: uuid
              displayName:
                type:
                  - string
                  - 'null'
              objective:
                type: string
              outcome:
                type: string
              ownerId:
                type:
                  - string
                  - 'null'
                format: uuid
              isActive:
                type: boolean
            required:
              - id
              - parentId
              - displayName
              - objective
              - outcome
              - ownerId
              - isActive
            additionalProperties: false
        activeModifiers:
          type: array
          items:
            type: string
        turns:
          type: array
          items:
            type: object
            properties:
              turnId:
                type: string
                format: uuid
              createdAt:
                type: string
                format: date-time
              events:
                type: array
                items:
                  $ref: '#/components/schemas/ExperienceEvent'
                description:
                  Public events in order, including the complete history of earlier
                  turns.
            required:
              - turnId
              - createdAt
              - events
            additionalProperties: false
        locationId:
          type:
            - string
            - 'null'
          format: uuid
        playerCharacterId:
          type:
            - string
            - 'null'
          format: uuid
        influenceEntityIds:
          type: array
          items:
            type: string
            format: uuid
          description: Entities selected as influences when setting up the story.
        activeEntityIds:
          type: array
          items:
            type: string
            format: uuid
          description: Entities active in the story context.
        artifact:
          type:
            - object
            - 'null'
          properties:
            storyName:
              type: string
            storyLogline:
              type: string
            storyHighlights:
              type: array
              items:
                type: string
          required:
            - storyName
            - storyLogline
          additionalProperties: false
        plotCardTitle:
          type:
            - string
            - 'null'
        plotCardLogline:
          type:
            - string
            - 'null'
        suggestedIntents:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: array
            items:
              type: array
              prefixItems:
                - type: string
                - type: string
                - type:
                    - string
                    - 'null'
              items:
                not: {}
              minItems: 2
              maxItems: 3
        playerSelectedModifiers:
          type: array
          items:
            type: string
        storylineId:
          type:
            - string
            - 'null'
          format: uuid
        storylineBeatId:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - storyId
        - isActive
        - name
        - objectives
        - activeModifiers
        - turns
        - locationId
        - playerCharacterId
        - influenceEntityIds
        - activeEntityIds
        - artifact
        - plotCardTitle
        - plotCardLogline
        - suggestedIntents
        - playerSelectedModifiers
        - createdAt
        - updatedAt
      additionalProperties: false
    ExperienceStoryline:
      type: object
      properties:
        id:
          type: string
          format: uuid
        worldId:
          type: string
          format: uuid
        templateId:
          type: string
        templateVersion:
          type:
            - string
            - 'null'
        name:
          type: string
        mcEntityId:
          type:
            - string
            - 'null'
          format: uuid
        status:
          type: string
          enum:
            - active
            - completed
            - cancelled
        beats:
          type: array
          items:
            type: object
            properties:
              beatId:
                type: string
              source:
                type: string
                enum:
                  - authored
                  - inspired
              name:
                type: string
              description:
                type: string
              teaser:
                type: string
              entityIds:
                description: Canon identifiers, not instance entity UUIDs.
                type: array
                items:
                  type: string
              status:
                type: string
                enum:
                  - open
                  - hit
                  - skipped
              fulfilledByStoryId:
                type:
                  - string
                  - 'null'
                format: uuid
            required:
              - beatId
              - source
              - name
              - description
              - teaser
              - status
              - fulfilledByStoryId
            additionalProperties: false
          description:
            The complete resolved beat sequence, including upcoming beats, in
            order.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        availableUntil:
          description: The offering window end; does not expire an existing storyline.
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - worldId
        - templateId
        - templateVersion
        - name
        - mcEntityId
        - status
        - beats
        - createdAt
        - updatedAt
      additionalProperties: false
    ExperienceEntity:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - character
            - item
            - location
        name:
          type: string
        nickNames:
          type: array
          items:
            type: string
        description:
          type: string
        pronoun:
          type: string
          enum:
            - he
            - she
            - they
            - it
        personality:
          type:
            - string
            - 'null'
        mind:
          type: number
        body:
          type: number
        heart:
          type: number
        energy:
          type: number
        maxEnergy:
          type: number
        conditions:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: object
            properties:
              description:
                type: string
              duration:
                type: number
              turns:
                type:
                  - number
                  - 'null'
              storyIndex:
                type:
                  - number
                  - 'null'
            required:
              - description
            additionalProperties: false
        properties:
          type: object
          properties:
            authored:
              type: boolean
            canonId:
              type: string
            narrativeRole:
              type: string
            role:
              type: string
            characterType:
              type: string
            tropeNames:
              type: array
              items:
                type: string
            displayTropes:
              type: object
              propertyNames:
                type: string
              additionalProperties:
                type: string
            emotionalState:
              type: string
            goalsAndBeliefs:
              type: array
              items:
                type: string
          additionalProperties: false
        narrativeRoles:
          type: array
          items:
            type: object
            properties:
              narrativeRoleId:
                type: string
                format: uuid
              targetId:
                type: string
                format: uuid
              narrativeRole:
                type: string
              displayName:
                type:
                  - string
                  - 'null'
              playerVisible:
                type:
                  - boolean
                  - 'null'
            required:
              - narrativeRoleId
              - targetId
              - narrativeRole
            additionalProperties: false
        objective:
          type: array
          items:
            type: string
        sourceRelationships:
          type: array
          items:
            type: object
            properties:
              relationshipId:
                type: string
                format: uuid
              sourceId:
                type: string
                format: uuid
              targetId:
                type: string
                format: uuid
              type:
                type: string
              strength:
                type:
                  - number
                  - 'null'
              description:
                type:
                  - string
                  - 'null'
              duration:
                type:
                  - number
                  - 'null'
            required:
              - relationshipId
              - sourceId
              - targetId
              - type
            additionalProperties: false
        targetRelationships:
          type: array
          items:
            type: object
            properties:
              relationshipId:
                type: string
                format: uuid
              sourceId:
                type: string
                format: uuid
              targetId:
                type: string
                format: uuid
              type:
                type: string
              strength:
                type:
                  - number
                  - 'null'
              description:
                type:
                  - string
                  - 'null'
              duration:
                type:
                  - number
                  - 'null'
            required:
              - relationshipId
              - sourceId
              - targetId
              - type
            additionalProperties: false
        aspects:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              aspect:
                type: string
              category:
                type: array
                items:
                  type: string
            required:
              - id
              - aspect
              - category
            additionalProperties: false
        isHidden:
          type: boolean
        isNotPlayable:
          type:
            - boolean
            - 'null'
        isActive:
          type: boolean
        containerId:
          type:
            - string
            - 'null'
          format: uuid
        locationId:
          type:
            - string
            - 'null'
          format: uuid
        contents:
          type: array
          items:
            $ref: '#/components/schemas/ExperienceEntity'
        originWorldSeed:
          type:
            - string
            - 'null'
        createdInStoryId:
          type:
            - string
            - 'null'
          format: uuid
        storyHistory:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: string
        backstory:
          type:
            - string
            - 'null'
        lore:
          type: array
          items:
            type: string
      required:
        - id
        - type
        - name
        - nickNames
        - description
        - pronoun
        - personality
        - mind
        - body
        - heart
        - energy
        - maxEnergy
        - conditions
        - properties
        - narrativeRoles
        - objective
        - aspects
        - isHidden
        - isNotPlayable
        - isActive
        - containerId
        - locationId
        - originWorldSeed
        - createdInStoryId
        - storyHistory
        - lore
      additionalProperties: false
    ExperienceEvent:
      oneOf:
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: IMPOSSIBLE
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_OBJECTIVE
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_OBJECTIVE
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_STORY
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_LOCATION
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: MICROBEAT
            data:
              type: object
              properties:
                id:
                  type: string
                text:
                  type: string
                meta:
                  type: object
                  properties:
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                  additionalProperties: false
              required:
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: REFLECTION
            data:
              type: object
              properties:
                text:
                  type: string
                firstPersonText:
                  type: string
                impossible:
                  type: boolean
              required:
                - text
                - firstPersonText
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: CHALLENGE_RESULT
            data:
              type: object
              properties:
                text:
                  type: string
                  enum:
                    - success
                    - failure
                meta:
                  type: object
                  properties:
                    difficulty:
                      type: string
                      enum:
                        - automatic
                        - easy
                        - medium
                        - hard
                        - impossible
                        - ''
                    sourceStat:
                      type: string
                    sourceStatEntityId:
                      type: string
                      format: uuid
                    sourceIntent:
                      type: object
                      properties:
                        intentId:
                          type: string
                          format: uuid
                        sentence:
                          type: string
                      required:
                        - intentId
                        - sentence
                      additionalProperties: false
                    sourceMinigame:
                      type: string
                    summary:
                      type: string
                  additionalProperties: false
              required:
                - text
                - meta
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_OBJECTIVE
            data:
              type: object
              properties:
                threadId:
                  type: string
                  format: uuid
                oldText:
                  type: string
                text:
                  type: string
              required:
                - threadId
                - oldText
                - text
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: END_STORY
            data:
              type: object
              properties:
                storyId:
                  type: string
                  format: uuid
                endReason:
                  type: string
                text:
                  description:
                    Ending text, when present. The event marks the story ending even
                    when text is absent.
                  type: string
              required:
                - storyId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_SCENE
            data:
              type: object
              properties:
                text:
                  type: string
                sceneLocation:
                  $ref: '#/components/schemas/ExperienceEntity'
              required:
                - text
                - sceneLocation
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: END_SCENE
            data:
              type: object
              properties:
                text:
                  type: string
                storyId:
                  type: string
                  format: uuid
                outcome:
                  type: string
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: BEGIN_AUTHORSHIP
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                variableSpec:
                  type: object
                  properties:
                    authorship:
                      type: object
                      properties:
                        cta:
                          type: string
                        inputs:
                          type: array
                          items:
                            type: string
                      additionalProperties: false
                    entityType:
                      type:
                        - string
                        - 'null'
                    highConceptTerms:
                      type: array
                      items:
                        type: string
                    narrativeRole:
                      type: string
                  additionalProperties: false
              required:
                - variableSpec
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_AUTHORSHIP
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                beginAuthorshipEventId:
                  type: string
                  format: uuid
                authoredEntityId:
                  type: string
                  format: uuid
                authoredStringVariable:
                  type: string
              required:
                - beginAuthorshipEventId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: BEGIN_MULTIPLE_CHOICE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                cta:
                  type: string
                options:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      value:
                        type: string
                    required:
                      - id
                      - value
                    additionalProperties: false
              required:
                - cta
                - options
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_MULTIPLE_CHOICE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                beginEventId:
                  type: string
                  format: uuid
                cta:
                  type: string
                selectedOption:
                  type: object
                  properties:
                    id:
                      type: string
                    value:
                      type: string
                  required:
                    - id
                    - value
                  additionalProperties: false
              required:
                - beginEventId
                - cta
                - selectedOption
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: BEGIN_SELECT_SCENE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                sceneId:
                  type: string
                  format: uuid
                potentialScenes:
                  type: array
                  items:
                    type: object
                    properties:
                      sceneName:
                        type: string
                      displayName:
                        type: string
                      tropetags:
                        type: array
                        items:
                          type: string
                      description:
                        type: string
                      fromPlayerRequest:
                        type: boolean
                    required:
                      - sceneName
                      - displayName
                    additionalProperties: false
                beatTeaser:
                  type: string
              required:
                - sceneId
                - potentialScenes
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: BEGIN_SCENE_TRANSITION_SETUP
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                completedSceneName:
                  type: string
                completedSceneOutcome:
                  type: string
                sceneId:
                  type: string
                  format: uuid
              required:
                - completedSceneName
                - completedSceneOutcome
                - sceneId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_SCENE_TRANSITION_SETUP
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                sceneId:
                  type: string
                  format: uuid
              required:
                - sceneId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_SELECT_SCENE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                beginSelectSceneEventId:
                  type: string
                  format: uuid
                superseded:
                  type: boolean
              required:
                - beginSelectSceneEventId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: BEGIN_MINIGAME
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                minigameId:
                  type: string
              required:
                - minigameId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: COMPLETE_MINIGAME
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                minigameId:
                  type: string
                beginEventId:
                  type: string
                  format: uuid
              required:
                - minigameId
                - beginEventId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_LOCATION
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_ENTITY
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
              required:
                - entityId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_ENTITIES
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityIds:
                  type: array
                  items:
                    type: string
                    format: uuid
              required:
                - entityIds
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_INVENTORY
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                operation:
                  type: string
                  enum:
                    - add
                    - move
                    - remove
                itemId:
                  type: string
                  format: uuid
                ownerId:
                  type: string
                  format: uuid
                previousOwnerId:
                  type:
                    - string
                    - 'null'
                  format: uuid
              required:
                - operation
                - itemId
                - ownerId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_ROLE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_NARRATIVE_ROLE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                sourceEntityId:
                  type: string
                  format: uuid
                targetEntityId:
                  type: string
                  format: uuid
                narrativeRole:
                  type: string
                operation:
                  type: string
                  enum:
                    - apply
                    - remove
                narrativeRoleDisplayName:
                  type: string
                playerVisible:
                  type: boolean
              required:
                - sourceEntityId
                - targetEntityId
                - narrativeRole
                - operation
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_TROPE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
                operation:
                  type: string
                  enum:
                    - apply
                    - remove
                tropeName:
                  type: string
                tropeDisplayName:
                  type: string
                playerVisible:
                  type: boolean
              required:
                - entityId
                - operation
                - tropeName
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: TRANSITION_TROPE
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
                fromTrope:
                  type: string
                fromTropeDisplayName:
                  type: string
                toTrope:
                  type: string
                toTropeDisplayName:
                  type: string
                playerVisible:
                  type: boolean
              required:
                - entityId
                - fromTrope
                - toTrope
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_ASPECT
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                aspect:
                  type: string
                category:
                  type: array
                  items:
                    type: string
                operation:
                  type: string
                  enum:
                    - add
                    - remove
                entityId:
                  type: string
                  format: uuid
                aspectId:
                  type: string
              required:
                - aspect
                - category
                - operation
                - entityId
                - aspectId
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_CONDITION
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                operation:
                  type: string
                  enum:
                    - apply
                    - remove
                entityId:
                  type: string
                  format: uuid
                description:
                  type: string
              required:
                - operation
                - entityId
                - description
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_CONDITIONS
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
                conditions:
                  type: array
                  items:
                    type: string
                operations:
                  type: array
                  items:
                    type: string
                    enum:
                      - apply
                      - remove
              required:
                - entityId
                - conditions
                - operations
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_NAME
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
                oldName:
                  type: string
                newName:
                  type: string
              required:
                - entityId
                - oldName
                - newName
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_ENERGY
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityId:
                  type: string
                  format: uuid
                delta:
                  type: number
              required:
                - entityId
                - delta
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_RELATIONSHIP
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                operation:
                  type: string
                  enum:
                    - apply
                    - remove
                sourceEntityId:
                  type: string
                  format: uuid
                targetEntityId:
                  type: string
                  format: uuid
                type:
                  type: string
              required:
                - operation
                - sourceEntityId
                - targetEntityId
                - type
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: UPDATE_RELATIONSHIPS
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                sourceEntityId:
                  type: string
                  format: uuid
                targetEntityId:
                  type: string
                  format: uuid
                types:
                  type: array
                  items:
                    type: string
                operations:
                  type: array
                  items:
                    type: string
                    enum:
                      - apply
                      - remove
              required:
                - sourceEntityId
                - targetEntityId
                - types
                - operations
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NEW_MODIFIER
            data:
              type: object
              properties:
                text:
                  type: string
                modifierName:
                  type: string
                modifierDisplayName:
                  type: string
              required:
                - text
                - modifierName
                - modifierDisplayName
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: CHOOSE_ENTITIES
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                entityIds:
                  type: array
                  items:
                    type: string
                    format: uuid
              required:
                - entityIds
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: STORYLINE_COMPLETED
            data:
              type: object
              properties:
                text:
                  type: string
                  const: ''
                storylineId:
                  type: string
                  format: uuid
                storylineName:
                  type: string
              required:
                - storylineId
                - storylineName
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
            event:
              type: string
              const: NARRATOR_ASIDE
            data:
              type: object
              properties:
                text:
                  type: string
                wrapUp:
                  type: string
                  enum:
                    - none
                    - scene
                    - story
                declined:
                  type:
                    - string
                    - 'null'
                lens:
                  type:
                    - object
                    - 'null'
                  properties:
                    criticId:
                      type: string
                    label:
                      type: string
                    source:
                      type: string
                      enum:
                        - scene
                        - story
                        - world
                        - default
                  required:
                    - criticId
                    - label
                    - source
                  additionalProperties: false
                contentRating:
                  type:
                    - object
                    - 'null'
                  properties:
                    rating:
                      type: string
                      enum:
                        - all_ages
                        - teen
                        - mature
                    label:
                      type: string
                    source:
                      type: string
                      enum:
                        - scene
                        - story
                        - game
                        - world
                        - default
                  required:
                    - rating
                    - label
                    - source
                  additionalProperties: false
              required:
                - text
                - wrapUp
                - declined
              additionalProperties: false
          required:
            - eventId
            - event
            - data
          additionalProperties: false
      discriminator:
        propertyName: event
    ExperienceEntityResult:
      type: object
      properties:
        entity:
          $ref: '#/components/schemas/ExperienceEntity'
        gameState:
          $ref: '#/components/schemas/ExperienceGameState'
      required:
        - entity
        - gameState
      additionalProperties: false
      examples: []
    ExperienceModifier:
      type: object
      properties:
        name:
          type: string
        displayName:
          type: string
        displayDescription:
          type: string
        displayTags:
          type: array
          items:
            type: string
        displayEffects:
          type: array
          items:
            type: string
        displayCriteria:
          type: string
        characterBackstoryPrompts:
          type: array
          items:
            type: string
        highConceptTerms:
          type: array
          items:
            type: string
      required:
        - name
        - displayName
        - displayDescription
        - displayTags
        - displayEffects
        - displayCriteria
      additionalProperties: false
    ExperienceStorylineOffer:
      type: object
      properties:
        id:
          type: string
          example: oz_crossing
        name:
          type: string
          example: Over the Rainbow
        beats:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              teaser:
                type: string
              entities:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                  required:
                    - id
                    - name
                  additionalProperties: false
            required:
              - name
              - teaser
            additionalProperties: false
        teaser:
          type:
            - string
            - 'null'
        tags:
          type: array
          items:
            type: string
        availableFrom:
          type:
            - string
            - 'null'
        availableUntil:
          type:
            - string
            - 'null'
        entities:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
            required:
              - id
              - name
            additionalProperties: false
        defaultMcEntityId:
          type:
            - string
            - 'null'
          format: uuid
        eligibleLeadIds:
          type: array
          items:
            type: string
            format: uuid
            example: 79a3af39-c171-4dfb-b51b-5a684f61525d
        leadArchetypeName:
          type:
            - string
            - 'null'
        isOrigin:
          type: boolean
        locked:
          type: boolean
        unlockHints:
          type: array
          items:
            type: object
            properties:
              text:
                type: string
              storylineTemplateId:
                type: string
              storylineName:
                type: string
              availableFrom:
                type:
                  - string
                  - 'null'
            required:
              - text
              - storylineTemplateId
              - storylineName
            additionalProperties: false
        scope:
          type: string
          enum:
            - global
            - seed
            - modifier
        modifierName:
          type:
            - string
            - 'null'
        canonLeadId:
          type:
            - string
            - 'null'
        characterTied:
          type: boolean
        canonLead:
          type: object
          properties:
            canonId:
              type: string
            name:
              type: string
            pronoun:
              type: string
              enum:
                - he
                - she
                - they
                - it
            description:
              type: string
            personality:
              type: string
            backstoryLines:
              type: array
              items:
                type: object
                properties:
                  text:
                    type: string
                  locked:
                    type: boolean
                required:
                  - text
                  - locked
                additionalProperties: false
          required:
            - canonId
            - name
            - pronoun
            - description
            - personality
            - backstoryLines
          additionalProperties: false
      required:
        - id
        - name
        - beats
        - isOrigin
        - locked
        - unlockHints
      additionalProperties: false
    ExperienceStoryOptions:
      type: object
      properties:
        instanceId:
          type: string
          format: uuid
          example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        options:
          minItems: 3
          maxItems: 3
          type: array
          items:
            $ref: '#/components/schemas/ExperienceStoryOption'
        expiresAt:
          type: string
          format: date-time
          description:
            When this option set expires. Requesting another set replaces it
            before this time.
      required:
        - instanceId
        - options
        - expiresAt
      additionalProperties: false
    ExperienceStoryOption:
      type: object
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
          example: Trouble at the Wayside Workshop
        logline:
          type: string
          example: Mallow follows a trail of misplaced shoes along the Yellow Brick Road.
        sequelTo:
          type: string
          format: uuid
          example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        isCanonStory:
          type: boolean
        displayTropeTags:
          type: array
          items:
            type: string
        canonEntitiesUnlocked:
          type: array
          items:
            type: object
            properties:
              canonId:
                type: string
              name:
                type: string
              type:
                type: string
                enum:
                  - character
                  - item
                  - location
            required:
              - canonId
              - name
              - type
            additionalProperties: false
        playerIdeaSeeded:
          type: boolean
        storylineBeatLabel:
          type: string
        storylineId:
          type:
            - string
            - 'null'
          format: uuid
        targetedBeatId:
          type:
            - string
            - 'null'
      required:
        - id
        - title
        - logline
        - isCanonStory
        - displayTropeTags
        - canonEntitiesUnlocked
      additionalProperties: false
    ExperienceStorySetup:
      type: object
      properties:
        playerCharacterId:
          type: string
          format: uuid
          example: 79a3af39-c171-4dfb-b51b-5a684f61525d
          description: The entity identifier of the character taking the lead in this story.
        entityIds:
          type: array
          items:
            type: string
            format: uuid
            example: 79a3af39-c171-4dfb-b51b-5a684f61525d
          description:
            Supporting cast selected from this instance. Supply an empty array
            for no supporting cast.
        modifierNames:
          default: []
          type: array
          items:
            type: string
            minLength: 1
        contextStoryId:
          description: A previous story in this instance to use as context.
          type: string
          format: uuid
          example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        startTemplateId:
          description:
            A storyline offer identifier to start. Mutually exclusive with
            storylineId.
          type: string
          minLength: 1
        storylineId:
          description:
            An existing storyline to continue. Mutually exclusive with
            startTemplateId.
          type: string
          format: uuid
        targetBeatId:
          description: A chapter in the selected existing storyline. Requires storylineId.
          type: string
          minLength: 1
      required:
        - playerCharacterId
        - entityIds
      additionalProperties: false
      not:
        required:
          - startTemplateId
          - storylineId
      dependentRequired:
        targetBeatId:
          - storylineId
      example:
        playerCharacterId: 79a3af39-c171-4dfb-b51b-5a684f61525d
        entityIds: []
        modifierNames: []
        startTemplateId: oz_trouble_at_home
    ExperienceStoryResult:
      type: object
      properties:
        storyId:
          type: string
          format: uuid
          example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        gameState:
          $ref: '#/components/schemas/ExperienceGameState'
        events:
          type: array
          items:
            $ref: '#/components/schemas/ExperienceEvent'
          description: Public events produced by this operation, in order.
        inputRequests:
          type: array
          items:
            $ref: '#/components/schemas/ExperienceInputRequest'
          description:
            Outstanding input requests after this operation; empty when none
            are pending.
      required:
        - storyId
        - gameState
        - events
        - inputRequests
      additionalProperties: false
      examples:
        - storyId: b79d72ef-92fb-4bcd-917a-9886e62d41d8
          gameState:
            instanceId: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
            world:
              worldId: 51ca502e-b07b-4ad1-a43a-93d5434f59dc
              worldSeed: oz
              name: oz
              displayName: The Land of Oz
              description:
                A storybook fantasy filled with talking animals, witches, strange
                creatures, and more!
              characters: []
              items: []
              locations: []
              twistNames: []
              playerSelectedModifiers: []
            stories: []
            storylines: {}
            meta:
              currentLocale: en-US
            createdAt: 2026-11-11T12:00:00Z
            updatedAt: 2026-11-12T12:00:00.000Z
          events: []
          inputRequests: []
    ExperienceInputRequest:
      oneOf:
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
              example: 81563a95-1576-49c2-af93-9e7c9cb4709e
            storyId:
              type: string
              format: uuid
              example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
            prompt:
              type: string
            type:
              type: string
              const: entity
            entityType:
              type: string
              enum:
                - character
                - item
                - location
            eligibleEntityIds:
              type: array
              items:
                type: string
                format: uuid
                example: 79a3af39-c171-4dfb-b51b-5a684f61525d
            highConceptTerms:
              type: array
              items:
                type: string
            narrativeRole:
              type: string
            inputs:
              type: array
              items:
                type: string
              description: Generation prompts for the requested entity.
          required:
            - eventId
            - storyId
            - prompt
            - type
            - entityType
            - eligibleEntityIds
            - inputs
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
              example: 81563a95-1576-49c2-af93-9e7c9cb4709e
            storyId:
              type: string
              format: uuid
              example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
            prompt:
              type: string
            type:
              type: string
              const: text
            inputs:
              type: array
              items:
                type: string
          required:
            - eventId
            - storyId
            - prompt
            - type
            - inputs
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
              example: 81563a95-1576-49c2-af93-9e7c9cb4709e
            storyId:
              type: string
              format: uuid
              example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
            prompt:
              type: string
            type:
              type: string
              const: multipleChoice
            options:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  value:
                    type: string
                required:
                  - id
                  - value
                additionalProperties: false
          required:
            - eventId
            - storyId
            - prompt
            - type
            - options
          additionalProperties: false
        - type: object
          properties:
            eventId:
              type: string
              format: uuid
              example: 81563a95-1576-49c2-af93-9e7c9cb4709e
            storyId:
              type: string
              format: uuid
              example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
            prompt:
              type: string
            type:
              type: string
              const: scene
            options:
              type: array
              items:
                type: object
                properties:
                  sceneName:
                    type: string
                  displayName:
                    type: string
                  description:
                    type: string
                  tropetags:
                    type: array
                    items:
                      type: string
                  fromPlayerRequest:
                    type: boolean
                required:
                  - sceneName
                  - displayName
                additionalProperties: false
          required:
            - eventId
            - storyId
            - prompt
            - type
            - options
          additionalProperties: false
      discriminator:
        propertyName: type
    ExperienceIntentPhrase:
      type: object
      properties:
        phrase:
          type: string
        difficulty:
          type: string
          enum:
            - automatic
            - easy
            - medium
            - hard
            - impossible
            - ''
        scope:
          type: string
          enum:
            - ok
            - too_big
        originalPhrase:
          type: string
        talkToEntityId:
          description:
            An NPC addressed by this suggestion; use a character conversation
            to talk to them.
          type: string
          format: uuid
          example: 79a3af39-c171-4dfb-b51b-5a684f61525d
      required:
        - phrase
        - difficulty
      additionalProperties: false
    ExperienceInputAnswer:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              const: entity
            entityId:
              type: string
              format: uuid
              example: 79a3af39-c171-4dfb-b51b-5a684f61525d
          required:
            - type
            - entityId
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: text
            value:
              type: string
              minLength: 1
          required:
            - type
            - value
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: multipleChoice
            optionId:
              type: string
              minLength: 1
          required:
            - type
            - optionId
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: scene
            sceneName:
              type: string
              minLength: 1
          required:
            - type
            - sceneName
          additionalProperties: false
      discriminator:
        propertyName: type
    ExperienceConversationTarget:
      oneOf:
        - type: object
          properties:
            mode:
              type: string
              const: character
            entityId:
              type: string
              format: uuid
              example: 79a3af39-c171-4dfb-b51b-5a684f61525d
            openingIntent:
              type: string
              minLength: 1
              maxLength: 350
          required:
            - mode
            - entityId
          additionalProperties: false
        - type: object
          properties:
            mode:
              type: string
              const: narrator
            narratorPersonality:
              type: string
              enum:
                - storyteller
                - jester
                - tormentor
                - grandparent
          required:
            - mode
          additionalProperties: false
      discriminator:
        propertyName: mode
    ExperienceConversation:
      type: object
      properties:
        conversationId:
          type: string
          format: uuid
          example: d0bc5bda-9876-4086-8b2c-39119a811f7e
        instanceId:
          type: string
          format: uuid
          example: da1cc53b-9d9e-4edb-83e4-d5a9ee713130
        storyId:
          type: string
          format: uuid
          example: b79d72ef-92fb-4bcd-917a-9886e62d41d8
        mode:
          type: string
          enum:
            - character
            - narrator
        entityId:
          type:
            - string
            - 'null'
          format: uuid
        transcript:
          type: array
          items:
            type: object
            properties:
              speaker:
                type: string
                enum:
                  - player
                  - entity
                description:
                  player marks dialogue supplied by your application; entity marks
                  the character or narrator’s reply.
              text:
                type: string
              declined:
                type:
                  - string
                  - 'null'
              counterOffer:
                type: boolean
              accepted:
                type: array
                items:
                  type: string
            required:
              - speaker
              - text
            additionalProperties: false
        exchangeCount:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        windingDown:
          type: boolean
        resolved:
          type: boolean
        suggestions:
          type: array
          items:
            type: string
        narratorPersonality:
          type: string
        expiresAt:
          type: string
          format: date-time
          description:
            The current expiry time. Expiry discards the conversation without
            applying its pending effects.
      required:
        - conversationId
        - instanceId
        - storyId
        - mode
        - entityId
        - transcript
        - exchangeCount
        - windingDown
        - resolved
        - suggestions
        - expiresAt
      additionalProperties: false
  responses: {}
  parameters: {}
  examples: {}
  requestBodies: {}
  headers: {}
  securitySchemes:
    HTTP_1:
      type: http
      scheme: bearer
  links: {}
  callbacks: {}
tags: []
servers:
  - url: https://api.hiddendoor.co/experience/v1
