openapi: 3.1.0
info:
  title: Servers Are Up — Public API
  version: '1'
  description: >-
    Programmatic access to your Servers Are Up resources. Authenticate with a
    personal access token: send `Authorization: Bearer sau_...`. Create and
    scope tokens in the dashboard under Account > API Keys.


    **Rate limiting.** Every response carries `X-RateLimit-Limit`,
    `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds until the window
    resets). When you exceed the limit the API returns `429` with a
    `Retry-After` header (seconds to wait).


    **Pagination.** List endpoints use `limit` (1–200, default 200) and `offset`
    (>= 0) query parameters and return `count`, `total`, `limit` and `offset`
    alongside the items.


    **Idempotency.** Mutating provisioning POSTs accept an optional
    `Idempotency-Key` request header. Replaying the same key with the same body
    returns the original response; reusing it with a different body returns
    `422`, and a key whose original request is still running returns `409`. When
    a key is supplied, the response echoes `Idempotency-Key` and sets
    `Idempotency-Replayed` (`true` for a replayed response, `false` for a fresh
    execution) so clients can detect idempotency support directly from the
    response. Catalog purchases at `POST /v1/orders` and its `/v1/deploy` alias
    require the key, return `409` for changed purchase parameters, and indicate
    replay with the `replayed` response field. Confirmation may change from
    false to true with the same key.


    **Errors.** Error responses share the shape `{ "error": string, "code":
    string, "details"?: object, "retryAfter"?: number }`.


    **Versioning & deprecation policy.** All public REST endpoints are versioned
    in the URL path under `/api/v1` and return `X-API-Version: v1` on every
    response (version metadata is also queryable without auth at `GET
    /api/v1/version`). Breaking changes are introduced only under a new major
    path version (`/api/v2`). Any deprecated operation or version remains active
    for a minimum 6-month deprecation window and emits standard RFC 8594
    `Sunset` (HTTP-date) and `Deprecation` (`@timestamp`) headers alongside a
    migration link.


    **Zero-auth discovery & self-serve onboarding.** Agents can query `GET
    /api/v1/version`, `GET /api/v1/catalog`, `GET /api/v1/recommend`, `GET
    /api/v1/openapi`, and `GET /api/v1/reservations/plans` with zero
    authentication (plus the structured live product catalog feed at `GET
    /feed/products.json`). Self-serve account registration is available at
    `https://serversareup.com/register`, and scoped personal access tokens
    (`sau_...`) are generated self-serve at
    `https://serversareup.com/account/api-keys`. An MCP server exposing 129
    scoped tools is available at `https://serversareup.com/api/mcp/v1` (and
    `https://mcp.serversareup.com`).
servers:
  - url: https://serversareup.com/api
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sau_<token>
  schemas:
    InstanceTaskReference:
      type: object
      required:
        - id
        - status
        - links
        - actions
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - INCONCLUSIVE
            - SUCCEEDED
            - FAILED
        links:
          type: object
          required:
            - self
            - collection
            - instance
            - serviceRoot
          properties:
            self:
              type: string
              pattern: ^/api/v1/instances/[^/]+/tasks/[^/]+$
            collection:
              type: string
              pattern: ^/api/v1/instances/[^/]+/tasks$
            instance:
              type: string
              pattern: ^/api/v1/instances/[^/]+$
            serviceRoot:
              const: /api/v1
        actions:
          type: array
          maxItems: 0
    InstanceTask:
      allOf:
        - $ref: '#/components/schemas/InstanceTaskReference'
        - type: object
          required:
            - kind
            - createdAt
            - updatedAt
            - startedAt
            - completedAt
          properties:
            kind:
              type: string
            createdAt:
              type: string
              format: date-time
            updatedAt:
              type: string
              format: date-time
            startedAt:
              type:
                - string
                - 'null'
              format: date-time
            completedAt:
              type:
                - string
                - 'null'
              format: date-time
    InstanceTaskCollection:
      type: object
      required:
        - id
        - status
        - links
        - actions
        - tasks
        - count
        - total
        - limit
        - offset
      properties:
        id:
          type: string
          pattern: ^/api/v1/instances/[^/]+/tasks$
        status:
          const: available
        links:
          type: object
          required:
            - self
            - instance
            - serviceRoot
            - resources
          properties:
            self:
              type: string
            instance:
              type: string
            serviceRoot:
              const: /api/v1
            next:
              type: string
            previous:
              type: string
            resources:
              type: array
              items:
                type: object
                required:
                  - href
                  - templated
                properties:
                  href:
                    type: string
                    pattern: ^/api/v1/instances/[^/]+/tasks/[^/]+$
                  templated:
                    const: false
        actions:
          type: array
          maxItems: 0
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/InstanceTask'
        count:
          type: integer
          minimum: 0
        total:
          type: integer
          minimum: 0
        limit:
          type: integer
          minimum: 1
          maximum: 200
        offset:
          type: integer
          minimum: 0
          maximum: 2147483647
    InstanceAffordances:
      type: object
      required:
        - links
        - actions
      properties:
        links:
          type: object
          required:
            - self
            - collection
            - serviceRoot
            - tasks
            - entryPoints
            - portForwards
            - files
            - exec
          properties:
            self:
              type: string
              pattern: ^/api/v1/instances/
            collection:
              const: /api/v1/instances
            serviceRoot:
              const: /api/v1
            tasks:
              type: string
              pattern: ^/api/v1/instances/[^/]+/tasks$
            entryPoints:
              type: string
              pattern: ^/api/v1/instances/[^/]+/entry-points$
            portForwards:
              type: string
              pattern: ^/api/v1/instances/[^/]+/port-forwards$
            files:
              type: string
              pattern: ^/api/v1/instances/[^/]+/files$
            exec:
              type: string
              pattern: ^/api/v1/instances/[^/]+/exec$
            gameServerControl:
              type: string
              pattern: ^/api/v1/instances/[^/]+/game-server/control$
            gameWebsite:
              type: string
              pattern: ^/api/v1/instances/[^/]+/game-website$
        actions:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - href
              - method
              - templated
            properties:
              href:
                type: string
                pattern: ^/api/v1/instances/
              method:
                type: string
                enum:
                  - PATCH
                  - POST
              templated:
                const: false
              name:
                type: string
                enum:
                  - power
                  - rebuild
                  - resize
                  - gameServerControl
    InstanceMetadata:
      allOf:
        - $ref: '#/components/schemas/InstanceAffordances'
        - type: object
          required:
            - id
            - name
            - status
            - hostname
            - tags
            - updatedAt
          properties:
            id:
              type: string
            name:
              type:
                - string
                - 'null'
            status:
              type: string
            hostname:
              type:
                - string
                - 'null'
            tags:
              type: array
              items:
                type: string
            updatedAt:
              type: string
              format: date-time
    AllocatedGamePort:
      type: object
      required:
        - externalPort
        - internalPort
        - protocol
        - label
      properties:
        externalPort:
          type: integer
        internalPort:
          type: integer
        protocol:
          type: string
          enum:
            - tcp
            - udp
            - both
        label:
          type: string
    GameServerPortMapping:
      type: object
      required:
        - external
        - internal
        - protocol
        - label
      properties:
        external:
          type: integer
        internal:
          type: integer
        protocol:
          type: string
          enum:
            - tcp
            - udp
            - both
        label:
          type: string
    ParsedProductSpecs:
      type:
        - object
        - 'null'
      properties:
        vcpu:
          type:
            - number
            - 'null'
        ram:
          type:
            - string
            - 'null'
        ramGb:
          type:
            - number
            - 'null'
        storage:
          type:
            - string
            - 'null'
        storageGb:
          type:
            - number
            - 'null'
        transfer:
          type:
            - string
            - 'null'
        bandwidth:
          type:
            - string
            - 'null'
        slots:
          type:
            - number
            - 'null'
        game:
          type:
            - string
            - 'null'
    V1GameServerSummary:
      type:
        - object
        - 'null'
      properties:
        game:
          type:
            - string
            - 'null'
        connectHost:
          type:
            - string
            - 'null'
        connectIp:
          type:
            - string
            - 'null'
        connectPort:
          type:
            - integer
            - 'null'
        playHostname:
          type: string
        playConnectAddress:
          type:
            - string
            - 'null'
        ports:
          type: array
          items:
            $ref: '#/components/schemas/GameServerPortMapping'
        hasRconPassword:
          type: boolean
        hasServerPassword:
          type: boolean
        joinHandle:
          type:
            - string
            - 'null'
    GenericSuccessResponse:
      type: object
      additionalProperties: true
      description: JSON object payload returned on success.
    InstanceResource:
      allOf:
        - $ref: '#/components/schemas/InstanceMetadata'
        - type: object
          required:
            - ip
            - privateIp
            - os
            - provider
            - vmId
            - openstackServerId
            - product
            - region
            - createdAt
          properties:
            type:
              type:
                - string
                - 'null'
            ip:
              type:
                - string
                - 'null'
            privateIp:
              type:
                - string
                - 'null'
            os:
              type:
                - string
                - 'null'
            provider:
              type:
                - string
                - 'null'
            vmId:
              type:
                - string
                - 'null'
            openstackServerId:
              type:
                - string
                - 'null'
            product:
              type:
                - object
                - 'null'
              required:
                - name
                - slug
                - specs
                - priceCents
              properties:
                name:
                  type: string
                slug:
                  type: string
                type:
                  type:
                    - string
                    - 'null'
                specs:
                  type:
                    - string
                    - 'null'
                parsedSpecs:
                  $ref: '#/components/schemas/ParsedProductSpecs'
                priceCents:
                  type: integer
            region:
              type:
                - string
                - 'null'
            connectHost:
              type:
                - string
                - 'null'
            playHostname:
              type:
                - string
                - 'null'
            playConnectAddress:
              type:
                - string
                - 'null'
            gameServer:
              $ref: '#/components/schemas/V1GameServerSummary'
            createdAt:
              type: string
              format: date-time
    InstanceSummary:
      allOf:
        - $ref: '#/components/schemas/InstanceAffordances'
        - type: object
          required:
            - id
            - name
            - status
            - publicIp
            - hostname
            - selectedOs
            - createdAt
            - product
          properties:
            id:
              type: string
            name:
              type:
                - string
                - 'null'
            status:
              type: string
            type:
              type:
                - string
                - 'null'
            publicIp:
              type:
                - string
                - 'null'
            hostname:
              type:
                - string
                - 'null'
            selectedOs:
              type:
                - string
                - 'null'
            createdAt:
              type: string
              format: date-time
            product:
              type:
                - object
                - 'null'
              required:
                - name
                - type
              properties:
                name:
                  type: string
                type:
                  type: string
                parsedSpecs:
                  $ref: '#/components/schemas/ParsedProductSpecs'
            connectHost:
              type:
                - string
                - 'null'
            playHostname:
              type:
                - string
                - 'null'
            playConnectAddress:
              type:
                - string
                - 'null'
    InstanceLegacyProjection:
      allOf:
        - $ref: '#/components/schemas/InstanceSummary'
        - type: object
          required:
            - publicIpv6
            - privateIp
            - updatedAt
          properties:
            publicIpv6:
              type:
                - string
                - 'null'
            privateIp:
              type:
                - string
                - 'null'
            updatedAt:
              type: string
              format: date-time
            product:
              type:
                - object
                - 'null'
              required:
                - name
                - type
                - specs
              properties:
                name:
                  type: string
                type:
                  type: string
                specs:
                  type:
                    - string
                    - 'null'
                parsedSpecs:
                  $ref: '#/components/schemas/ParsedProductSpecs'
            gameServer:
              $ref: '#/components/schemas/V1GameServerSummary'
    InstanceCollection:
      type: object
      required:
        - id
        - status
        - links
        - actions
        - instances
        - count
        - total
        - limit
        - offset
      properties:
        id:
          const: /api/v1/instances
        status:
          const: available
        links:
          type: object
          required:
            - self
            - serviceRoot
            - resources
          properties:
            self:
              type: string
            serviceRoot:
              const: /api/v1
            next:
              type: string
            previous:
              type: string
            resources:
              type: array
              items:
                type: object
                required:
                  - href
                  - templated
                properties:
                  href:
                    type: string
                    pattern: ^/api/v1/instances/
                  templated:
                    const: false
        actions:
          type: array
          maxItems: 0
        instances:
          type: array
          items:
            $ref: '#/components/schemas/InstanceSummary'
        count:
          type: integer
          minimum: 0
        total:
          type: integer
          minimum: 0
        limit:
          type: integer
          minimum: 1
          maximum: 200
        offset:
          type: integer
          minimum: 0
    OrderRead:
      type: object
      required:
        - id
        - status
        - instances
      properties:
        id:
          type: string
        status:
          type: string
        createdAt:
          type: string
          format: date-time
        billingInterval:
          type:
            - string
            - 'null'
        paidAmountCents:
          type:
            - integer
            - 'null'
        product:
          type:
            - object
            - 'null'
          properties:
            slug:
              type: string
            name:
              type: string
            type:
              type: string
        instances:
          type: array
          items:
            type: object
            required:
              - id
              - status
            properties:
              id:
                type: string
              status:
                type: string
              name:
                type: string
              accessUrl:
                type: string
              statusUrl:
                type: string
        outcome:
          type:
            - object
            - 'null'
          description: >-
            Present on the order detail response; null unless failed, canceled
            or refunded.
          properties:
            tone:
              type: string
            charge:
              type: string
              enum:
                - not-charged
                - charged
                - refunded
            headline:
              type: string
            detail:
              type: string
            nextStep:
              type: string
    InstanceAccess:
      type: object
      required:
        - instanceId
        - status
        - ssh
        - rdp
        - consolePath
        - execUrl
      properties:
        instanceId:
          type: string
        status:
          type: string
        ssh:
          type:
            - object
            - 'null'
          properties:
            host:
              type: string
            port:
              type: integer
            username:
              type: string
            command:
              type: string
            authentication:
              const: leased-public-key
            hostPublicKey:
              type: string
            hostKeySha256:
              type: string
            knownHosts:
              type: string
        rdp:
          type:
            - object
            - 'null'
          properties:
            host:
              type: string
            port:
              type: integer
            username:
              type: string
        appUrl:
          type:
            - string
            - 'null'
        consolePath:
          type: string
        execUrl:
          type: string
        sshHostPublicKey:
          type: string
        knownHosts:
          type:
            - string
            - 'null'
        credentials:
          type: object
          description: >-
            Only included after explicit credentials=true and the instances:exec
            scope check.
          properties:
            username:
              type: string
            password:
              type: string
        hasApplicationCredentials:
          type: boolean
          description: >-
            The active Instant App has encrypted initial application values
            available for explicit reveal.
        applicationCredentials:
          type: object
          additionalProperties:
            type: string
          description: >-
            Template-declared initial login/configuration values, including
            generated secrets. Only with credentials=true and instances:exec.
            Not a live view of credentials changed inside the application.
        filesUrl:
          type: string
        controlUrl:
          type: string
        gameServer:
          type: object
          properties:
            connectAddress:
              type: string
            ports:
              type: array
              items:
                type: object
                properties:
                  internal:
                    type: integer
                  external:
                    type: integer
                  protocol:
                    type: string
                    enum:
                      - tcp
                      - udp
                      - both
                  label:
                    type: string
            credentials:
              type:
                - object
                - 'null'
              description: Only with credentials=true and instances:exec.
              properties:
                administratorPassword:
                  type: string
                serverPassword:
                  type: string
        sshAuthorization:
          type: object
          properties:
            scope:
              const: instances:exec
            maxLeaseSeconds:
              const: 3600
            body:
              type: object
              description: >-
                Replace the public-key placeholder and POST this body to
                controlUrl.
    GameServerControl:
      oneOf:
        - type: object
          additionalProperties: false
          required:
            - action
          properties:
            action:
              const: status
          x-required-scope: instances:read
        - type: object
          additionalProperties: false
          required:
            - action
          properties:
            action:
              const: dayz-installation-status
          x-required-scope: instances:read
        - type: object
          additionalProperties: false
          required:
            - action
            - steamAccount
            - steamPassword
            - steamGuardCode
          properties:
            action:
              const: dayz-steam-credential
            steamAccount:
              type: string
              pattern: ^[A-Za-z0-9_]{1,64}$
              writeOnly: true
              description: >-
                Customer-owned Steam account. Use the secure dashboard form or
                private authenticated HTTP; never submit credentials in an AI
                tool transcript.
            steamPassword:
              type: string
              minLength: 1
              maxLength: 128
              writeOnly: true
              format: password
              description: >-
                Newlines, control characters, double quotes and backslashes are
                rejected by the Steam runscript boundary.
            steamGuardCode:
              type: string
              pattern: ^(?:[A-Za-z0-9]{5})?$
              writeOnly: true
              description: >-
                Fresh five-character code, or empty when not required. Encrypted
                requests expire after 60 seconds.
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
            - clusterToken
          properties:
            action:
              const: dst-cluster-token
            clusterToken:
              type: string
              minLength: 20
              maxLength: 256
              writeOnly: true
              format: password
              description: >-
                Customer-owned Klei Don’t Starve Together dedicated server
                cluster token.
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
          properties:
            action:
              const: hytale-auth-credential
            sessionToken:
              type: string
              minLength: 16
              maxLength: 8192
              writeOnly: true
              format: password
              description: Customer/GSP Hytale Session token (paired with identityToken).
            identityToken:
              type: string
              minLength: 16
              maxLength: 8192
              writeOnly: true
              format: password
              description: Customer/GSP Hytale Identity token (paired with sessionToken).
            ownerUuid:
              type: string
              pattern: ^[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}$
              description: Optional Hytale server owner UUID.
            downloaderCredentialsJson:
              type: string
              minLength: 2
              maxLength: 16384
              writeOnly: true
              format: password
              description: Optional serialized .hytale-downloader-credentials.json payload.
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
            - lines
          properties:
            action:
              const: logs
            lines:
              type: integer
              minimum: 1
              maximum: 500
          x-required-scope: instances:read
        - type: object
          additionalProperties: false
          required:
            - action
            - state
          properties:
            action:
              const: power
            state:
              type: string
              enum:
                - start
                - stop
                - restart
                - kill
            settings:
              type: object
              maxProperties: 80
              propertyNames:
                pattern: ^[A-Za-z][A-Za-z0-9_]{0,63}$
              additionalProperties:
                type: string
                maxLength: 4096
              description: >-
                Only this game’s validated setting names and values are
                accepted.
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
            - command
          properties:
            action:
              const: console
            command:
              type: string
              minLength: 1
              maxLength: 4096
              description: One non-empty game console/RCON command, without line breaks.
          x-required-scope: instances:exec
        - type: object
          additionalProperties: false
          required:
            - action
            - command
            - timeoutMs
          properties:
            action:
              const: exec
            command:
              type: string
              minLength: 1
              maxLength: 32768
            timeoutMs:
              type: integer
              minimum: 1000
              maximum: 60000
          x-required-scope: instances:exec
        - type: object
          additionalProperties: false
          required:
            - action
            - publicKey
            - leaseSeconds
          properties:
            action:
              const: ssh-authorize
            publicKey:
              type: string
              minLength: 1
              maxLength: 16384
              description: >-
                One OpenSSH public key. Keep its private key on the customer or
                AI client.
            leaseSeconds:
              type: integer
              minimum: 60
              maximum: 3600
          x-required-scope: instances:exec
        - type: object
          additionalProperties: false
          required:
            - action
          properties:
            action:
              const: ssh-list
          x-required-scope: instances:exec
        - type: object
          additionalProperties: false
          required:
            - action
            - keyId
          properties:
            action:
              const: ssh-revoke
            keyId:
              type: string
              pattern: ^[a-f0-9]{64}$
              description: >-
                keyId from ssh-authorize or ssh-list. Revocation closes active
                sessions using that key.
          x-required-scope: instances:exec
        - type: object
          additionalProperties: false
          required:
            - action
            - path
          properties:
            action:
              const: file-list
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
          x-required-scope: instances:files:read
        - type: object
          additionalProperties: false
          required:
            - action
            - path
            - offset
            - length
          properties:
            action:
              const: file-read
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
            offset:
              type: integer
              minimum: 0
              maximum: 20971520
            length:
              type: integer
              minimum: 1
              maximum: 524288
          x-required-scope: instances:files:read
        - type: object
          additionalProperties: false
          required:
            - action
            - path
            - contentBase64
            - offset
            - truncate
          properties:
            action:
              const: file-write
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
            contentBase64:
              type: string
              contentEncoding: base64
              maxLength: 699052
              description: At most 512 KiB decoded. Total file size is at most 20 MiB.
            offset:
              type: integer
              minimum: 0
              maximum: 20971520
              multipleOf: 524288
            truncate:
              type: boolean
              description: >-
                Use true only for offset zero. Later chunks use false; retry
                each chunk with its original idempotency key.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
            - path
          properties:
            action:
              const: file-mkdir
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
            - path
          properties:
            action:
              const: file-remove
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
            - path
            - destination
          properties:
            action:
              const: file-rename
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
            destination:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
            - path
            - destination
          properties:
            action:
              const: file-copy
            path:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
            destination:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
            - directory
            - filename
            - url
          properties:
            action:
              const: mod-install
            directory:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                Path within this server’s data directory. Parent traversal,
                symlinks, backslashes and line breaks are rejected.
            filename:
              type: string
              maxLength: 180
              pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]*$
            url:
              type: string
              format: uri
              maxLength: 2048
              pattern: ^https://
              description: >-
                Public HTTPS download without embedded credentials. Redirects
                and resolved addresses are checked.
          x-required-scope: instances:files:write
        - type: object
          additionalProperties: false
          required:
            - action
          properties:
            action:
              const: backup-list
          x-required-scope: instances:read
        - type: object
          additionalProperties: false
          required:
            - action
            - backupId
          properties:
            action:
              const: backup-create
            backupId:
              type: string
              format: uuid
              pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$
            name:
              type: string
              minLength: 1
              maxLength: 120
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
            - backupId
          properties:
            action:
              const: backup-restore
            backupId:
              type: string
              format: uuid
              pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$
          x-required-scope: instances:write
        - type: object
          additionalProperties: false
          required:
            - action
            - backupId
          properties:
            action:
              const: backup-delete
            backupId:
              type: string
              format: uuid
              pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$
          x-required-scope: instances:write
    GameServerControlPending:
      type: object
      required:
        - pending
        - operationId
        - status
        - pollUrl
      properties:
        pending:
          const: true
        operationId:
          type: string
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - INCONCLUSIVE
        pollUrl:
          type: string
    GameServerSshLease:
      type: object
      properties:
        keyId:
          type: string
        fingerprint:
          type: string
        grantedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
    GameServerControlResult:
      type: object
      required:
        - operationId
      additionalProperties: true
      description: >-
        Action-specific node result. exec preserves nonzero exitCode; SSH
        operations return keys and connection details; ssh-authorize also
        returns the granted lease. File reads return one base64 chunk and eof.
        Backups share the server data quota.
      properties:
        operationId:
          type: string
        success:
          type: boolean
        running:
          type: boolean
        logs:
          type: string
        response:
          type: string
        stdout:
          type: string
        stderr:
          type: string
        exitCode:
          type: integer
        lease:
          $ref: '#/components/schemas/GameServerSshLease'
        keys:
          type: array
          items:
            $ref: '#/components/schemas/GameServerSshLease'
        ssh:
          $ref: '#/components/schemas/InstanceAccess/properties/ssh'
        base64:
          type: string
          contentEncoding: base64
        content:
          type: string
        path:
          type: string
        size:
          type: integer
        offset:
          type: integer
        eof:
          type: boolean
        files:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              path:
                type: string
              type:
                type: string
                enum:
                  - directory
                  - file
              size:
                type: integer
              modified:
                type: string
                format: date-time
        backupId:
          type: string
          format: uuid
          pattern: ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$
        backups:
          type: array
          items:
            type: object
    BackupCheckoutQuote:
      type: object
      required:
        - eligible
        - observedAt
        - reservesCapacity
        - checkoutRevalidates
        - source
        - price
        - policy
        - checkout
      properties:
        eligible:
          type: boolean
          const: true
        observedAt:
          type: string
          format: date-time
        reservesCapacity:
          type: boolean
          const: false
        checkoutRevalidates:
          type: boolean
          const: true
        source:
          type: object
          required:
            - lineageId
            - instanceId
            - selectedOs
            - mountPath
            - sizeGiB
          additionalProperties: false
          properties:
            lineageId:
              type: string
            instanceId:
              type: string
            selectedOs:
              type: string
            mountPath:
              type: string
            sizeGiB:
              type: integer
              minimum: 1
        price:
          type: object
          required:
            - currency
            - amountCents
            - billingInterval
            - quantity
          properties:
            currency:
              type: string
              const: usd
            amountCents:
              type: integer
              minimum: 1
            billingInterval:
              type: string
              const: month
            quantity:
              type: integer
              const: 1
        policy:
          type: object
          required:
            - maximumProtectedGiB
            - maximumRecoveryPoints
            - maximumAgeMinutes
            - cadenceMinutes
          properties:
            maximumProtectedGiB:
              type: integer
              minimum: 1
            maximumRecoveryPoints:
              type: integer
              minimum: 1
            maximumAgeMinutes:
              type: integer
              minimum: 1
            cadenceMinutes:
              type: integer
              minimum: 1
        checkout:
          type: object
          required:
            - endpoint
            - requiredScopes
            - legalDocuments
            - order
            - instructions
          properties:
            endpoint:
              type: string
              const: /api/v1/orders
            requiredScopes:
              type: array
              items:
                type: string
              const:
                - billing:write
                - instances:write
            legalDocuments:
              type: object
              required:
                - terms
                - privacy
              properties:
                terms:
                  type: object
                  required:
                    - version
                    - effectiveDate
                    - href
                    - contentHash
                  properties:
                    version:
                      type: string
                    effectiveDate:
                      type: string
                      format: date
                    href:
                      type: string
                    contentHash:
                      type: string
                privacy:
                  type: object
                  required:
                    - version
                    - effectiveDate
                    - href
                    - contentHash
                  properties:
                    version:
                      type: string
                    effectiveDate:
                      type: string
                      format: date
                    href:
                      type: string
                    contentHash:
                      type: string
            instructions:
              type: string
            order:
              type: object
              required:
                - item
                - useCredits
                - confirm
                - legalAcceptance
              description: >-
                An unaccepted draft. It cannot be submitted until the account
                holder reviews and authorizes the current legal documents.
              properties:
                item:
                  type: object
                  required:
                    - productSlug
                    - quantity
                    - billingInterval
                    - configuration
                  properties:
                    productSlug:
                      type: string
                    quantity:
                      type: integer
                      const: 1
                    billingInterval:
                      type: string
                      const: month
                    configuration:
                      type: object
                      additionalProperties: false
                      required:
                        - lineageId
                      properties:
                        lineageId:
                          type: string
                organizationId:
                  type: string
                useCredits:
                  type: boolean
                  const: false
                confirm:
                  type: boolean
                  const: false
                legalAcceptance:
                  type: object
                  required:
                    - accepted
                    - termsVersion
                    - termsContentHash
                    - privacyVersion
                    - privacyContentHash
                  properties:
                    accepted:
                      type: boolean
                      const: false
                    termsVersion:
                      type: string
                    termsContentHash:
                      type: string
                    privacyVersion:
                      type: string
                    privacyContentHash:
                      type: string
    OrderCreate:
      type: object
      required:
        - item
        - legalAcceptance
      properties:
        item:
          type: object
          additionalProperties: false
          required:
            - productSlug
          properties:
            productSlug:
              type: string
              minLength: 1
              maxLength: 100
            billingInterval:
              type: string
              enum:
                - month
                - year
                - onetime
              default: month
            quantity:
              type: integer
              minimum: 1
              maximum: 2048
              default: 1
              description: >-
                One for instance products; quantity-based add-ons validate their
                own contract (extra-storage: 1–2048 GiB).
            configuration:
              type: object
              additionalProperties: true
              default: {}
              description: >-
                Product-specific OS, application, capacity, license and target
                configuration, validated by the canonical checkout.
        legalAcceptance:
          type: object
          required:
            - accepted
            - termsVersion
            - termsContentHash
            - privacyVersion
            - privacyContentHash
          properties:
            accepted:
              type: boolean
              const: true
            termsVersion:
              type: string
            termsContentHash:
              type: string
            privacyVersion:
              type: string
            privacyContentHash:
              type: string
        organizationId:
          type: string
        confirm:
          type: boolean
          default: false
        useCredits:
          type: boolean
          default: false
        promoCode:
          type: string
          maxLength: 50
        openclawCredential:
          type: object
          required:
            - profileId
            - modelApiKey
          properties:
            profileId:
              type: string
            modelApiKey:
              type: string
              writeOnly: true
    Error:
      type: object
      description: Standard error envelope returned by every v1 error response.
      required:
        - error
        - code
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: string
          description: >-
            Stable machine-readable error code (e.g. AUTH-1001, RATE-1001,
            NOT_FOUND).
        details:
          type: object
          additionalProperties: true
          description: Optional structured context (e.g. field validation errors).
        retryAfter:
          type: integer
          description: Seconds to wait before retrying (present on 429/503).
    WebhookCreate:
      type: object
      additionalProperties: false
      required:
        - name
        - url
        - events
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 60
        url:
          type: string
          format: uri
          pattern: ^[Hh][Tt][Tt][Pp][Ss]://
        events:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - '*'
              - instance.created
              - instance.deleted
        secret:
          type: string
          minLength: 1
          writeOnly: true
    Webhook:
      type: object
      required:
        - id
        - name
        - url
        - events
        - isActive
        - createdAt
      properties:
        id:
          type: string
        name:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
            enum:
              - '*'
              - instance.created
              - instance.deleted
        unsupportedEvents:
          type: array
          description: Retired legacy subscription names that no longer receive deliveries.
          items:
            type: string
        isActive:
          type: boolean
        failureCount:
          type: integer
          minimum: 0
        lastTriggeredAt:
          type:
            - string
            - 'null'
          format: date-time
        lastError:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
  parameters:
    limitParam:
      name: limit
      in: query
      required: false
      description: Maximum number of items to return (1–200). Defaults to 200.
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 200
    offsetParam:
      name: offset
      in: query
      required: false
      description: Number of items to skip for pagination. Defaults to 0.
      schema:
        type: integer
        minimum: 0
        default: 0
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional client-generated key
        (draft-ietf-httpapi-idempotency-key-header) that makes a supported
        mutation safe to retry. Replays the original response for a duplicate
        key; returns 422 if reused with a different body, or 409 while the
        original request is still in flight.
      schema:
        type: string
        maxLength: 255
  headers:
    X-RateLimit-Limit:
      description: Maximum number of requests allowed in the current window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests remaining in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Seconds until the current rate-limit window resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying (sent on 429 and 503).
      schema:
        type: integer
    Idempotency-Key:
      description: >-
        Echoes the Idempotency-Key the server processed. Present on idempotent
        mutation responses whenever an Idempotency-Key request header was
        supplied.
      schema:
        type: string
    Idempotency-Replayed:
      description: >-
        Whether this response was replayed from a prior request with the same
        Idempotency-Key (`true`) or produced by a fresh execution (`false`).
        Present on stored mutation responses when an Idempotency-Key was
        supplied.
      schema:
        type: boolean
    RateLimit-Limit:
      description: >-
        Maximum number of requests permitted in the current rate-limit window
        (IETF RateLimit header).
      schema:
        type: integer
        minimum: 1
    RateLimit-Remaining:
      description: >-
        Number of requests remaining in the current rate-limit window (IETF
        RateLimit header).
      schema:
        type: integer
        minimum: 0
    RateLimit-Reset:
      description: >-
        Seconds until the current rate-limit window resets (IETF RateLimit
        header).
      schema:
        type: integer
        minimum: 0
    X-API-Version:
      description: Active API major version handling the request (e.g. "v1").
      schema:
        type: string
        enum:
          - v1
    Deprecation:
      description: >-
        RFC 8594 deprecation header emitted when an endpoint or version enters
        its 6-month deprecation notice window.
      schema:
        type: string
    Sunset:
      description: >-
        RFC 8594 HTTP-date indicating when a deprecated endpoint or version will
        be retired.
      schema:
        type: string
        format: date-time
security:
  - bearerAuth: []
paths:
  /v1:
    get:
      summary: Discover the API service root
      operationId: get_v1
      tags:
        - v1
      security:
        - bearerAuth: []
      responses:
        '200':
          description: API discovery links and actions
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - id
                  - status
                  - links
                  - actions
                properties:
                  id:
                    const: /api/v1
                  status:
                    const: available
                  links:
                    type: object
                    additionalProperties: false
                    required:
                      - self
                      - documentation
                      - openapi
                      - version
                      - resources
                    properties:
                      self:
                        const: /api/v1
                      documentation:
                        const: /docs/api/v1
                      openapi:
                        const: /api/v1/openapi
                      version:
                        const: /api/v1/version
                      resources:
                        type: array
                        items:
                          type: object
                          additionalProperties: false
                          required:
                            - href
                            - templated
                          properties:
                            href:
                              type: string
                              pattern: ^/api/v1(?:/|$)
                              description: >-
                                Same-origin path; expand named placeholders only
                                when templated is true.
                            templated:
                              type: boolean
                  actions:
                    type: array
                    items:
                      type: object
                      additionalProperties: false
                      required:
                        - href
                        - templated
                        - method
                      properties:
                        href:
                          type: string
                          pattern: ^/api/v1(?:/|$)
                          description: >-
                            Same-origin path; expand named placeholders only
                            when templated is true.
                        templated:
                          type: boolean
                        method:
                          type: string
                          enum:
                            - POST
                            - PUT
                            - PATCH
                            - DELETE
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: The API discovery contract is unavailable or invalid (ERR_INTERNAL).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        Requires a valid API credential. Returns read links and write actions
        from the same contract as this description. templated=true marks paths
        containing resource identifiers; consult the linked OpenAPI document for
        required path/query parameters and request bodies. Links do not grant
        access: each target enforces its own scopes and ownership. Responses are
        private and not cached. This index does not claim every resource
        response already carries member links or conditional-write support.
  /v1/account:
    get:
      summary: GET — Public Account API
      operationId: get_v1_account
      tags:
        - account
      security:
        - bearerAuth:
            - account:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: account:read
      description: >-
        GET — Public Account API. Requires Bearer token with scope
        `account:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/ansible/inventory:
    get:
      summary: GET — Ansible Dynamic Inventory
      operationId: get_v1_ansible_inventory
      tags:
        - ansible
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        GET — Ansible Dynamic Inventory. Requires Bearer token with scope
        `instances:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/apim:
    get:
      summary: GET /v1/apim
      operationId: get_v1_apim
      tags:
        - apim
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/apim. Requires Bearer token with scope `cloud:read`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/apim
      operationId: post_v1_apim
      tags:
        - apim
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/apim. Requires Bearer token with scope `cloud:write`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/app-config:
    get:
      summary: GET /v1/app-config
      operationId: get_v1_app_config
      tags:
        - app-config
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/app-config. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/app-config
      operationId: post_v1_app_config
      tags:
        - app-config
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/app-config. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/apps/plan:
    get:
      summary: >-
        GET — Public Apps API (v1): where an app can go on the account's
        servers.
      operationId: get_v1_apps_plan
      tags:
        - apps
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        GET — Public Apps API (v1): where an app can go on the account's
        servers.. Requires Bearer token with scope `instances:read`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/backups/quote:
    get:
      summary: Quote an owned managed volume and backup policy without purchasing
      operationId: get_v1_backups_quote
      tags:
        - backups
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Cache-Control:
              schema:
                type: string
                const: private, no-store, max-age=0
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackupCheckoutQuote'
        '400':
          description: Invalid backup product
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Source not found in the requesting owner and organization scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Source, tier cap, acceptance, price or existing policy/checkout
            prevents this purchase
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Quote lookup failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Checks the exact owned source generation, organization membership, tier
        size and retention, current monthly Stripe price, backend acceptance and
        existing policy/checkout holds. Organization keys cannot select another
        tenant. Returns an unaccepted order draft with current legal document
        links. This observation reserves no capacity, creates no order, accepts
        no terms and authorizes no payment. Checkout revalidates every
        observation; submit the draft only after account-holder authorization.
        Responses are private and never cached.
      parameters:
        - name: productSlug
          in: query
          required: true
          schema:
            type: string
          description: A BACKUP product slug from /v1/catalog.
        - name: lineageId
          in: query
          required: true
          schema:
            type: string
          description: An owned lineageId from /v1/backups/sources.
  /v1/backups/sources:
    get:
      summary: List owned managed volumes for backup policy checkout
      operationId: get_v1_backups_sources
      tags:
        - backups
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - sources
                  - total
                  - limit
                  - offset
                properties:
                  sources:
                    type: array
                    items:
                      type: object
                      additionalProperties: false
                      required:
                        - lineageId
                        - instanceId
                        - instanceName
                        - selectedOs
                        - mountPath
                        - sizeGiB
                        - volumeType
                      properties:
                        lineageId:
                          type: string
                        instanceId:
                          type: string
                        instanceName:
                          type: string
                        selectedOs:
                          type: string
                        mountPath:
                          type: string
                        sizeGiB:
                          type: integer
                          minimum: 1
                        volumeType:
                          type: string
                  total:
                    type: integer
                    minimum: 0
                  limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                  offset:
                    type: integer
                    minimum: 0
        '400':
          description: Invalid pagination
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Managed source lookup failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Requires instances:read. Returns only the token holder’s managed Linux
        data volumes; organization tokens are restricted to that organization.
        Provider project, server, physical volume IDs, authority and credentials
        are omitted. Use lineageId as item.configuration.lineageId in POST
        /v1/orders. Choose a backup tier whose cap includes sizeGiB, with
        billingInterval month, quantity 1 and useCredits false. Checkout
        independently verifies current source ownership and backend acceptance;
        discovery is not proof of current purchasability. Responses are private
        and never cached.
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 100
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
  /v1/bastion:
    get:
      summary: GET /v1/bastion
      operationId: get_v1_bastion
      tags:
        - bastion
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/bastion. Requires Bearer token with scope `cloud:read`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/bastion
      operationId: post_v1_bastion
      tags:
        - bastion
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/bastion. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/blob-storage:
    get:
      summary: GET /v1/blob-storage
      operationId: get_v1_blob_storage
      tags:
        - blob-storage
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/blob-storage. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST /v1/blob-storage
      operationId: post_v1_blob_storage
      tags:
        - blob-storage
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/blob-storage. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    put:
      summary: PUT /v1/blob-storage
      operationId: put_v1_blob_storage
      tags:
        - blob-storage
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        PUT /v1/blob-storage. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/bulk/power:
    post:
      summary: POST — Public Bulk Power API
      operationId: post_v1_bulk_power
      tags:
        - bulk
      security:
        - bearerAuth:
            - instances:power
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:power
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public Bulk Power API. Requires Bearer token with scope
        `instances:power`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/catalog:
    get:
      summary: GET — Public Catalog API
      operationId: get_v1_catalog
      tags:
        - catalog
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Unknown or incorrectly cased catalog type (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        Public, IP-rate-limited catalog discovery; no token is required. Omit
        type for all source-listed products with their current
        commercialAvailability and checkout legal links. VM and INSTANCE_PLAN
        select the same VM products. TEMPLATE returns the separate static
        templates collection; DOCKER selects managed Docker products. Linux VM
        products carry customSize: the configuration field (size), its grammar,
        the measured limits and the price rule for ordering any size. A listing
        does not authorize purchase or change availability.
      parameters:
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum:
              - VM
              - INSTANCE_PLAN
              - GAME_SERVER
              - INSTANT_APP
              - DOCKER
              - KUBERNETES
              - STORAGE
              - OBJECT_STORAGE
              - ADDON
              - BACKUP
              - TEMPLATE
  /v1/catalog/awesome-selfhosted:
    get:
      summary: GET — Public self-service catalog targets that map to awesome-selfhosted
      operationId: get_v1_catalog_awesome_selfhosted
      tags:
        - catalog
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Public self-service catalog targets that map to
        awesome-selfhosted. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/cli/exec:
    post:
      summary: POST — Token-authenticated sau CLI execution.
      operationId: post_v1_cli_exec
      tags:
        - cli
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Token-authenticated sau CLI execution.. Requires a valid Bearer
        personal access token (`Authorization: Bearer sau_...`). Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/cloud-dns:
    get:
      summary: GET /v1/cloud-dns
      operationId: get_v1_cloud_dns
      tags:
        - cloud-dns
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/cloud-dns. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/cloud-dns
      operationId: post_v1_cloud_dns
      tags:
        - cloud-dns
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/cloud-dns. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/cloud-services:
    get:
      summary: GET — SAU Cloud & Commercial SaaS Marketplace Subscriptions API
      operationId: get_v1_cloud_services
      tags:
        - cloud-services
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET — SAU Cloud & Commercial SaaS Marketplace Subscriptions API.
        Requires Bearer token with scope `cloud:read`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
    post:
      summary: POST — SAU Cloud & Commercial SaaS Marketplace Subscriptions API
      operationId: post_v1_cloud_services
      tags:
        - cloud-services
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — SAU Cloud & Commercial SaaS Marketplace Subscriptions API.
        Requires Bearer token with scope `cloud:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/clouds:
    get:
      summary: List connected cloud accounts and the machines each provider last listed
      operationId: get_v1_clouds
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - connections
                properties:
                  connections:
                    type: array
                    items:
                      type: object
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:read (AUTH-1003), or not a member of the
            organization asked for (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        The console uses the same handler. A personal account's connections, or
        an organization's for its members; an organization key reaches only its
        own organization. The stored, encrypted credentials are the only ones
        used; none is taken from the request. A stale inventory is read from the
        provider first. Each machine carries its state, size, region, addresses
        and the power actions the provider allows from that state.
      parameters:
        - name: organizationId
          in: query
          required: false
          schema:
            type: string
          description: >-
            List an organization's accounts (membership required). An
            organization key always lists its own; another organization answers
            403.
        - name: refresh
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: >-
            Ask every provider now; one provider call per account, on the write
            rate budget.
  /v1/clouds/{connectionId}/resources/{externalId}/power:
    post:
      summary: Start, stop or reboot a machine in a connected cloud
      operationId: post_v1_clouds_connectionId_resources_externalId_power
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:power
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - previousState
                  - currentState
                  - resource
                properties:
                  ok:
                    const: true
                  previousState:
                    type: string
                  currentState:
                    type: string
                  resource:
                    type: object
        '400':
          description: action is not start, stop or reboot (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing instances:power (AUTH-1003).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such connection with write access for this caller, or no such
            machine in it (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The provider reports a state that does not allow this action
            (ERR_STATE), or the provider has no actions yet
            (ERR_PROVIDER_UNSUPPORTED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The provider refused or could not be reached; the message is the
            provider's, never a credential (ERR_PROVIDER).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:power
      description: >-
        The console uses the same handler. A personal account's connections, or
        an organization's for its members; an organization key reaches only its
        own organization. The stored, encrypted credentials are the only ones
        used; none is taken from the request. Write access to the connection is
        required (its personal owner, or an Owner or Admin of its organization).
        Only an action the provider allows from the state it last reported is
        taken; the answer is the provider's reading afterwards. The path's
        resource segment is the machine's id from the list; a provider id is
        still accepted.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              properties:
                action:
                  type: string
                  enum:
                    - start
                    - stop
                    - reboot
      parameters:
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
        - name: externalId
          in: path
          required: true
          schema:
            type: string
  /v1/clouds/connections:
    get:
      summary: List the user's connected cloud accounts
      operationId: get_v1_clouds_connections
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connection for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        The user's accounts at other clouds (aws, azure, gcp, digitalocean,
        linode, vultr, hetzner). Credentials are checked with the provider
        before anything is stored, kept encrypted and never returned. An
        organization key acts for its organization only; changing one takes the
        Owner or Admin role there. Responses are not cached.
    post:
      summary: Connect a cloud account
      operationId: post_v1_clouds_connections
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), another organization
            (ERR_FORBIDDEN), or a member without the Owner or Admin role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connection for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            That account is already connected (ERR_CONFLICT), or the provider is
            not offered (ERR_PROVIDER_UNAVAILABLE).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            The provider refused the credentials
            (ERR_CLOUD_CREDENTIAL_VERIFICATION_FAILED); the provider's reason,
            never a credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        The user's accounts at other clouds (aws, azure, gcp, digitalocean,
        linode, vultr, hetzner). Credentials are checked with the provider
        before anything is stored, kept encrypted and never returned. An
        organization key acts for its organization only; changing one takes the
        Owner or Admin role there. Responses are not cached.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - provider
                - name
                - credentials
              properties:
                provider:
                  type: string
                  enum:
                    - aws
                    - azure
                    - gcp
                    - digitalocean
                    - linode
                    - vultr
                    - hetzner
                name:
                  type: string
                  maxLength: 100
                credentials:
                  type: object
                  writeOnly: true
                region:
                  type: string
                accountId:
                  type: string
                organizationId:
                  type: string
    put:
      summary: Check a connected account's stored credentials with the provider again
      operationId: put_v1_clouds_connections
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), another organization
            (ERR_FORBIDDEN), or a member without the Owner or Admin role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connection for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            The provider refused the credentials
            (ERR_CLOUD_CREDENTIAL_VERIFICATION_FAILED); the provider's reason,
            never a credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        The user's accounts at other clouds (aws, azure, gcp, digitalocean,
        linode, vultr, hetzner). Credentials are checked with the provider
        before anything is stored, kept encrypted and never returned. An
        organization key acts for its organization only; changing one takes the
        Owner or Admin role there. Responses are not cached.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
    delete:
      summary: Disconnect a cloud account
      operationId: delete_v1_clouds_connections
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), another organization
            (ERR_FORBIDDEN), or a member without the Owner or Admin role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connection for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        The user's accounts at other clouds (aws, azure, gcp, digitalocean,
        linode, vultr, hetzner). Credentials are checked with the provider
        before anything is stored, kept encrypted and never returned. An
        organization key acts for its organization only; changing one takes the
        Owner or Admin role there. Responses are not cached.
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
  /v1/clouds/connections/exposure:
    get:
      summary: >-
        Audit which machines of a connected cloud the internet reaches, and on
        which ports
      operationId: get_v1_clouds_connections_exposure
      tags:
        - clouds
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: No id (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing instances:read (AUTH-1003).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connection for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The stored key may not read the firewalls, and the message names the
            permission to grant (ERR_PERMISSION_REQUIRED); or the audit does not
            read this provider yet (ERR_PROVIDER_UNSUPPORTED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The provider refused or could not be reached; the message is the
            provider's, never a credential (ERR_PROVIDER).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Each machine of one connected cloud account with the inbound rules that
        admit anyone (0.0.0.0/0 or ::/0) and on which ports, and the findings:
        admin and database ports, every port, or no firewall at all are high;
        other public ports are noted. For Google Cloud it reads the VPC firewall
        rules; hierarchical and network firewall policies are not read yet.
        Read-only: nothing at the provider changes. An organization key reads
        its organization's connections only.
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
          description: The connection id from GET /v1/clouds/connections.
  /v1/container-registry:
    get:
      summary: GET /v1/container-registry
      operationId: get_v1_container_registry
      tags:
        - container-registry
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/container-registry. Requires Bearer token with scope
        `cloud:read`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/container-registry
      operationId: post_v1_container_registry
      tags:
        - container-registry
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/container-registry. Requires Bearer token with scope
        `cloud:write`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
  /v1/cosmos:
    get:
      summary: GET — SAU Multi-Model Cloud Database & Vector Management API
      operationId: get_v1_cosmos
      tags:
        - cosmos
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET — SAU Multi-Model Cloud Database & Vector Management API. Requires
        Bearer token with scope `cloud:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST — SAU Multi-Model Cloud Database & Vector Management API
      operationId: post_v1_cosmos
      tags:
        - cosmos
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — SAU Multi-Model Cloud Database & Vector Management API. Requires
        Bearer token with scope `cloud:write`. Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/cosmos/{dbId}/items:
    get:
      summary: GET /v1/cosmos/{dbId}/items
      operationId: get_v1_cosmos_dbId_items
      tags:
        - cosmos
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: dbId
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET /v1/cosmos/{dbId}/items. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST /v1/cosmos/{dbId}/items
      operationId: post_v1_cosmos_dbId_items
      tags:
        - cosmos
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: dbId
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST /v1/cosmos/{dbId}/items. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    delete:
      summary: DELETE /v1/cosmos/{dbId}/items
      operationId: delete_v1_cosmos_dbId_items
      tags:
        - cosmos
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: dbId
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE /v1/cosmos/{dbId}/items. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/defender-purview:
    get:
      summary: GET /v1/defender-purview
      operationId: get_v1_defender_purview
      tags:
        - defender-purview
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/defender-purview. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/defender-purview
      operationId: post_v1_defender_purview
      tags:
        - defender-purview
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/defender-purview. Requires Bearer token with scope
        `cloud:write`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
  /v1/deploy:
    post:
      summary: Purchase and deploy one configured catalog product
      operationId: post_v1_deploy
      tags:
        - deploy
      security:
        - bearerAuth:
            - billing:write
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                properties:
                  orderId:
                    type: string
                  instanceId:
                    type: string
                  checkoutUrl:
                    type:
                      - string
                      - 'null'
                    format: uri
                  requiresConfirmation:
                    type: boolean
                  replayed:
                    type: boolean
        '400':
          description: >-
            Invalid body, missing attempt key, or current legal acceptance
            required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient funding or spending limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Purchase configuration, capacity, acceptance or idempotency conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment, provisioning or catalog authority temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
        - instances:write
      description: >-
        Shares dashboard checkout pricing, current legal acceptance, funding and
        provisioning. Read /v1/catalog checkout.legalDocuments first. Set
        legalAcceptance.accepted=true only with account-holder authorization.
        Confirmed funded orders may complete immediately; card payment returns
        checkoutUrl. Poll /v1/orders/{id} with orderId. Reuse the same
        Idempotency-Key and purchase body on retries; confirm may change from
        false to true. Changed purchase parameters return 409. Organization keys
        are bound to their own organization. A Linux server can be ordered at
        any size within the limits /v1/catalog publishes: send
        item.configuration.size as <vcpu>vcpu-<ramGb>gb-<storageGb>gb (for
        example 10vcpu-22gb-300gb) with any linux-* product; the price is the
        cheapest plan plus add-ons that covers it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreate'
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,199}$
  /v1/deploy/{id}:
    get:
      summary: GET — Deploy Status - GET /api/v1/deploy/[id]
      operationId: get_v1_deploy_id
      tags:
        - deploy
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Deploy Status - GET /api/v1/deploy/[id]. Requires Bearer token
        with scope `instances:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/entra-suite:
    get:
      summary: GET /v1/entra-suite
      operationId: get_v1_entra_suite
      tags:
        - entra-suite
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/entra-suite. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/entra-suite
      operationId: post_v1_entra_suite
      tags:
        - entra-suite
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/entra-suite. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/entra/{tenantId}/.well-known/openid-configuration:
    get:
      summary: GET /v1/entra/{tenantId}/.well-known/openid-configuration
      operationId: get_v1_entra_tenantId_well_known_openid_configuration
      tags:
        - entra
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET /v1/entra/{tenantId}/.well-known/openid-configuration. Requires a
        valid Bearer personal access token (`Authorization: Bearer sau_...`).
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/entra/{tenantId}/saml/metadata:
    get:
      summary: GET /v1/entra/{tenantId}/saml/metadata
      operationId: get_v1_entra_tenantId_saml_metadata
      tags:
        - entra
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET /v1/entra/{tenantId}/saml/metadata. Requires a valid Bearer personal
        access token (`Authorization: Bearer sau_...`). Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/entra/token:
    post:
      summary: POST /v1/entra/token
      operationId: post_v1_entra_token
      tags:
        - entra
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/entra/token. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/environment:
    get:
      summary: Read your Virtual Datacenter subscription and resource pool
      operationId: get_v1_environment
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization credentials cannot access personal Virtual Datacenter
            subscriptions (ERR_ENVIRONMENT_TENANT_SCOPE).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        Returns the same subscription, capacity usage/headroom, published plans
        and capacity packs as the customer dashboard. Requires billing:read.
        Each offer includes its current availability; a listing is not purchase
        authority. Subscriptions currently belong to personal accounts. An
        organization key receives ERR_ENVIRONMENT_TENANT_SCOPE and never reads
        its creator's personal billing or pool. Responses are not cached.
  /v1/environment/packs:
    post:
      summary: Manage capacity packs on the personal subscription
      operationId: post_v1_environment_packs
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. New positive pack quantities remain unavailable until durable
        pre-payment transition authority exists. Existing packs can be removed
        only when retained usage fits the smaller pool. POST adds quantity
        (default 1); PATCH sets it (zero removes); DELETE removes the selected
        pack.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - packSlug
              properties:
                packSlug:
                  type: string
                quantity:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 1
    patch:
      summary: Manage capacity packs on the personal subscription
      operationId: patch_v1_environment_packs
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. New positive pack quantities remain unavailable until durable
        pre-payment transition authority exists. Existing packs can be removed
        only when retained usage fits the smaller pool. POST adds quantity
        (default 1); PATCH sets it (zero removes); DELETE removes the selected
        pack.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - packSlug
                - quantity
              properties:
                packSlug:
                  type: string
                quantity:
                  type: integer
                  minimum: 0
                  maximum: 100
    delete:
      summary: Manage capacity packs on the personal subscription
      operationId: delete_v1_environment_packs
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. New positive pack quantities remain unavailable until durable
        pre-payment transition authority exists. Existing packs can be removed
        only when retained usage fits the smaller pool. POST adds quantity
        (default 1); PATCH sets it (zero removes); DELETE removes the selected
        pack.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - packSlug
              properties:
                packSlug:
                  type: string
  /v1/environment/plans:
    get:
      summary: List Virtual Datacenter plan prices, capacity and availability
      operationId: get_v1_environment_plans
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        Returns the canonical published plan catalog, including source/DB
        availability and price amounts in USD cents. Requires billing:read. This
        does not reserve capacity or start checkout. Organization credentials
        may read this public catalog.
      parameters:
        - name: packs
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: Include capacity packs alongside base plans.
  /v1/environment/provision:
    post:
      summary: Deploy one eligible product from funded personal capacity
      operationId: post_v1_environment_provision
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
            - instances:write
      responses:
        '201':
          description: Order and instance retained for asynchronous provisioning
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - orderId
                  - instanceId
                  - status
                properties:
                  success:
                    const: true
                  orderId:
                    type: string
                  instanceId:
                    type: string
                  status:
                    const: CREATING
                  productName:
                    type: string
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
        - instances:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. Requires current funded entitlement, accepted delivery
        authority and sufficient pool headroom. It never starts a second
        subscription or card payment. HTTP201 retains the order and instance;
        poll the order/instance and published access before connecting. A
        payment-required response must be reviewed before choosing a separate
        paid purchase.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - productId
                - legalAcceptance
              properties:
                productId:
                  type: string
                  minLength: 1
                name:
                  type: string
                  maxLength: 100
                configuration:
                  type: object
                  additionalProperties:
                    oneOf:
                      - type: string
                        maxLength: 512
                      - type: boolean
                checkoutRequestKey:
                  type: string
                  description: >-
                    Optional duplicate of the Idempotency-Key header; must
                    match.
                legalAcceptance:
                  $ref: '#/components/schemas/OrderCreate/properties/legalAcceptance'
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
          description: >-
            Keep the same key and body after an uncertain response. Never start
            another payment to retry an unknown outcome.
  /v1/environment/qualification:
    get:
      summary: Read your Virtual Datacenter qualification
      operationId: get_v1_environment_qualification
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Qualification not found for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:read
      description: >-
        Acts only on an existing privately admitted qualification owned by this
        personal account. Organization credentials are rejected. This does not
        create a qualification, purchase entitlement or publicly accepted plan.
        Responses are not cached.
      parameters:
        - name: runId
          in: query
          required: true
          schema:
            type: string
            minLength: 16
            maxLength: 100
    post:
      summary: Observe access or request qualification closure
      operationId: post_v1_environment_qualification
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
            - instances:write
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid qualification action or request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Qualification not found for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Qualification state does not allow this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Qualification evidence is still being confirmed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
        - instances:write
        - instances:exec
      description: >-
        Acts only on an existing privately admitted qualification owned by this
        personal account. Organization credentials are rejected. This does not
        create a qualification, purchase entitlement or publicly accepted plan.
        Responses are not cached. Request bodies are limited to 16 KiB. Closure
        is a request to the durable cleanup workflow, not proof that resources
        are absent.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - runId
                - action
              properties:
                runId:
                  type: string
                  minLength: 16
                  maxLength: 100
                action:
                  type: string
                  enum:
                    - observe-access
                    - close
  /v1/environment/subscribe:
    post:
      summary: Start or resume a personal Virtual Datacenter checkout
      operationId: post_v1_environment_subscribe
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscriptionId
                  - sessionId
                  - checkoutStatus
                  - paymentStatus
                  - subscriptionStatus
                properties:
                  subscriptionId:
                    type: string
                  sessionId:
                    type: string
                  checkoutStatus:
                    type: string
                    enum:
                      - open
                      - complete
                  paymentStatus:
                    type: string
                    enum:
                      - paid
                      - unpaid
                      - no_payment_required
                  subscriptionStatus:
                    type: string
                  checkoutUrl:
                    type: string
                    format: uri
                    description: Present only while this hosted checkout is open.
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
        - instances:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. API checkout is hosted: an open session returns checkoutUrl.
        The exact session is retained beyond Stripe’s idempotency-cache window.
        A complete session returns its actual paymentStatus and local
        subscriptionStatus without another URL; poll GET /v1/environment until
        the backend confirms activation. Complete does not mean paid or
        provisioned. ERR_CHECKOUT_EXPIRED requires a new explicitly authorized
        attempt/key. ERR_CHECKOUT_RECOVERY_REQUIRED requires reconciliation of
        the original attempt; do not remint it. Browser and API UI modes cannot
        share an attempt key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - planSlug
                - legalAcceptance
              properties:
                planSlug:
                  type: string
                  minLength: 1
                  maxLength: 100
                billingCycle:
                  type: string
                  enum:
                    - monthly
                    - yearly
                  default: monthly
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                checkoutRequestKey:
                  type: string
                  description: >-
                    Optional duplicate of the Idempotency-Key header; must match
                    it exactly.
                legalAcceptance:
                  $ref: '#/components/schemas/OrderCreate/properties/legalAcceptance'
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
          description: >-
            Keep the same key and body after an uncertain response. Never start
            another payment to retry an unknown outcome.
  /v1/environment/subscription:
    get:
      summary: Read retained billing and server changes for a personal resource pool
      operationId: get_v1_environment_subscription
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Current retained state; inspect pending and both statuses
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscription
                  - transition
                  - pending
                properties:
                  subscription:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      cancelAtPeriodEnd:
                        type: boolean
                      currentPeriodEnd:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      billingCycle:
                        type: string
                      plan:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                  transition:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      action:
                        type: string
                        enum:
                          - pause
                          - resume
                          - cancel
                          - expire
                          - change
                      status:
                        type: string
                      billingStatus:
                        type: string
                      runtimeStatus:
                        type: string
                      errorCode:
                        type:
                          - string
                          - 'null'
                  pending:
                    type: boolean
                    description: >-
                      True while retained billing or runtime work remains;
                      receipt presence alone is not successful completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            Subscription/transition not found for this owner, or IDs do not
            belong together.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:read
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. GET performs owner-bound database reads only. Cancel
        schedules period-end cancellation and returns after billing readback;
        cleanup is a separate period-end transition. Pause queues stops only for
        explicitly pool-funded servers; resume verifies actual current paid
        coverage before restoring billing and starting the servers previously
        paused by this pool. Separately paid servers remain. HTTP202 means work
        is retained and pending; poll GET with the exact subscriptionId and
        transitionId. Retry interrupted writes with the same key.
        ERR_ENVIRONMENT_RESUME_PAYMENT_REQUIRED never silently starts or charges
        a new billing period. A plan change is priced first: GET with
        changeTo=<plan slug> answers what moving to that plan would charge now,
        credit, or leave for the next invoice, and changes nothing; PATCH with
        action change and planSlug then sends it once through the billing
        transition, and an upgrade's invoice must read paid before the pool
        moves. Positive capacity packs remain unavailable until their own
        price/settlement transition is verified.
      parameters:
        - name: changeTo
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 64
          description: >-
            A plan slug: answers { plan, chargedNow, amountDueNowCents,
            creditCents, periodEnd } for moving to it now, read from Stripe's
            invoice preview. Changes nothing.
        - name: subscriptionId
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 191
          description: >-
            Exact personal pool to inspect; mismatched transition/pool pairs
            receive404.
        - name: transitionId
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 191
          description: >-
            Retained receipt ID, including completed and canceled receipts. Omit
            to recover the open transition.
    patch:
      summary: Manage a personal resource-pool subscription
      operationId: patch_v1_environment_subscription
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Billing transition completed or replayed
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscription
                  - transition
                  - pending
                properties:
                  subscription:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      cancelAtPeriodEnd:
                        type: boolean
                      currentPeriodEnd:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      billingCycle:
                        type: string
                      plan:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                  transition:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      action:
                        type: string
                        enum:
                          - pause
                          - resume
                          - cancel
                          - expire
                          - change
                      status:
                        type: string
                      billingStatus:
                        type: string
                      runtimeStatus:
                        type: string
                      errorCode:
                        type:
                          - string
                          - 'null'
                  pending:
                    type: boolean
                    description: >-
                      True while retained billing or runtime work remains;
                      receipt presence alone is not successful completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '202':
          description: Transition retained; billing or server work remains pending
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscription
                  - transition
                  - pending
                properties:
                  subscription:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      cancelAtPeriodEnd:
                        type: boolean
                      currentPeriodEnd:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      billingCycle:
                        type: string
                      plan:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                  transition:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      action:
                        type: string
                        enum:
                          - pause
                          - resume
                          - cancel
                          - expire
                          - change
                      status:
                        type: string
                      billingStatus:
                        type: string
                      runtimeStatus:
                        type: string
                      errorCode:
                        type:
                          - string
                          - 'null'
                  pending:
                    type: boolean
                    description: >-
                      True while retained billing or runtime work remains;
                      receipt presence alone is not successful completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            Subscription/transition not found for this owner, or IDs do not
            belong together.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. GET performs owner-bound database reads only. Cancel
        schedules period-end cancellation and returns after billing readback;
        cleanup is a separate period-end transition. Pause queues stops only for
        explicitly pool-funded servers; resume verifies actual current paid
        coverage before restoring billing and starting the servers previously
        paused by this pool. Separately paid servers remain. HTTP202 means work
        is retained and pending; poll GET with the exact subscriptionId and
        transitionId. Retry interrupted writes with the same key.
        ERR_ENVIRONMENT_RESUME_PAYMENT_REQUIRED never silently starts or charges
        a new billing period. A plan change is priced first: GET with
        changeTo=<plan slug> answers what moving to that plan would charge now,
        credit, or leave for the next invoice, and changes nothing; PATCH with
        action change and planSlug then sends it once through the billing
        transition, and an upgrade's invoice must read paid before the pool
        moves. Positive capacity packs remain unavailable until their own
        price/settlement transition is verified.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              properties:
                action:
                  type: string
                  enum:
                    - cancel
                    - resume
                    - pause
                    - change
                subscriptionId:
                  type: string
                  minLength: 1
                  maxLength: 191
                  description: Exact personal pool to change.
                planSlug:
                  type: string
                  description: >-
                    The plan to move to with action change: one on sale and not
                    the current plan; a smaller plan must hold what runs now.
                    Only a plan change names a plan.
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
          description: >-
            Keep the same key and body after an uncertain response. Never start
            another payment to retry an unknown outcome.
    delete:
      summary: Schedule cancellation of a personal resource pool
      operationId: delete_v1_environment_subscription
      tags:
        - environment
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Billing transition completed or replayed
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscription
                  - transition
                  - pending
                properties:
                  subscription:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      cancelAtPeriodEnd:
                        type: boolean
                      currentPeriodEnd:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      billingCycle:
                        type: string
                      plan:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                  transition:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      action:
                        type: string
                        enum:
                          - pause
                          - resume
                          - cancel
                          - expire
                          - change
                      status:
                        type: string
                      billingStatus:
                        type: string
                      runtimeStatus:
                        type: string
                      errorCode:
                        type:
                          - string
                          - 'null'
                  pending:
                    type: boolean
                    description: >-
                      True while retained billing or runtime work remains;
                      receipt presence alone is not successful completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '202':
          description: Transition retained; billing or server work remains pending
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscription
                  - transition
                  - pending
                properties:
                  subscription:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      cancelAtPeriodEnd:
                        type: boolean
                      currentPeriodEnd:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      billingCycle:
                        type: string
                      plan:
                        type: object
                        properties:
                          slug:
                            type: string
                          name:
                            type: string
                  transition:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: string
                      action:
                        type: string
                        enum:
                          - pause
                          - resume
                          - cancel
                          - expire
                          - change
                      status:
                        type: string
                      billingStatus:
                        type: string
                      runtimeStatus:
                        type: string
                      errorCode:
                        type:
                          - string
                          - 'null'
                  pending:
                    type: boolean
                    description: >-
                      True while retained billing or runtime work remains;
                      receipt presence alone is not successful completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid body or missing current legal acceptance/attempt key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No funded entitlement or insufficient capacity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            Subscription/transition not found for this owner, or IDs do not
            belong together.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Tenant, payment, fulfillment, capacity or request conflict; inspect
            the returned code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 32 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment or fulfillment authority unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
      description: >-
        Personal accounts only; organization tokens receive
        ERR_ENVIRONMENT_TENANT_SCOPE. Uses the same current legal, pricing,
        capacity and fulfillment checks as the dashboard. A listed plan is not
        purchase authority. Responses are not cached. Request bodies are limited
        to 32 KiB. GET performs owner-bound database reads only. Cancel
        schedules period-end cancellation and returns after billing readback;
        cleanup is a separate period-end transition. Pause queues stops only for
        explicitly pool-funded servers; resume verifies actual current paid
        coverage before restoring billing and starting the servers previously
        paused by this pool. Separately paid servers remain. HTTP202 means work
        is retained and pending; poll GET with the exact subscriptionId and
        transitionId. Retry interrupted writes with the same key.
        ERR_ENVIRONMENT_RESUME_PAYMENT_REQUIRED never silently starts or charges
        a new billing period. A plan change is priced first: GET with
        changeTo=<plan slug> answers what moving to that plan would charge now,
        credit, or leave for the next invoice, and changes nothing; PATCH with
        action change and planSlug then sends it once through the billing
        transition, and an upgrade's invoice must read paid before the pool
        moves. Positive capacity packs remain unavailable until their own
        price/settlement transition is verified.
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
          description: >-
            Keep the same key and body after an uncertain response. Never start
            another payment to retry an unknown outcome.
  /v1/governance:
    get:
      summary: GET /v1/governance
      operationId: get_v1_governance
      tags:
        - governance
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/governance. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/governance
      operationId: post_v1_governance
      tags:
        - governance
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/governance. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/hybrid:
    get:
      summary: List the customer's own servers and connectors
      operationId: get_v1_hybrid
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
  /v1/hybrid/connectors:
    post:
      summary: Add a connector for a site
      operationId: post_v1_hybrid_connectors
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '201':
          description: Connector added; token and installCommand are shown once
          content:
            application/json:
              schema:
                type: object
                required:
                  - connector
                  - token
                  - expiresAt
                  - installCommand
                properties:
                  connector:
                    type: object
                  token:
                    type: string
                  expiresAt:
                    type: string
                    format: date-time
                  installCommand:
                    type: string
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached. The answer
        holds a one-time enrollment token (valid one hour) and the install
        command; the platform keeps only the token's hash.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                organizationId:
                  type: string
  /v1/hybrid/connectors/{id}:
    get:
      summary: Read one connector
      operationId: get_v1_hybrid_connectors_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Rename a connector
      operationId: patch_v1_hybrid_connectors_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    delete:
      summary: Remove a connector once no server reaches through it
      operationId: delete_v1_hybrid_connectors_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/connectors/{id}/revoke:
    post:
      summary: >-
        Revoke a connector: its secret stops working and its live connection
        closes
      operationId: post_v1_hybrid_connectors_id_revoke
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/connectors/{id}/token:
    post:
      summary: A fresh one-time enrollment token for a connector that has not enrolled
      operationId: post_v1_hybrid_connectors_id_token
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such connector for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. A connector is
        the small agent one Linux machine at a site runs; it dials out to the
        platform, so machines behind the site's NAT can be reached.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers:
    post:
      summary: Add one of the customer's own servers
      operationId: post_v1_hybrid_servers
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '201':
          description: Server added
          content:
            application/json:
              schema:
                type: object
                required:
                  - server
                properties:
                  server:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid server (ERR_VALIDATION); the answer names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. Confirm its
        host key next: POST check, then trust.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - osFamily
                - accessMethod
                - address
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                osFamily:
                  type: string
                  enum:
                    - LINUX
                    - WINDOWS
                accessMethod:
                  type: string
                  enum:
                    - DIRECT
                    - GATEWAY
                    - CONNECTOR
                address:
                  type: string
                sshPort:
                  type: integer
                  minimum: 1
                  maximum: 65535
                  default: 22
                rdpPort:
                  type:
                    - integer
                    - 'null'
                sshUsername:
                  type: string
                rdpUsername:
                  type: string
                rdpDomain:
                  type: string
                gatewayInstanceId:
                  type: string
                connectorId:
                  type: string
                organizationId:
                  type: string
                location:
                  type: string
                notes:
                  type: string
                credentials:
                  type: object
                  writeOnly: true
                  properties:
                    sshPassword:
                      type: string
                    sshPrivateKey:
                      type: string
                    sshPassphrase:
                      type: string
                    rdpPassword:
                      type: string
  /v1/hybrid/servers/{id}:
    get:
      summary: Read one of the customer's own servers
      operationId: get_v1_hybrid_servers_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Change one of the customer's own servers
      operationId: patch_v1_hybrid_servers_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    delete:
      summary: Remove one of the customer's own servers (the machine is untouched)
      operationId: delete_v1_hybrid_servers_id
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/activity:
    get:
      summary: The audit trail of one of the customer's own servers, newest first
      operationId: get_v1_hybrid_servers_id_activity
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/apps:
    get:
      summary: >-
        Apps on one of the customer's own Linux servers, and the ones that can
        be installed
      operationId: get_v1_hybrid_servers_id_apps
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    post:
      summary: Install an app on one of the customer's own Linux servers
      operationId: post_v1_hybrid_servers_id_apps
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: Install queued; poll GET until the app reads READY
          content:
            application/json:
              schema:
                type: object
                required:
                  - app
                properties:
                  app:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: templateId is not one of the apps listed (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The server cannot take apps yet, or the app is already installed or
            being removed (ERR_HYBRID_APP_UNAVAILABLE, ERR_CONFLICT).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - templateId
              properties:
                templateId:
                  type: string
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/apps/{appId}:
    delete:
      summary: Remove an app from one of the customer's own servers
      operationId: delete_v1_hybrid_servers_id_apps_appId
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '202':
          description: Removal queued
          content:
            application/json:
              schema:
                type: object
                required:
                  - app
                properties:
                  app:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. The platform
        stops it and deletes its containers, volumes and files on the server.
        forget=1 drops only the record here and leaves the app running.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: appId
          in: path
          required: true
          schema:
            type: string
        - name: forget
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
  /v1/hybrid/servers/{id}/check:
    post:
      summary: >-
        Reach a server along its path and read its host key, certificate and
        facts
      operationId: post_v1_hybrid_servers_id_check
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. Until its key
        is confirmed the answer offers it (offer.ssh.publicKey and fingerprint);
        after that it compares the key and reads the server's facts.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/exec:
    post:
      summary: Run one command line on one of the customer's own servers
      operationId: post_v1_hybrid_servers_id_exec
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - exitCode
                  - stdout
                  - stderr
                  - elapsedMs
                properties:
                  exitCode:
                    type: integer
                  stdout:
                    type: string
                  stderr:
                    type: string
                  elapsedMs:
                    type: integer
                  truncated:
                    const: true
        '400':
          description: Invalid command or timeoutMs (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:exec (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The server is not ready: its host key is not confirmed, or it has no
            SSH user or credential (ERR_HYBRID_NOT_TRUSTED, ERR_HYBRID_NO_USER,
            ERR_HYBRID_NO_CREDENTIAL).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The session failed: a changed host key, refused credentials, or a
            connection error (ERR_HYBRID_*).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '504':
          description: >-
            The command did not finish in time (ERR_HYBRID_EXEC_TIMEOUT); it may
            have run in part.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. API tokens
        only. Runs as the server's saved SSH user over the session that accepts
        only its confirmed host key. stdout and stderr are capped at 64 KiB each
        (truncated: true). The command is kept in the account's audit log with
        secret-looking values redacted; the output is not.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - command
              properties:
                command:
                  type: string
                  minLength: 1
                  maxLength: 8192
                timeoutMs:
                  type: integer
                  minimum: 1000
                  maximum: 60000
                  default: 15000
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/metrics:
    get:
      summary: What the platform measured on one of the customer's own servers
      operationId: get_v1_hybrid_servers_id_metrics
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. CPU, memory,
        the fullest disk, load and network rates, oldest first, over the last
        hours (1-168, default 24). A gap means the server was not reached, not
        that it was idle.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: hours
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 168
            default: 24
  /v1/hybrid/servers/{id}/security:
    post:
      summary: >-
        Read the security settings of one of the customer's own Linux servers
        now
      operationId: post_v1_hybrid_servers_id_security
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. SSH sign-in,
        firewall, automatic updates, waiting updates, a needed restart,
        brute-force protection and listening ports, each with what to change.
        Read-only on the server.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/security/fix:
    post:
      summary: >-
        Apply one security baseline fix on one of the customer's own Linux
        servers
      operationId: post_v1_hybrid_servers_id_security_fix
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: fix is not auto-updates or brute-force (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. auto-updates or
        brute-force (fail2ban, which never bans the platform's address); neither
        touches SSH settings or a firewall. Answers the settings read again.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - fix
              properties:
                fix:
                  type: string
                  enum:
                    - auto-updates
                    - brute-force
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/trust:
    post:
      summary: Confirm a server's SSH host key or remote desktop certificate
      operationId: post_v1_hybrid_servers_id_trust
      tags:
        - hybrid
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing instances:write (AUTH-1003), or a member without the Owner
            or Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such server for this caller (ERR_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The server now presents a different key or certificate than the one
            confirmed (ERR_IDENTITY_CHANGED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Servers in the customer's office, home lab or another datacenter,
        reached directly (a public IPv4), through one of their Linux servers
        (GATEWAY) or through a connector they installed (CONNECTOR). An
        organization key reaches its organization's servers only, never its
        creator's personal ones; a member's personal token reaches both. Reading
        takes membership; changing takes the Owner or Admin role. Credentials
        are sealed and never returned. Responses are not cached. The platform
        reads the server again and stores the key only when it still matches;
        every later session accepts only that key. Confirm only what the owner
        compared with the server itself.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sshPublicKey:
                  type: string
                  description: offer.ssh.publicKey from check.
                rdpCertificateSha256:
                  type: string
                  pattern: ^[a-f0-9]{64}$
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/vpn:
    get:
      summary: >-
        List a server's VPN connections, what it supports and whether the caller
        may change them
      operationId: get_v1_hybrid_servers_id_vpn
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    post:
      summary: Put a VPN on a server
      operationId: post_v1_hybrid_servers_id_vpn
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: Connection saved, being configured on the server
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection
                properties:
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: >-
            Invalid request (ERR_VALIDATION), or a network that overlaps the
            environment or another VPN (ERR_VPN_NETWORK_OVERLAP).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            This server does not support that protocol and role
            (ERR_VPN_UNAVAILABLE, with the reason), or a connection of that name
            or network exists (ERR_CONFLICT).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. Answers 202 with the
        connection CONFIGURING; the server is configured after the response.
        Poll GET /v1/hybrid/servers/{id}/vpn/{connectionId} until it reads UP or
        ERROR.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - role
                - protocol
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                role:
                  type: string
                  enum:
                    - CLIENT
                    - SERVER
                  description: >-
                    CLIENT joins an existing network; SERVER hosts one for
                    devices and sites (WireGuard or OpenVPN).
                protocol:
                  type: string
                  enum:
                    - WIREGUARD
                    - OPENVPN
                    - IPSEC
                    - TAILSCALE
                    - ZEROTIER
                    - NETBIRD
                settings:
                  type: object
                  description: >-
                    Non-secret answers for the protocol and role. A refusal
                    names the field (ERR_VALIDATION).
                secrets:
                  type: object
                  writeOnly: true
                  description: >-
                    presharedKey (WireGuard client), profile with username and
                    password (OpenVPN client), psk (IPsec), authKey (Tailscale),
                    setupKey (NetBird). Sent to the server on stdin and never
                    stored.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/vpn/{connectionId}:
    get:
      summary: Read one VPN connection of a server
      operationId: get_v1_hybrid_servers_id_vpn_connectionId
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Change a VPN connection and apply it again
      operationId: patch_v1_hybrid_servers_id_vpn_connectionId
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: Change saved, being applied on the server
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection
                properties:
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. A secret left out stays
        as the server holds it. Answers 202; the change is applied after the
        response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                settings:
                  type: object
                  description: >-
                    Non-secret answers for the protocol and role. A refusal
                    names the field (ERR_VALIDATION).
                secrets:
                  type: object
                  writeOnly: true
                  description: >-
                    presharedKey (WireGuard client), profile with username and
                    password (OpenVPN client), psk (IPsec), authKey (Tailscale),
                    setupKey (NetBird). Sent to the server on stdin and never
                    stored.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
    delete:
      summary: Remove a VPN connection from its server
      operationId: delete_v1_hybrid_servers_id_vpn_connectionId
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The server did not confirm the removal (ERR_VPN_REMOVE_FAILED); the
            kept connection is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. When the server cannot
        confirm the removal the connection stays, in ERROR (502
        ERR_VPN_REMOVE_FAILED), so a VPN still configured there never disappears
        from the record.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
        - name: forget
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: >-
            Drop only the record, for a stopped or unreachable server; the VPN
            may still be configured there.
  /v1/hybrid/servers/{id}/vpn/{connectionId}/diagnose:
    post:
      summary: Diagnose a VPN connection end to end
      operationId: post_v1_hybrid_servers_id_vpn_connectionId_diagnose
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The platform's own
        view, then a read-only checklist the server runs (clock, software,
        service, interface, name resolution, reachability, handshake, routes,
        forwarding, firewall, a pending rollback, recent log lines). Changes
        nothing. Limited to 6 a minute.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/vpn/{connectionId}/peers:
    post:
      summary: Add a device or site to a VPN server this server hosts
      operationId: post_v1_hybrid_servers_id_vpn_connectionId_peers
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:write
      responses:
        '201':
          description: Peer added; material holds its one-time config
          content:
            application/json:
              schema:
                type: object
                required:
                  - peer
                  - material
                  - connection
                properties:
                  peer:
                    type: object
                  material:
                    type: object
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The answer carries the
        new peer's config with its private key exactly once; the platform does
        not keep it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                kind:
                  type: string
                  enum:
                    - DEVICE
                    - SITE
                  default: DEVICE
                networks:
                  type: array
                  items:
                    type: string
                  maxItems: 16
                  description: >-
                    IPv4 networks behind a SITE in CIDR form; required for a
                    site, never 0.0.0.0/0.
                reach:
                  type: array
                  items:
                    type: string
                  maxItems: 16
                  description: >-
                    A DEVICE on a WireGuard server that shares the environment's
                    network: the IPv4 addresses or networks inside that network
                    it may reach (an address alone is one machine). The server
                    drops the rest. Empty: all the VPN shares.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/vpn/{connectionId}/peers/{peerId}:
    delete:
      summary: Revoke a device or site of a VPN server
      operationId: delete_v1_hybrid_servers_id_vpn_connectionId_peers_peerId
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The server stops
        admitting the peer before the record says REVOKED; when the server
        cannot confirm, the peer stays ACTIVE and the answer says why.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
        - name: peerId
          in: path
          required: true
          schema:
            type: string
  /v1/hybrid/servers/{id}/vpn/{connectionId}/status:
    post:
      summary: Read a VPN connection on its server now
      operationId: post_v1_hybrid_servers_id_vpn_connectionId_status
      tags:
        - hybrid
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. Runs the connection's
        status program over the platform's SSH and records what it answered.
        Changes nothing the customer configured.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/instances:
    get:
      summary: List instances with concrete member links
      operationId: get_v1_instances
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            ETag:
              description: >-
                Strong validator for this representation; PATCH returns the new
                canonical instance validator.
              schema:
                type: string
                pattern: ^"[0-9a-f]{64}"$
            Cache-Control:
              schema:
                type: string
                const: private, no-store, no-transform
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/InstanceCollection'
                  - type: object
                    required:
                      - instance
                    properties:
                      instance:
                        $ref: '#/components/schemas/InstanceLegacyProjection'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance is not accessible to this credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Returns id, status, links and actions alongside the existing
        instances/count/total/limit/offset fields. Follow links.resources to
        canonical members and links.next/previous for pagination. Each target
        checks its own scope and current ownership. The optional legacy id
        selector returns an instance projection; follow its self link to read
        the canonical validator before a conditional metadata update.
      parameters:
        - $ref: '#/components/parameters/limitParam'
        - $ref: '#/components/parameters/offsetParam'
        - name: id
          in: query
          required: false
          schema:
            type: string
          description: >-
            Legacy single-instance projection; prefer the returned canonical
            self link.
  /v1/instances/{id}:
    get:
      summary: Read an instance resource and its strong validator
      operationId: get_v1_instances_id
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            ETag:
              description: >-
                Strong validator for this representation; PATCH returns the new
                canonical instance validator.
              schema:
                type: string
                pattern: ^"[0-9a-f]{64}"$
            Cache-Control:
              schema:
                type: string
                const: private, no-store, no-transform
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceResource'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance is not accessible to this credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Returns the existing instance fields plus concrete
        self/collection/serviceRoot/tasks links, the metadata PATCH action and
        named power/rebuild/resize POST actions. Use this response ETag for
        If-Match on metadata PATCH. Responses are private and cannot be
        transformed.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Update instance name and tags, optionally conditioned on If-Match
      operationId: patch_v1_instances_id
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            ETag:
              description: >-
                Strong validator for this representation; PATCH returns the new
                canonical instance validator.
              schema:
                type: string
                pattern: ^"[0-9a-f]{64}"$
            Cache-Control:
              schema:
                type: string
                const: private, no-store, no-transform
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceMetadata'
        '400':
          description: >-
            Invalid metadata, hostname field, malformed JSON or invalid If-Match
            syntax (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance is not accessible to this credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Repeated concurrent updates prevented completion; read the resource
            and retry (ERR_CONFLICT).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '412':
          description: >-
            If-Match did not strongly match the current instance; no fields were
            changed (ERR_PRECONDITION_FAILED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        The supplied If-Match must strongly match the canonical GET
        representation; weak validators never match. Lists and * are supported.
        A missing header keeps the existing unconditional v1 operation. The
        ownership/role lookup, validator check and update run in one
        serializable transaction; a stale write returns 412 without applying its
        fields. Only name/tags change; hostname is refused. The response retains
        the metadata fields and adds status/links/actions, without exposing full
        instance details to write-only credentials. Other operations do not
        acquire conditional-write support from this endpoint.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              anyOf:
                - required:
                    - name
                - required:
                    - tags
              not:
                required:
                  - hostname
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                tags:
                  type: array
                  maxItems: 20
                  items:
                    type: string
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: If-Match
          in: header
          required: false
          schema:
            type: string
          description: >-
            Canonical GET ETag, a list of entity-tags, or *. Omit for an
            unconditional metadata update.
    delete:
      summary: Recycle an owned instance or explicitly request permanent cleanup
      operationId: delete_v1_instances_id
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: Recoverable deletion or permanent cleanup accepted.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Idempotency-Replayed:
              $ref: '#/components/headers/Idempotency-Replayed'
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - softDeleted
                properties:
                  success:
                    type: boolean
                  softDeleted:
                    type: boolean
                  message:
                    type: string
                  accepted:
                    type: boolean
                  pending:
                    type: boolean
                    description: >-
                      For permanent cleanup, true means a durable worker command
                      remains pending; false means local settlement is complete.
                  commandId:
                    type:
                      - string
                      - 'null'
                  commandStatus:
                    type: string
                  replayed:
                    type: boolean
        '400':
          description: Invalid permanent query value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance not found in the token scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Instance is running, locked or held by an existing operation; or the
            idempotent outcome is still being confirmed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Idempotency-Key reused with a different request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Default deletion uses the recoverable recycle-bin and its normal refund
        policy. permanent=true explicitly requests irreversible cleanup through
        the claimed worker, including retained partial execution-host resources.
        Running/active and locked instances return409; stop the instance first.
        HTTP202 is acceptance, not evidence of provider removal. Poll GET
        /v1/instances/{id} until cleanup completes. Reuse the same
        Idempotency-Key and deletion mode on retries. Owner and organization
        token boundaries apply to both modes.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/IdempotencyKey'
        - name: permanent
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Explicit authorization for irreversible worker cleanup. Omitted or
            false uses recoverable deletion.
  /v1/instances/{id}/access:
    get:
      summary: GET /v1/instances/{id}/access
      operationId: get_v1_instances_id_access
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceAccess'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance not found in the token scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Access inactive or credentials not ready
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Published customer SSH host/port/username/command, SSH host-key pin, RDP
        endpoint, app URL and console path. No private platform address is
        substituted for a missing published endpoint. credentials=true
        additionally requires instances:exec and records an audit event. Private
        Windows guests can reveal their web RDP password while public ssh/rdp
        endpoints remain null. Game Server access includes controlUrl, filesUrl,
        game connection details and SSH key-lease instructions. Submit
        ssh-authorize with your existing public key, poll until HTTP200, then
        connect using the returned SSH endpoint and pinned knownHosts. SSH and
        exec run inside this server’s game container. Responses are never
        cached.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: credentials
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Explicitly reveal login credentials and available Instant App
            initial configuration values (requires instances:exec). Application
            values are not refreshed when changed inside the app.
  /v1/instances/{id}/apps:
    get:
      summary: 'GET — Public Apps API (v1): the apps on a Linux server.'
      operationId: get_v1_instances_id_apps
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Apps API (v1): the apps on a Linux server.. Requires Bearer
        token with scope `instances:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: 'POST — Public Apps API (v1): the apps on a Linux server.'
      operationId: post_v1_instances_id_apps
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Apps API (v1): the apps on a Linux server.. Requires
        Bearer token with scope `instances:exec`. Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/instances/{id}/backups:
    get:
      summary: GET — Public Instance Backup Metadata API
      operationId: get_v1_instances_id_backups
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance Backup Metadata API. Requires Bearer token with
        scope `instances:read`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public Instance Backup Metadata API
      operationId: post_v1_instances_id_backups
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: >-
            Provider command accepted; the work is pending until the command
            finishes
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Idempotency-Replayed:
              $ref: '#/components/headers/Idempotency-Replayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: A request with this Idempotency-Key is still being processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '422':
          description: Idempotency-Key reused with a different request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/IdempotencyKey'
      description: >-
        POST — Public Instance Backup Metadata API. Requires Bearer token with
        scope `instances:write`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/console:
    get:
      summary: GET — Public Instance Console API
      operationId: get_v1_instances_id_console
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance Console API. Requires Bearer token with scope
        `instances:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public Instance Console API
      operationId: post_v1_instances_id_console
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Instance Console API. Requires Bearer token with scope
        `instances:write`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/domains:
    get:
      summary: >-
        GET — Public Domains API (v1): customer-owned domains for a server
        (MASTER-PLAN 3.8).
      operationId: get_v1_instances_id_domains
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Domains API (v1): customer-owned domains for a server
        (MASTER-PLAN 3.8).. Requires Bearer token with scope `network:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: >-
        POST — Public Domains API (v1): customer-owned domains for a server
        (MASTER-PLAN 3.8).
      operationId: post_v1_instances_id_domains
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Domains API (v1): customer-owned domains for a server
        (MASTER-PLAN 3.8).. Requires Bearer token with scope `network:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/domains/{domainId}:
    get:
      summary: 'GET — Public Domains API (v1): one domain of a server (MASTER-PLAN 3.8).'
      operationId: get_v1_instances_id_domains_domainId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: domainId
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Domains API (v1): one domain of a server (MASTER-PLAN
        3.8).. Requires Bearer token with scope `network:read`. Returns standard
        RFC RateLimit and X-RateLimit headers on every response and a typed
        Error object on 4xx/5xx failures.
    delete:
      summary: >-
        DELETE — Public Domains API (v1): one domain of a server (MASTER-PLAN
        3.8).
      operationId: delete_v1_instances_id_domains_domainId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: domainId
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public Domains API (v1): one domain of a server (MASTER-PLAN
        3.8).. Requires Bearer token with scope `network:write`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/domains/{domainId}/verify:
    post:
      summary: >-
        POST — Public Domains API (v1): verify a custom domain's TXT ownership
        record (MASTER-PLAN 3.8).
      operationId: post_v1_instances_id_domains_domainId_verify
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: domainId
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Domains API (v1): verify a custom domain's TXT ownership
        record (MASTER-PLAN 3.8).. Requires Bearer token with scope
        `network:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/entry-points:
    get:
      summary: List public access entry points and states for an instance
      operationId: get_v1_instances_id_entry_points
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - entryPoints
                properties:
                  entryPoints:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - kind
                        - protocol
                        - port
                        - publicPort
                        - desired
                        - state
                        - problem
                        - sources
                      properties:
                        id:
                          type: string
                        kind:
                          type: string
                        protocol:
                          type: string
                        protocols:
                          type: array
                          items:
                            type: string
                            enum:
                              - tcp
                              - udp
                        port:
                          type: integer
                        publicPort:
                          type: integer
                        ports:
                          type: array
                          items:
                            $ref: '#/components/schemas/GameServerPortMapping'
                        desired:
                          type: string
                          enum:
                            - 'on'
                            - 'off'
                        state:
                          type: string
                        problem:
                          type:
                            - string
                            - 'null'
                        sources:
                          type: array
                          items:
                            type: string
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Server not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        List public access entry points and states for an instance. Requires
        Bearer token with scope `network:read`. Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/instances/{id}/entry-points/{entryPointId}:
    patch:
      summary: Switch an instance entry point on or off or set allowed source CIDRs
      operationId: patch_v1_instances_id_entry_points_entryPointId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: Entry point update accepted for worker reconciliation.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - accepted
                  - changed
                  - entryPoint
                properties:
                  accepted:
                    type: boolean
                  changed:
                    type: boolean
                  entryPoint:
                    type: object
                    required:
                      - id
                      - kind
                      - protocol
                      - port
                      - publicPort
                      - desired
                      - state
                      - problem
                      - sources
                    properties:
                      id:
                        type: string
                      kind:
                        type: string
                      protocol:
                        type: string
                      protocols:
                        type: array
                        items:
                          type: string
                          enum:
                            - tcp
                            - udp
                      port:
                        type: integer
                      publicPort:
                        type: integer
                      ports:
                        type: array
                        items:
                          $ref: '#/components/schemas/GameServerPortMapping'
                      desired:
                        type: string
                        enum:
                          - 'on'
                          - 'off'
                      state:
                        type: string
                      problem:
                        type:
                          - string
                          - 'null'
                      sources:
                        type: array
                        items:
                          type: string
        '400':
          description: Invalid entry point change request (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instance or entry point not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Entry point sources cannot be restricted on this kind or path.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                desired:
                  type: string
                  enum:
                    - 'on'
                    - 'off'
                sources:
                  oneOf:
                    - type: array
                      items:
                        type: string
                    - type: string
                    - type: 'null'
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: entryPointId
          in: path
          required: true
          schema:
            type: string
      description: >-
        Switch an instance entry point on or off or set allowed source CIDRs.
        Requires Bearer token with scope `network:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/exec:
    post:
      summary: POST — Public Instance Exec API
      operationId: post_v1_instances_id_exec
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  exitCode:
                    type: integer
                  stdout:
                    type: string
                  stderr:
                    type: string
                  elapsedMs:
                    type: integer
                  truncated:
                    type: boolean
        '202':
          description: Durable game-node exec pending; poll pollUrl.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              schema:
                type: string
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlPending'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - command
              properties:
                command:
                  oneOf:
                    - type: string
                      minLength: 1
                    - type: array
                      minItems: 1
                      maxItems: 64
                      items:
                        type: string
                timeoutMs:
                  type: integer
                  minimum: 1000
                  maximum: 60000
                  default: 15000
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Instance Exec API. Requires Bearer token with scope
        `instances:exec`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/files:
    get:
      summary: GET — Public Instance Files API
      operationId: get_v1_instances_id_files
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:files:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  path:
                    type: string
                  size:
                    type: integer
                  content:
                    type: string
                  base64:
                    type: string
                  files:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
        '202':
          description: Durable game-node file read/list pending; poll pollUrl.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              schema:
                type: string
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlPending'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:files:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: path
          in: query
          required: false
          schema:
            type: string
          description: >-
            Absolute path on VM or game container data volume; defaults to /
            when action=list.
        - name: action
          in: query
          required: false
          schema:
            type: string
            enum:
              - read
              - list
            default: read
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
        - name: length
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 524288
      description: >-
        GET — Public Instance Files API. Requires Bearer token with scope
        `instances:files:read`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
    put:
      summary: PUT — Public Instance Files API
      operationId: put_v1_instances_id_files
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:files:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '202':
          description: Durable game-node file write pending; poll pollUrl.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              schema:
                type: string
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlPending'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:files:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - path
                - content
              properties:
                path:
                  type: string
                content:
                  type: string
                encoding:
                  type: string
                  enum:
                    - utf8
                    - base64
                  default: utf8
                offset:
                  type: integer
                  minimum: 0
                truncate:
                  type: boolean
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        PUT — Public Instance Files API. Requires Bearer token with scope
        `instances:files:write`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/game-server/control:
    get:
      summary: Read a Game Server operation result
      operationId: get_v1_instances_id_game_server_control
      tags:
        - instances
      security:
        - bearerAuth: []
      responses:
        '200':
          description: >-
            Verified operation result, with operationId and action-specific
            fields at the top level.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlResult'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '202':
          description: >-
            Operation remains pending. Poll Location using the same bearer token
            scope.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              schema:
                type: string
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlPending'
        '400':
          description: Invalid JSON, control fields or request ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            Instance or operation not found in the requesting owner/organization
            scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Host not ready, request ID conflict, lost command authority or game
            node operation failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Operation receipt expired (ERR_GAME_CONTROL_EXPIRED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Rate limited or this server already has four commands pending
            (ERR_GAME_CONTROL_BUSY).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Command storage, node access or result verification unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope-by-action:
        status: instances:read
        dayz-installation-status: instances:read
        dayz-steam-credential: instances:write
        dst-cluster-token: instances:write
        hytale-auth-credential: instances:write
        logs: instances:read
        power: instances:write
        console: instances:exec
        exec: instances:exec
        ssh-authorize: instances:exec
        ssh-list: instances:exec
        ssh-revoke: instances:exec
        file-list: instances:files:read
        file-read: instances:files:read
        file-write: instances:files:write
        file-mkdir: instances:files:write
        file-remove: instances:files:write
        file-rename: instances:files:write
        file-copy: instances:files:write
        mod-install: instances:files:write
        backup-list: instances:read
        backup-create: instances:write
        backup-restore: instances:write
        backup-delete: instances:write
      description: >-
        Owner- and organization-scoped operations execute on the dedicated
        pinned game node. The required token scope depends on control.action, as
        listed in GameServerControl. Polling requires the same scope and the
        original requesting account. HTTP202 means work is pending: follow
        pollUrl (also Location) and Retry-After until HTTP200 or an error.
        Receipts expire 15 minutes after submission; DayZ credential refresh
        expires after 60 seconds. HTTP410 requires a fresh state read before
        retrying an uncertain mutation. Only DayZ credential refresh and
        installation status are available during an applied, actively claimed
        installation. Credential refresh restarts the exact game container while
        preserving saved data; it does not prove game readiness. Use the browser
        or private HTTP for Steam credentials, never MCP or AI transcripts. SSH
        authorization leases last 60–3600 seconds, allow at most 16 keys, and
        expiry/revocation closes active sessions. Native SSH/PTY and exec stay
        inside the owned game container; forwarding is disabled.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: operationId
          in: query
          required: true
          schema:
            type: string
          description: operationId returned by the original POST.
    post:
      summary: Run a durable owned Game Server operation
      operationId: post_v1_instances_id_game_server_control
      tags:
        - instances
      security:
        - bearerAuth: []
      responses:
        '200':
          description: >-
            Verified operation result, with operationId and action-specific
            fields at the top level.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlResult'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '202':
          description: >-
            Operation remains pending. Poll Location using the same bearer token
            scope.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              schema:
                type: string
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameServerControlPending'
        '400':
          description: Invalid JSON, control fields or request ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            Instance or operation not found in the requesting owner/organization
            scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Host not ready, request ID conflict, lost command authority or game
            node operation failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Operation receipt expired (ERR_GAME_CONTROL_EXPIRED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Rate limited or this server already has four commands pending
            (ERR_GAME_CONTROL_BUSY).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Command storage, node access or result verification unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope-by-action:
        status: instances:read
        dayz-installation-status: instances:read
        dayz-steam-credential: instances:write
        dst-cluster-token: instances:write
        hytale-auth-credential: instances:write
        logs: instances:read
        power: instances:write
        console: instances:exec
        exec: instances:exec
        ssh-authorize: instances:exec
        ssh-list: instances:exec
        ssh-revoke: instances:exec
        file-list: instances:files:read
        file-read: instances:files:read
        file-write: instances:files:write
        file-mkdir: instances:files:write
        file-remove: instances:files:write
        file-rename: instances:files:write
        file-copy: instances:files:write
        mod-install: instances:files:write
        backup-list: instances:read
        backup-create: instances:write
        backup-restore: instances:write
        backup-delete: instances:write
      description: >-
        Owner- and organization-scoped operations execute on the dedicated
        pinned game node. The required token scope depends on control.action, as
        listed in GameServerControl. Polling requires the same scope and the
        original requesting account. HTTP202 means work is pending: follow
        pollUrl (also Location) and Retry-After until HTTP200 or an error.
        Receipts expire 15 minutes after submission; DayZ credential refresh
        expires after 60 seconds. HTTP410 requires a fresh state read before
        retrying an uncertain mutation. Only DayZ credential refresh and
        installation status are available during an applied, actively claimed
        installation. Credential refresh restarts the exact game container while
        preserving saved data; it does not prove game readiness. Use the browser
        or private HTTP for Steam credentials, never MCP or AI transcripts. SSH
        authorization leases last 60–3600 seconds, allow at most 16 keys, and
        expiry/revocation closes active sessions. Native SSH/PTY and exec stay
        inside the owned game container; forwarding is disabled.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - control
              properties:
                control:
                  $ref: '#/components/schemas/GameServerControl'
                requestId:
                  type: string
                  pattern: ^[a-zA-Z0-9][a-zA-Z0-9._:-]{7,120}$
            examples:
              authorizeSsh:
                summary: Authorize a customer public key for one hour
                value:
                  control:
                    action: ssh-authorize
                    publicKey: ssh-ed25519 <your-base64-public-key>
                    leaseSeconds: 3600
              execute:
                summary: Run a command inside the owned game container
                value:
                  control:
                    action: exec
                    command: pwd
                    timeoutMs: 10000
              logs:
                value:
                  control:
                    action: logs
                    lines: 100
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9._:-]{7,120}$
          description: >-
            Reuse one stable key for retries of the same operation. Takes
            precedence over body.requestId. A changed operation with the same
            key returns409. Without either key the server generates a new
            request ID.
  /v1/instances/{id}/game-website:
    get:
      summary: >-
        Read an owned game server community website, player connect hostname,
        and custom domain DNS guide
      operationId: get_v1_instances_id_game_website
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  website:
                    type: object
                    additionalProperties: true
                  urls:
                    type: object
                    additionalProperties: true
                    properties:
                      defaultSiteUrl:
                        type: string
                      customDomainUrl:
                        type:
                          - string
                          - 'null'
                      playHostname:
                        type: string
                      playConnectAddress:
                        type:
                          - string
                          - 'null'
                  dnsGuide:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                  serverTelemetry:
                    type: object
                    additionalProperties: true
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        Read an owned game server community website, player connect hostname,
        and custom domain DNS guide. Requires Bearer token with scope
        `network:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    patch:
      summary: >-
        Configure or publish an owned game server community website or custom
        domain
      operationId: patch_v1_instances_id_game_website
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              additionalProperties: true
              properties:
                action:
                  type: string
                  enum:
                    - toggle_publish
                    - update_branding
                    - configure_custom_domain
                    - verify_custom_domain
                    - save_blog
                    - save_events
                    - save_rules
                    - save_guides
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        Configure or publish an owned game server community website or custom
        domain. Requires Bearer token with scope `network:write`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/managed-docker/workloads:
    get:
      summary: List apps and resource limits on an owned managed Docker host
      operationId: get_v1_instances_id_managed_docker_workloads
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - instanceId
                  - status
                  - limits
                  - usedWorkloads
                  - workloads
                properties:
                  instanceId:
                    type: string
                  status:
                    type: string
                  usedWorkloads:
                    type: integer
                    minimum: 0
                  limits:
                    type: object
                    properties:
                      workloads:
                        type: integer
                        minimum: 0
                      routes:
                        type: integer
                        minimum: 0
                      vcpus:
                        type: integer
                        minimum: 0
                      ramMb:
                        type: integer
                        minimum: 0
                      storageGiB:
                        type: integer
                        minimum: 0
                  workloads:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - workloadKey
                        - status
                        - generation
                        - source
                        - internalPort
                        - healthPath
                        - accessUrl
                        - updatedAt
                      properties:
                        id:
                          type: string
                        workloadKey:
                          type: string
                        status:
                          type: string
                        generation:
                          type: integer
                        source:
                          type: object
                        internalPort:
                          type: integer
                        healthPath:
                          type: string
                        accessUrl:
                          type:
                            - string
                            - 'null'
                          format: uri
                        updatedAt:
                          type: string
                          format: date-time
        '400':
          description: Invalid configuration or missing request key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Host not found in this tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Host, funding, quota, generation, deleted-key or live-operation
            conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 64 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Operation could not be retained; retry the same key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Requires a qualified, funded managed Docker host in the token’s tenant.
        This does not enroll an arbitrary VM or accept a new product for sale.
        GET omits secret environment values and deleted workload tombstones;
        accessUrl is populated only from verified runtime and route evidence.
        Writes retain asynchronous commands; poll statusUrl until the exact
        workload is READY or the deleted workload disappears. Retry uncertain
        writes with the original Idempotency-Key. A deleted workload key cannot
        be reused.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    post:
      summary: Configure an app on an owned managed Docker host
      operationId: post_v1_instances_id_managed_docker_workloads
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: Command retained; work is not yet complete
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - workloadId
                  - commandId
                  - generation
                  - statusUrl
                properties:
                  success:
                    const: true
                  workloadId:
                    type: string
                  commandId:
                    type: string
                  generation:
                    type: integer
                  desiredStateHash:
                    type: string
                  statusUrl:
                    type: string
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid configuration or missing request key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Host not found in this tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Host, funding, quota, generation, deleted-key or live-operation
            conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 64 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Operation could not be retained; retry the same key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Requires a qualified, funded managed Docker host in the token’s tenant.
        This does not enroll an arbitrary VM or accept a new product for sale.
        GET omits secret environment values and deleted workload tombstones;
        accessUrl is populated only from verified runtime and route evidence.
        Writes retain asynchronous commands; poll statusUrl until the exact
        workload is READY or the deleted workload disappears. Retry uncertain
        writes with the original Idempotency-Key. A deleted workload key cannot
        be reused.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - workloadKey
                - source
                - internalPort
                - healthPath
              properties:
                workloadKey:
                  type: string
                  pattern: ^[a-z0-9][a-z0-9._-]{0,62}$
                internalPort:
                  type: integer
                  minimum: 1
                  maximum: 65535
                healthPath:
                  type: string
                  minLength: 1
                  maxLength: 512
                  description: Absolute application health path.
                environment:
                  type: object
                  maxProperties: 128
                  writeOnly: true
                  description: >-
                    Omit to preserve existing variables. An explicit object
                    replaces the entire set; {} clears all variables.
                  propertyNames:
                    pattern: ^[A-Z_][A-Z0-9_]{0,126}$
                  additionalProperties:
                    type: string
                    description: >-
                      At most 16 KiB UTF-8 per value, with no NUL or line
                      breaks.
                source:
                  oneOf:
                    - type: object
                      additionalProperties: false
                      required:
                        - kind
                        - image
                      properties:
                        kind:
                          const: oci
                        image:
                          type: string
                          maxLength: 512
                          pattern: '@sha256:[a-f0-9]{64}$'
                          description: >-
                            Exact OCI image reference; floating tags alone are
                            rejected.
                    - type: object
                      additionalProperties: false
                      required:
                        - kind
                        - installationId
                        - repositoryId
                        - repository
                        - branch
                        - commitSha
                        - dockerfilePath
                        - dockerfileSha256
                        - contextPath
                      properties:
                        kind:
                          const: github
                        installationId:
                          type: string
                          pattern: ^[1-9][0-9]{0,19}$
                        repositoryId:
                          type: string
                          pattern: ^[1-9][0-9]{0,19}$
                        repository:
                          type: string
                          format: uri
                          pattern: ^https://github.com/
                          description: >-
                            Exact repository authorized by the customer’s GitHub
                            installation.
                        branch:
                          type: string
                          maxLength: 128
                        commitSha:
                          type: string
                          pattern: ^[a-f0-9]{40}$
                        dockerfilePath:
                          type: string
                        dockerfileSha256:
                          type: string
                          pattern: ^[a-f0-9]{64}$
                        contextPath:
                          type: string
                          description: >-
                            Canonical relative repository path; no traversal or
                            symlinks.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
  /v1/instances/{id}/managed-docker/workloads/{workloadKey}:
    delete:
      summary: Delete one app while retaining its host and sibling apps
      operationId: delete_v1_instances_id_managed_docker_workloads_workloadKey
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: Command retained; work is not yet complete
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - workloadId
                  - commandId
                  - generation
                  - statusUrl
                properties:
                  success:
                    const: true
                  workloadId:
                    type: string
                  commandId:
                    type: string
                  generation:
                    type: integer
                  desiredStateHash:
                    type: string
                  statusUrl:
                    type: string
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid configuration or missing request key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Host not found in this tenant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Host, funding, quota, generation, deleted-key or live-operation
            conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Request exceeds 64 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Operation could not be retained; retry the same key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        Requires a qualified, funded managed Docker host in the token’s tenant.
        This does not enroll an arbitrary VM or accept a new product for sale.
        GET omits secret environment values and deleted workload tombstones;
        accessUrl is populated only from verified runtime and route evidence.
        Writes retain asynchronous commands; poll statusUrl until the exact
        workload is READY or the deleted workload disappears. Retry uncertain
        writes with the original Idempotency-Key. A deleted workload key cannot
        be reused.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: workloadKey
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9._:-]{8,128}$
  /v1/instances/{id}/metrics:
    get:
      summary: GET — Public Instance Metrics API
      operationId: get_v1_instances_id_metrics
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance Metrics API. Requires Bearer token with scope
        `instances:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/object-storage:
    get:
      summary: >-
        GET — Public Object Storage API (v1): the S3 endpoint, capacity and
        usage of an object storage plan (MASTER-PLAN 3.9).
      operationId: get_v1_instances_id_object_storage
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Object Storage API (v1): the S3 endpoint, capacity and
        usage of an object storage plan (MASTER-PLAN 3.9).. Requires Bearer
        token with scope `instances:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/instances/{id}/object-storage/buckets:
    get:
      summary: 'GET — Public Object Storage API (v1): buckets (MASTER-PLAN 3.9).'
      operationId: get_v1_instances_id_object_storage_buckets
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Object Storage API (v1): buckets (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:read`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
    post:
      summary: 'POST — Public Object Storage API (v1): buckets (MASTER-PLAN 3.9).'
      operationId: post_v1_instances_id_object_storage_buckets
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Object Storage API (v1): buckets (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/object-storage/buckets/{bucketId}:
    patch:
      summary: 'PATCH — Public Object Storage API (v1): one bucket (MASTER-PLAN 3.9).'
      operationId: patch_v1_instances_id_object_storage_buckets_bucketId
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: bucketId
          in: path
          required: true
          schema:
            type: string
      description: >-
        PATCH — Public Object Storage API (v1): one bucket (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
    delete:
      summary: 'DELETE — Public Object Storage API (v1): one bucket (MASTER-PLAN 3.9).'
      operationId: delete_v1_instances_id_object_storage_buckets_bucketId
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: bucketId
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public Object Storage API (v1): one bucket (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/object-storage/keys:
    get:
      summary: 'GET — Public Object Storage API (v1): access keys (MASTER-PLAN 3.9).'
      operationId: get_v1_instances_id_object_storage_keys
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Object Storage API (v1): access keys (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:read`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
    post:
      summary: 'POST — Public Object Storage API (v1): access keys (MASTER-PLAN 3.9).'
      operationId: post_v1_instances_id_object_storage_keys
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Object Storage API (v1): access keys (MASTER-PLAN 3.9)..
        Requires Bearer token with scope `instances:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/object-storage/keys/{keyId}:
    delete:
      summary: >-
        DELETE — Public Object Storage API (v1): one access key (MASTER-PLAN
        3.9).
      operationId: delete_v1_instances_id_object_storage_keys_keyId
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: keyId
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public Object Storage API (v1): one access key (MASTER-PLAN
        3.9).. Requires Bearer token with scope `instances:write`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/object-storage/keys/{keyId}/secret:
    post:
      summary: >-
        POST — Public Object Storage API (v1): an access key's secret
        (MASTER-PLAN 3.9).
      operationId: post_v1_instances_id_object_storage_keys_keyId_secret
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: keyId
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Object Storage API (v1): an access key's secret
        (MASTER-PLAN 3.9).. Requires Bearer token with scope `instances:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/port-forwards:
    get:
      summary: GET — Public Port Forwards API
      operationId: get_v1_instances_id_port_forwards
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  limit:
                    type: integer
                  forwards:
                    type: array
                    items:
                      type: object
                      properties:
                        serviceName:
                          type: string
                        externalPort:
                          type: integer
                        targetIp:
                          type: string
                          format: ipv4
                        targetPort:
                          type: integer
                        protocol:
                          type: string
                        address:
                          type: string
                          description: >-
                            host:port the public reaches this forward on: the
                            environment edge address and the external port
                        requestedActive:
                          type: boolean
                        active:
                          type: boolean
                        enabled:
                          type: boolean
                        publicationStatus:
                          type: string
                          enum:
                            - pending
                            - failed
                            - inconclusive
                            - published
                            - unverified
                        observedAt:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        commandId:
                          type:
                            - string
                            - 'null'
                        commandStatus:
                          type:
                            - string
                            - 'null'
                        errorCode:
                          type:
                            - string
                            - 'null'
                  allocatedGamePorts:
                    type: array
                    items:
                      $ref: '#/components/schemas/AllocatedGamePort'
                  entryPointsUrl:
                    type: string
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        Lists owned active intents. requestedActive is desired state;
        active/enabled require the exact current command and recorded local
        publication. publicationStatus distinguishes pending, failed,
        inconclusive, published and unverified. published/observedAt record
        local receiver publication, not a fresh probe or independent Azure
        reachability. Historical rows without matching command evidence remain
        unverified.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    post:
      summary: POST — Public Port Forwards API
      operationId: post_v1_instances_id_port_forwards
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: >-
            Provider command accepted; inspect its recorded outcome before
            claiming completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Queues an owned ProviderCommand. HTTP202 records intent, not completed
        delivery or removal. New generic ingress currently requires
        TCP30201–39999 within this account’s allocated block; the private guest
        target is derived from current ownership.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Set who may connect to a port forward
      operationId: patch_v1_instances_id_port_forwards
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '202':
          description: >-
            Provider command accepted; firewall.effectiveSources reads the list
            once the edge holds it.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            ERR_FORWARD_SOURCES_ENTRY_POINT: a server's own way in, limited
            where it is turned on. ERR_FORWARD_SOURCES_PATH: a port the edge
            cannot limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Sets who may connect: up to 20 IPv4 addresses or networks
        (allowedSources), or null for anyone. The Azure edge drops every other
        address before it reaches the environment. HTTP202 queues the command
        that applies the list; firewall.effectiveSources is the list the edge
        holds, so it changes once the command has applied it. HTTP200 means the
        forward already has the list.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    delete:
      summary: DELETE — Public Port Forwards API
      operationId: delete_v1_instances_id_port_forwards
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: >-
            Provider command accepted; inspect its recorded outcome before
            claiming completion.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Queues an owned ProviderCommand. HTTP202 records intent, not completed
        delivery or removal. New generic ingress currently requires
        TCP30201–39999 within this account’s allocated block; the private guest
        target is derived from current ownership.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/power:
    post:
      summary: POST — Public Instance Power API
      operationId: post_v1_instances_id_power
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:power
      responses:
        '202':
          description: >-
            Durable command accepted; follow task.links.self or Location for its
            recorded outcome.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              description: Concrete instance task monitor.
              schema:
                type: string
                pattern: ^/api/v1/instances/[^/]+/tasks/[^/]+$
          content:
            application/json:
              schema:
                type: object
                required:
                  - commandId
                  - commandStatus
                  - task
                properties:
                  commandId:
                    type: string
                  commandStatus:
                    type: string
                  replayed:
                    type: boolean
                  task:
                    $ref: '#/components/schemas/InstanceTaskReference'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:power
      description: >-
        HTTP202 includes a concrete task and Location for polling the retained
        command. Polling additionally requires instances:read; acceptance or
        replay alone is not success. The task state is authoritative, and a
        replay retains the same task identity.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/rebuild:
    post:
      summary: POST — Public Instance Rebuild API
      operationId: post_v1_instances_id_rebuild
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: >-
            Durable command accepted; follow task.links.self or Location for its
            recorded outcome.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              description: Concrete instance task monitor.
              schema:
                type: string
                pattern: ^/api/v1/instances/[^/]+/tasks/[^/]+$
          content:
            application/json:
              schema:
                type: object
                required:
                  - commandId
                  - commandStatus
                  - task
                properties:
                  commandId:
                    type: string
                  commandStatus:
                    type: string
                  replayed:
                    type: boolean
                  task:
                    $ref: '#/components/schemas/InstanceTaskReference'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        HTTP202 includes a concrete task and Location for polling the retained
        command. Polling additionally requires instances:read; acceptance or
        replay alone is not success. The task state is authoritative, and a
        replay retains the same task identity.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/reset-password:
    post:
      summary: POST — Public Instance Reset Password API
      operationId: post_v1_instances_id_reset_password
      tags:
        - instances
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Instance Reset Password API. Requires a valid Bearer
        personal access token (`Authorization: Bearer sau_...`). Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/resize:
    post:
      summary: 'POST — Public Instance API (v1): move a server to another plan.'
      operationId: post_v1_instances_id_resize
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:write
      responses:
        '202':
          description: >-
            Durable command accepted; follow task.links.self or Location for its
            recorded outcome.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Location:
              description: Concrete instance task monitor.
              schema:
                type: string
                pattern: ^/api/v1/instances/[^/]+/tasks/[^/]+$
          content:
            application/json:
              schema:
                type: object
                required:
                  - commandId
                  - commandStatus
                  - task
                properties:
                  commandId:
                    type: string
                  commandStatus:
                    type: string
                  replayed:
                    type: boolean
                  task:
                    $ref: '#/components/schemas/InstanceTaskReference'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      description: >-
        HTTP202 includes a concrete task and Location for polling the retained
        command. Polling additionally requires instances:read; acceptance or
        replay alone is not success. The task state is authoritative, and a
        replay retains the same task identity.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/snapshots:
    get:
      summary: GET — Public Instance Snapshot API
      operationId: get_v1_instances_id_snapshots
      tags:
        - instances
      security:
        - bearerAuth:
            - snapshots:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: snapshots:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance Snapshot API. Requires Bearer token with scope
        `snapshots:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public Instance Snapshot API
      operationId: post_v1_instances_id_snapshots
      tags:
        - instances
      security:
        - bearerAuth:
            - snapshots:write
      responses:
        '202':
          description: >-
            Provider command accepted; the work is pending until the command
            finishes
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Idempotency-Replayed:
              $ref: '#/components/headers/Idempotency-Replayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: A request with this Idempotency-Key is still being processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '422':
          description: Idempotency-Key reused with a different request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: snapshots:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/IdempotencyKey'
      description: >-
        POST — Public Instance Snapshot API. Requires Bearer token with scope
        `snapshots:write`. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/snapshots/{snapshotId}:
    delete:
      summary: 'DELETE — Public Instance Snapshot API (v1): one snapshot.'
      operationId: delete_v1_instances_id_snapshots_snapshotId
      tags:
        - instances
      security:
        - bearerAuth:
            - snapshots:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: snapshots:write
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: snapshotId
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public Instance Snapshot API (v1): one snapshot.. Requires
        Bearer token with scope `snapshots:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/snapshots/{snapshotId}/restore:
    post:
      summary: 'POST — Public Instance Snapshot API (v1): restore one snapshot.'
      operationId: post_v1_instances_id_snapshots_snapshotId_restore
      tags:
        - instances
      security:
        - bearerAuth:
            - snapshots:write
      responses:
        '202':
          description: >-
            Provider command accepted; the work is pending until the command
            finishes
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: snapshots:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: snapshotId
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Instance Snapshot API (v1): restore one snapshot..
        Requires Bearer token with scope `snapshots:write`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/instances/{id}/ssh-leases:
    get:
      summary: GET — Public Instance SSH Lease API
      operationId: get_v1_instances_id_ssh_leases
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance SSH Lease API. Requires Bearer token with scope
        `instances:exec`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public Instance SSH Lease API
      operationId: post_v1_instances_id_ssh_leases
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — Public Instance SSH Lease API. Requires Bearer token with scope
        `instances:exec`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    delete:
      summary: DELETE — Public Instance SSH Lease API
      operationId: delete_v1_instances_id_ssh_leases
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:exec
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:exec
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public Instance SSH Lease API. Requires Bearer token with scope
        `instances:exec`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/status:
    get:
      summary: GET — Public Instance Status API
      operationId: get_v1_instances_id_status
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Instance Status API. Requires Bearer token with scope
        `instances:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/instances/{id}/tasks:
    get:
      summary: "List an instance \x19s retained command tasks"
      operationId: get_v1_instances_id_tasks
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            ETag:
              description: Strong validator of this safe task representation.
              schema:
                type: string
                pattern: ^"[0-9a-f]{64}"$
            Cache-Control:
              schema:
                type: string
                const: private, no-store, no-transform
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceTaskCollection'
        '400':
          description: Invalid or out-of-range pagination (ERR_VALIDATION).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: "Instance or task is unavailable in the credential \x19s current scope."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Task lookup failed (ERR_INTERNAL); private error content is omitted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Requires instances:read and current authority over both the command and
        its parent instance, including live organization membership. The task
        reports the retained worker state, not a fresh provider probe.
        PENDING/PROCESSING are unfinished; SUCCEEDED and FAILED are recorded
        outcomes; INCONCLUSIVE means the outcome is unknown and needs operator
        review before another mutation. Payloads, results, raw provider errors
        and claim data are omitted. Responses are private and cannot be
        transformed.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            maximum: 2147483647
            default: 0
  /v1/instances/{id}/tasks/{taskId}:
    get:
      summary: Read a retained instance task
      operationId: get_v1_instances_id_tasks_taskId
      tags:
        - instances
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            ETag:
              description: Strong validator of this safe task representation.
              schema:
                type: string
                pattern: ^"[0-9a-f]{64}"$
            Cache-Control:
              schema:
                type: string
                const: private, no-store, no-transform
            Retry-After:
              description: >-
                Suggested poll delay in seconds, present only for
                PENDING/PROCESSING.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstanceTask'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: "Instance or task is unavailable in the credential \x19s current scope."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Task lookup failed (ERR_INTERNAL); private error content is omitted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        Requires instances:read and current authority over both the command and
        its parent instance, including live organization membership. The task
        reports the retained worker state, not a fresh provider probe.
        PENDING/PROCESSING are unfinished; SUCCEEDED and FAILED are recorded
        outcomes; INCONCLUSIVE means the outcome is unknown and needs operator
        review before another mutation. Payloads, results, raw provider errors
        and claim data are omitted. Responses are private and cannot be
        transformed.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: taskId
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/vpn:
    get:
      summary: >-
        List a server's VPN connections, what it supports and whether the caller
        may change them
      operationId: get_v1_instances_id_vpn
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
    post:
      summary: Put a VPN on a server
      operationId: post_v1_instances_id_vpn
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: Connection saved, being configured on the server
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection
                properties:
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: >-
            Invalid request (ERR_VALIDATION), or a network that overlaps the
            environment or another VPN (ERR_VPN_NETWORK_OVERLAP).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            This server does not support that protocol and role
            (ERR_VPN_UNAVAILABLE, with the reason), or a connection of that name
            or network exists (ERR_CONFLICT).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. Answers 202 with the
        connection CONFIGURING; the server is configured after the response.
        Poll GET /v1/instances/{id}/vpn/{connectionId} until it reads UP or
        ERROR.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - role
                - protocol
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                role:
                  type: string
                  enum:
                    - CLIENT
                    - SERVER
                  description: >-
                    CLIENT joins an existing network; SERVER hosts one for
                    devices and sites (WireGuard or OpenVPN).
                protocol:
                  type: string
                  enum:
                    - WIREGUARD
                    - OPENVPN
                    - IPSEC
                    - TAILSCALE
                    - ZEROTIER
                    - NETBIRD
                settings:
                  type: object
                  description: >-
                    Non-secret answers for the protocol and role. A refusal
                    names the field (ERR_VALIDATION).
                secrets:
                  type: object
                  writeOnly: true
                  description: >-
                    presharedKey (WireGuard client), profile with username and
                    password (OpenVPN client), psk (IPsec), authKey (Tailscale),
                    setupKey (NetBird). Sent to the server on stdin and never
                    stored.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/vpn/{connectionId}:
    get:
      summary: Read one VPN connection of a server
      operationId: get_v1_instances_id_vpn_connectionId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
    patch:
      summary: Change a VPN connection and apply it again
      operationId: patch_v1_instances_id_vpn_connectionId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '202':
          description: Change saved, being applied on the server
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection
                properties:
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. A secret left out stays
        as the server holds it. Answers 202; the change is applied after the
        response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                settings:
                  type: object
                  description: >-
                    Non-secret answers for the protocol and role. A refusal
                    names the field (ERR_VALIDATION).
                secrets:
                  type: object
                  writeOnly: true
                  description: >-
                    presharedKey (WireGuard client), profile with username and
                    password (OpenVPN client), psk (IPsec), authKey (Tailscale),
                    setupKey (NetBird). Sent to the server on stdin and never
                    stored.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
    delete:
      summary: Remove a VPN connection from its server
      operationId: delete_v1_instances_id_vpn_connectionId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The server did not confirm the removal (ERR_VPN_REMOVE_FAILED); the
            kept connection is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. When the server cannot
        confirm the removal the connection stays, in ERROR (502
        ERR_VPN_REMOVE_FAILED), so a VPN still configured there never disappears
        from the record.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
        - name: forget
          in: query
          required: false
          schema:
            type: string
            enum:
              - '1'
          description: >-
            Drop only the record, for a stopped or unreachable server; the VPN
            may still be configured there.
  /v1/instances/{id}/vpn/{connectionId}/diagnose:
    post:
      summary: Diagnose a VPN connection end to end
      operationId: post_v1_instances_id_vpn_connectionId_diagnose
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The platform's own
        view, then a read-only checklist the server runs (clock, software,
        service, interface, name resolution, reachability, handshake, routes,
        forwarding, firewall, a pending rollback, recent log lines). Changes
        nothing. Limited to 6 a minute.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/vpn/{connectionId}/peers:
    post:
      summary: Add a device or site to a VPN server this server hosts
      operationId: post_v1_instances_id_vpn_connectionId_peers
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '201':
          description: Peer added; material holds its one-time config
          content:
            application/json:
              schema:
                type: object
                required:
                  - peer
                  - material
                  - connection
                properties:
                  peer:
                    type: object
                  material:
                    type: object
                  connection:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The answer carries the
        new peer's config with its private key exactly once; the platform does
        not keep it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                kind:
                  type: string
                  enum:
                    - DEVICE
                    - SITE
                  default: DEVICE
                networks:
                  type: array
                  items:
                    type: string
                  maxItems: 16
                  description: >-
                    IPv4 networks behind a SITE in CIDR form; required for a
                    site, never 0.0.0.0/0.
                reach:
                  type: array
                  items:
                    type: string
                  maxItems: 16
                  description: >-
                    A DEVICE on a WireGuard server that shares the environment's
                    network: the IPv4 addresses or networks inside that network
                    it may reach (an address alone is one machine). The server
                    drops the rest. Empty: all the VPN shares.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/vpn/{connectionId}/peers/{peerId}:
    delete:
      summary: Revoke a device or site of a VPN server
      operationId: delete_v1_instances_id_vpn_connectionId_peers_peerId
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write (AUTH-1003), or a member without the Owner or
            Admin role (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. The server stops
        admitting the peer before the record says REVOKED; when the server
        cannot confirm, the peer stays ACTIVE and the answer says why.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
        - name: peerId
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/vpn/{connectionId}/status:
    post:
      summary: Read a VPN connection on its server now
      operationId: post_v1_instances_id_vpn_connectionId_status
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such server, connection or peer for this caller (ERR_NOT_FOUND);
            a server outside the caller's scope answers the same.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        The console uses the same handler. Reading and diagnosing take
        network:read and membership of the server's organization (or owning it
        personally); changing takes network:write and the Owner or Admin role
        there. An organization key stays inside its organization. Responses are
        not cached. Request bodies are limited to 96 KB. Runs the connection's
        status program over the platform's SSH and records what it answered.
        Changes nothing the customer configured.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: connectionId
          in: path
          required: true
          schema:
            type: string
  /v1/instances/{id}/website:
    get:
      summary: >-
        GET — Public Website API (v1): a server's website at its platform
        address, who may visit it, and for a Linux server the
      operationId: get_v1_instances_id_website
      tags:
        - instances
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — Public Website API (v1): a server's website at its platform
        address, who may visit it, and for a Linux server the. Requires Bearer
        token with scope `network:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    patch:
      summary: >-
        PATCH — Public Website API (v1): a server's website at its platform
        address, who may visit it, and for a Linux server the
      operationId: patch_v1_instances_id_website
      tags:
        - instances
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        PATCH — Public Website API (v1): a server's website at its platform
        address, who may visit it, and for a Linux server the. Requires Bearer
        token with scope `network:write`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/iot-chaos:
    get:
      summary: GET /v1/iot-chaos
      operationId: get_v1_iot_chaos
      tags:
        - iot-chaos
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/iot-chaos. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/iot-chaos
      operationId: post_v1_iot_chaos
      tags:
        - iot-chaos
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/iot-chaos. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/network/checkpoints:
    get:
      summary: GET — Network Checkpoints API
      operationId: get_v1_network_checkpoints
      tags:
        - network
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        GET — Network Checkpoints API. Requires Bearer token with scope
        `network:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Network Checkpoints API
      operationId: post_v1_network_checkpoints
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Network Checkpoints API. Requires Bearer token with scope
        `network:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/network/firewall:
    get:
      summary: List the environment firewall rules and their enforcement
      operationId: get_v1_network_firewall
      tags:
        - network
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - rules
                properties:
                  rules:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                  blocklistSummary:
                    type: object
                    properties:
                      totalEntries:
                        type: integer
                      activeBlockedCount:
                        type: integer
                      totalActiveEntries:
                        type: integer
                      returnedCount:
                        type: integer
                      truncated:
                        type: boolean
                      limit:
                        type: integer
                      offset:
                        type: integer
                      hint:
                        type:
                          - string
                          - 'null'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. Inbound traffic is denied unless a rule allows
        it. A write leaves the rule pending; the security pass enforces it
        within 15 minutes and the next GET shows the result. Only custom rules
        can change here; the baseline, port-forward and blocklist rules have
        their own writers (403 ERR_FORBIDDEN).
      parameters:
        - name: includeBlocklist
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Include full blocked-IP entries inline (omitted by default to keep
            responses compact).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
          description: Maximum blocked-IP entries to return when includeBlocklist=true.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Offset into blocked-IP entries when includeBlocklist=true.
    post:
      summary: Allow inbound traffic with a custom firewall rule
      operationId: post_v1_network_firewall
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '201':
          description: Rule saved, pending enforcement
          content:
            application/json:
              schema:
                type: object
                required:
                  - rule
                properties:
                  rule:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid rule (ERR_VALIDATION); the message names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write, or the rule is managed by the platform
            (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. Inbound traffic is denied unless a rule allows
        it. A write leaves the rule pending; the security pass enforces it
        within 15 minutes and the next GET shows the result. Only custom rules
        can change here; the baseline, port-forward and blocklist rules have
        their own writers (403 ERR_FORBIDDEN).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - protocol
              properties:
                protocol:
                  type: string
                  enum:
                    - tcp
                    - udp
                    - icmp
                ports:
                  type: string
                  description: >-
                    A port, a list or a range, like "443", "80,443" or
                    "27015-27020". Omit for icmp.
                sources:
                  oneOf:
                    - type: array
                      items:
                        type: string
                      maxItems: 64
                    - type: string
                  description: >-
                    Public IPv4 addresses or CIDRs, or "anywhere" (the default).
                    Private addresses are refused: the environment's own servers
                    are already allowed.
                description:
                  type: string
                  maxLength: 120
    patch:
      summary: Turn a custom firewall rule on or off
      operationId: patch_v1_network_firewall
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid rule (ERR_VALIDATION); the message names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write, or the rule is managed by the platform
            (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. Inbound traffic is denied unless a rule allows
        it. A write leaves the rule pending; the security pass enforces it
        within 15 minutes and the next GET shows the result. Only custom rules
        can change here; the baseline, port-forward and blocklist rules have
        their own writers (403 ERR_FORBIDDEN).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
                - isEnabled
              properties:
                id:
                  type: string
                isEnabled:
                  type: boolean
    delete:
      summary: Remove a custom firewall rule
      operationId: delete_v1_network_firewall
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Invalid rule (ERR_VALIDATION); the message names the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Missing network:write, or the rule is managed by the platform
            (ERR_FORBIDDEN).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. Inbound traffic is denied unless a rule allows
        it. A write leaves the rule pending; the security pass enforces it
        within 15 minutes and the next GET shows the result. Only custom rules
        can change here; the baseline, port-forward and blocklist rules have
        their own writers (403 ERR_FORBIDDEN).
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
          description: The rule's id from the list.
  /v1/network/tunnels:
    get:
      summary: List site-to-site tunnels and the servers that can run one
      operationId: get_v1_network_tunnels
      tags:
        - network
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. A tunnel runs on one running Linux server of the
        environment, which generates and keeps its own key. With peerEndpoint
        the server dials the peer; without it the peer dials in from behind NAT
        through the tunnel's UDP port, published on the environment edge and
        withdrawn with the tunnel. Status values are what the server last
        answered.
    post:
      summary: Create a site-to-site WireGuard tunnel on a Linux server
      operationId: post_v1_network_tunnels
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '201':
          description: Tunnel configured on the server; apply tunnel.peerConfig on the peer
          content:
            application/json:
              schema:
                type: object
                required:
                  - tunnel
                properties:
                  tunnel:
                    type: object
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
        '400':
          description: Invalid tunnel (ERR_VALIDATION), or the server runs Windows.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The server could not be configured, or the dial-in port could not be
            published; the failed tunnel row is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. A tunnel runs on one running Linux server of the
        environment, which generates and keeps its own key. With peerEndpoint
        the server dials the peer; without it the peer dials in from behind NAT
        through the tunnel's UDP port, published on the environment edge and
        withdrawn with the tunnel. Status values are what the server last
        answered.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - serverId
                - peerPublicKey
                - remoteNetworks
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                serverId:
                  type: string
                  description: A server from GET servers.
                peerPublicKey:
                  type: string
                  minLength: 44
                  maxLength: 44
                  description: The peer's WireGuard public key (44 base64 characters).
                peerEndpoint:
                  type: string
                  description: >-
                    host:port the server dials, like vpn.example.com:51820. Omit
                    when the peer dials in.
                remoteNetworks:
                  oneOf:
                    - type: array
                      items:
                        type: string
                      minItems: 1
                      maxItems: 16
                    - type: string
                  description: >-
                    IPv4 networks behind the peer in CIDR form (a list, or one
                    string separated by commas or spaces); never 0.0.0.0/0.
    delete:
      summary: Remove a site-to-site tunnel
      operationId: delete_v1_network_tunnels
      tags:
        - network
      security:
        - bearerAuth:
            - network:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:write
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. A tunnel runs on one running Linux server of the
        environment, which generates and keeps its own key. With peerEndpoint
        the server dials the peer; without it the peer dials in from behind NAT
        through the tunnel's UDP port, published on the environment edge and
        withdrawn with the tunnel. Status values are what the server last
        answered.
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
          description: The tunnel's id from the list.
  /v1/network/tunnels/{id}/status:
    post:
      summary: Read one site-to-site tunnel on its server now
      operationId: post_v1_network_tunnels_id_status
      tags:
        - network
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No environment for this account, or no such rule, tunnel or server
            in it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Organization token (ERR_ENVIRONMENT_TENANT_SCOPE), or the
            environment or server is not ready for this change; inspect the
            returned code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '502':
          description: >-
            The server could not be reached; the last reading is returned with
            read=false.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). The
        console uses the same handler. Responses are not cached. Request bodies
        are limited to 32 KiB. Runs wg show on the server over the platform's
        pinned SSH and records the reading: state, latest handshake, bytes each
        way and the peer address seen. It changes nothing on the tunnel.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/networks:
    get:
      summary: 'Read the environment private network: its range, gateway and servers'
      operationId: get_v1_networks
      tags:
        - networks
      security:
        - bearerAuth:
            - network:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - networks
                  - count
                  - limit
                properties:
                  networks:
                    type: array
                    maxItems: 1
                    items:
                      type: object
                      required:
                        - id
                        - name
                        - cidr
                        - gateway
                        - status
                        - servers
                      properties:
                        id:
                          type: string
                          description: The environment id.
                        name:
                          type: string
                        cidr:
                          type: string
                        gateway:
                          type: string
                        status:
                          type: string
                        servers:
                          type: array
                          items:
                            type: object
                            required:
                              - id
                              - name
                              - privateIp
                              - status
                            properties:
                              id:
                                type: string
                              name:
                                type: string
                              privateIp:
                                type: string
                              status:
                                type: string
                  count:
                    type: integer
                  limit:
                    type: integer
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Organization token (ERR_ENVIRONMENT_TENANT_SCOPE).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: network:read
      description: >-
        Personal accounts only: the environment belongs to one, and an
        organization token receives ERR_ENVIRONMENT_TENANT_SCOPE (409). Returns
        the caller's environment network from the environment record: its range
        (cidr), its gateway and the private address of each server in it. An
        account with no live environment gets an empty list. Read-only: the
        network is made with the environment; its firewall rules are at GET
        /v1/network/firewall.
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          description: How many servers are listed.
  /v1/oauth/register:
    post:
      summary: POST — Dynamic Client Registration (RFC 7591) for customer agents.
      operationId: post_v1_oauth_register
      tags:
        - oauth
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Dynamic Client Registration (RFC 7591) for customer agents..
        Public zero-auth endpoint — no Bearer token required. Returns standard
        RFC RateLimit and X-RateLimit headers on every response and a typed
        Error object on 4xx/5xx failures.
  /v1/oauth/token:
    post:
      summary: POST — OAuth 2.1 token endpoint for customer agents.
      operationId: post_v1_oauth_token
      tags:
        - oauth
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — OAuth 2.1 token endpoint for customer agents.. Public zero-auth
        endpoint — no Bearer token required. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/oauth/userinfo:
    get:
      summary: GET /v1/oauth/userinfo
      operationId: get_v1_oauth_userinfo
      tags:
        - oauth
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/oauth/userinfo. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST /v1/oauth/userinfo
      operationId: post_v1_oauth_userinfo
      tags:
        - oauth
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/oauth/userinfo. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/openapi:
    get:
      summary: GET — Public OpenAPI spec for the v1 API.
      operationId: get_v1_openapi
      tags:
        - openapi
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Public OpenAPI spec for the v1 API.. Public zero-auth endpoint —
        no Bearer token required. Returns standard RFC RateLimit and X-RateLimit
        headers on every response and a typed Error object on 4xx/5xx failures.
  /v1/orders:
    get:
      summary: GET /v1/orders
      operationId: get_v1_orders
      tags:
        - orders
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - orders
                  - total
                  - limit
                  - offset
                properties:
                  orders:
                    type: array
                    items:
                      $ref: '#/components/schemas/OrderRead'
                  total:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        Read only orders owned by the token holder; organization tokens
        additionally require the matching organization. Delivered instance IDs
        link to their status and access endpoints. Raw purchase secrets and
        internal cancellation tokens are omitted.
      parameters:
        - $ref: '#/components/parameters/limitParam'
        - $ref: '#/components/parameters/offsetParam'
    post:
      summary: Purchase and deploy one configured catalog product
      operationId: post_v1_orders
      tags:
        - orders
      security:
        - bearerAuth:
            - billing:write
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                properties:
                  orderId:
                    type: string
                  instanceId:
                    type: string
                  checkoutUrl:
                    type:
                      - string
                      - 'null'
                    format: uri
                  requiresConfirmation:
                    type: boolean
                  replayed:
                    type: boolean
        '400':
          description: >-
            Invalid body, missing attempt key, or current legal acceptance
            required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient funding or spending limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Purchase configuration, capacity, acceptance or idempotency conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '503':
          description: Payment, provisioning or catalog authority temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scopes:
        - billing:write
        - instances:write
      description: >-
        Shares dashboard checkout pricing, current legal acceptance, funding and
        provisioning. Read /v1/catalog checkout.legalDocuments first. Set
        legalAcceptance.accepted=true only with account-holder authorization.
        Confirmed funded orders may complete immediately; card payment returns
        checkoutUrl. Poll /v1/orders/{id} with orderId. Reuse the same
        Idempotency-Key and purchase body on retries; confirm may change from
        false to true. Changed purchase parameters return 409. Organization keys
        are bound to their own organization. A Linux server can be ordered at
        any size within the limits /v1/catalog publishes: send
        item.configuration.size as <vcpu>vcpu-<ramGb>gb-<storageGb>gb (for
        example 10vcpu-22gb-300gb) with any linux-* product; the price is the
        cheapest plan plus add-ons that covers it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreate'
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,199}$
  /v1/orders/{id}:
    get:
      summary: GET /v1/orders/{id}
      operationId: get_v1_orders_id
      tags:
        - orders
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderRead'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Order not found in the token scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        Read only orders owned by the token holder; organization tokens
        additionally require the matching organization. Delivered instance IDs
        link to their status and access endpoints. Raw purchase secrets and
        internal cancellation tokens are omitted.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
  /v1/preview-environments:
    get:
      summary: GET — Preview Environments API - GET /api/v1/preview-environments
      operationId: get_v1_preview_environments
      tags:
        - preview-environments
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        GET — Preview Environments API - GET /api/v1/preview-environments.
        Requires Bearer token with scope `instances:read`. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/pricing:
    get:
      summary: >-
        GET — Versioned alias of the public pricing contract
        (sau-public-pricing-v1).
      operationId: get_v1_pricing
      tags:
        - pricing
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Versioned alias of the public pricing contract
        (sau-public-pricing-v1).. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/products:
    get:
      summary: 'GET — Public catalog: /api/v1/products'
      operationId: get_v1_products
      tags:
        - products
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Public catalog: /api/v1/products. Requires a valid Bearer personal
        access token (`Authorization: Bearer sau_...`). Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/recommend:
    get:
      summary: GET — Recommend Live Plans & Instant Apps for a Workload
      operationId: get_v1_recommend
      tags:
        - recommend
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Recommend Live Plans & Instant Apps for a Workload. Public
        zero-auth endpoint — no Bearer token required. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/recovery-vault:
    get:
      summary: GET /v1/recovery-vault
      operationId: get_v1_recovery_vault
      tags:
        - recovery-vault
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/recovery-vault. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/recovery-vault
      operationId: post_v1_recovery_vault
      tags:
        - recovery-vault
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/recovery-vault. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/reseller/customers:
    get:
      summary: GET — Reseller Customers API
      operationId: get_v1_reseller_customers
      tags:
        - reseller
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        GET — Reseller Customers API. Requires Bearer token with scope
        `billing:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Reseller Customers API
      operationId: post_v1_reseller_customers
      tags:
        - reseller
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Reseller Customers API. Requires Bearer token with scope
        `billing:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/reservations:
    get:
      summary: GET — Machine Reservations API
      operationId: get_v1_reservations
      tags:
        - reservations
      security:
        - bearerAuth:
            - billing:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:read
      description: >-
        GET — Machine Reservations API. Requires Bearer token with scope
        `billing:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Machine Reservations API
      operationId: post_v1_reservations
      tags:
        - reservations
      security:
        - bearerAuth:
            - billing:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
            Idempotency-Replayed:
              $ref: '#/components/headers/Idempotency-Replayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: A request with this Idempotency-Key is still being processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '422':
          description: Idempotency-Key reused with a different request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Idempotency-Key:
              $ref: '#/components/headers/Idempotency-Key'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: billing:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      description: >-
        POST — Machine Reservations API. Requires Bearer token with scope
        `billing:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/reservations/plans:
    get:
      summary: GET — Reservation Plans - GET /api/v1/reservations/plans
      operationId: get_v1_reservations_plans
      tags:
        - reservations
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Reservation Plans - GET /api/v1/reservations/plans. Public
        zero-auth endpoint — no Bearer token required. Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/resource-manager:
    get:
      summary: >-
        GET — SAU Resource Manager, Portal Settings, Groups, Tags, Locks, RBAC &
        Diagnostics API
      operationId: get_v1_resource_manager
      tags:
        - resource-manager
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET — SAU Resource Manager, Portal Settings, Groups, Tags, Locks, RBAC &
        Diagnostics API. Requires Bearer token with scope `cloud:read`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
    post:
      summary: >-
        POST — SAU Resource Manager, Portal Settings, Groups, Tags, Locks, RBAC
        & Diagnostics API
      operationId: post_v1_resource_manager
      tags:
        - resource-manager
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — SAU Resource Manager, Portal Settings, Groups, Tags, Locks, RBAC
        & Diagnostics API. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/scim/v2/Groups:
    get:
      summary: GET /v1/scim/v2/Groups
      operationId: get_v1_scim_v2_Groups
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/scim/v2/Groups. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST /v1/scim/v2/Groups
      operationId: post_v1_scim_v2_Groups
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/scim/v2/Groups. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/scim/v2/ServiceProviderConfig:
    get:
      summary: GET /v1/scim/v2/ServiceProviderConfig
      operationId: get_v1_scim_v2_ServiceProviderConfig
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/scim/v2/ServiceProviderConfig. Requires a valid Bearer personal
        access token (`Authorization: Bearer sau_...`). Returns standard RFC
        RateLimit and X-RateLimit headers on every response and a typed Error
        object on 4xx/5xx failures.
  /v1/scim/v2/Users:
    get:
      summary: GET /v1/scim/v2/Users
      operationId: get_v1_scim_v2_Users
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/scim/v2/Users. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST /v1/scim/v2/Users
      operationId: post_v1_scim_v2_Users
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/scim/v2/Users. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/scim/v2/Users/{id}:
    get:
      summary: GET /v1/scim/v2/Users/{id}
      operationId: get_v1_scim_v2_Users_id
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET /v1/scim/v2/Users/{id}. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    patch:
      summary: PATCH /v1/scim/v2/Users/{id}
      operationId: patch_v1_scim_v2_Users_id
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        PATCH /v1/scim/v2/Users/{id}. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    delete:
      summary: DELETE /v1/scim/v2/Users/{id}
      operationId: delete_v1_scim_v2_Users_id
      tags:
        - scim
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE /v1/scim/v2/Users/{id}. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/sentinel:
    get:
      summary: GET — SAU Cloud SIEM, Threat Hunting & SOAR Playbooks API
      operationId: get_v1_sentinel
      tags:
        - sentinel
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET — SAU Cloud SIEM, Threat Hunting & SOAR Playbooks API. Requires
        Bearer token with scope `cloud:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: POST — SAU Cloud SIEM, Threat Hunting & SOAR Playbooks API
      operationId: post_v1_sentinel
      tags:
        - sentinel
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — SAU Cloud SIEM, Threat Hunting & SOAR Playbooks API. Requires
        Bearer token with scope `cloud:write`. Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/sentinel/ingest:
    post:
      summary: POST /v1/sentinel/ingest
      operationId: post_v1_sentinel_ingest
      tags:
        - sentinel
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/sentinel/ingest. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/serverless-compute:
    get:
      summary: GET /v1/serverless-compute
      operationId: get_v1_serverless_compute
      tags:
        - serverless-compute
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/serverless-compute. Requires Bearer token with scope
        `cloud:read`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/serverless-compute
      operationId: post_v1_serverless_compute
      tags:
        - serverless-compute
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/serverless-compute. Requires a valid Bearer personal access
        token (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit
        and X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/service-bus:
    get:
      summary: GET /v1/service-bus
      operationId: get_v1_service_bus
      tags:
        - service-bus
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      description: >-
        GET /v1/service-bus. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/service-bus
      operationId: post_v1_service_bus
      tags:
        - service-bus
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/service-bus. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/ssh-keys:
    get:
      summary: GET — Public SSH Keys API
      operationId: get_v1_ssh_keys
      tags:
        - ssh-keys
      security:
        - bearerAuth:
            - ssh-keys:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: ssh-keys:read
      description: >-
        GET — Public SSH Keys API. Requires Bearer token with scope
        `ssh-keys:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public SSH Keys API
      operationId: post_v1_ssh_keys
      tags:
        - ssh-keys
      security:
        - bearerAuth:
            - ssh-keys:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: ssh-keys:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public SSH Keys API. Requires Bearer token with scope
        `ssh-keys:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/ssh-keys/{id}:
    patch:
      summary: PATCH — Public SSH Key Detail API
      operationId: patch_v1_ssh_keys_id
      tags:
        - ssh-keys
      security:
        - bearerAuth:
            - ssh-keys:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: ssh-keys:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        PATCH — Public SSH Key Detail API. Requires Bearer token with scope
        `ssh-keys:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    delete:
      summary: DELETE — Public SSH Key Detail API
      operationId: delete_v1_ssh_keys_id
      tags:
        - ssh-keys
      security:
        - bearerAuth:
            - ssh-keys:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: ssh-keys:write
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — Public SSH Key Detail API. Requires Bearer token with scope
        `ssh-keys:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/storage:
    get:
      summary: >-
        GET — Public Storage API (v1) — metadata operations for a customer's
        environment
      operationId: get_v1_storage
      tags:
        - storage
      security:
        - bearerAuth:
            - storage:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: storage:read
      description: >-
        GET — Public Storage API (v1) — metadata operations for a customer's
        environment. Requires Bearer token with scope `storage:read`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
    post:
      summary: >-
        POST — Public Storage API (v1) — metadata operations for a customer's
        environment
      operationId: post_v1_storage
      tags:
        - storage
      security:
        - bearerAuth:
            - storage:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: storage:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public Storage API (v1) — metadata operations for a customer's
        environment. Requires Bearer token with scope `storage:write`. Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
  /v1/storage/download:
    get:
      summary: GET — Public Storage API (v1) — streaming download.
      operationId: get_v1_storage_download
      tags:
        - storage
      security:
        - bearerAuth:
            - storage:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: storage:read
      description: >-
        GET — Public Storage API (v1) — streaming download.. Requires Bearer
        token with scope `storage:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/storage/upload:
    post:
      summary: POST — Public Storage API (v1) — streaming upload.
      operationId: post_v1_storage_upload
      tags:
        - storage
      security:
        - bearerAuth:
            - storage:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: storage:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public Storage API (v1) — streaming upload.. Requires Bearer
        token with scope `storage:write`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/tenant-environment:
    get:
      summary: GET /v1/tenant-environment
      operationId: get_v1_tenant_environment
      tags:
        - tenant-environment
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/tenant-environment. Requires Bearer token with scope
        `cloud:read`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
  /v1/tenant-environment/{domain}:
    get:
      summary: GET /v1/tenant-environment/{domain}
      operationId: get_v1_tenant_environment_domain
      tags:
        - tenant-environment
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET /v1/tenant-environment/{domain}. Requires Bearer token with scope
        `cloud:read`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/tenant-environment/{domain}
      operationId: post_v1_tenant_environment_domain
      tags:
        - tenant-environment
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST /v1/tenant-environment/{domain}. Requires Bearer token with scope
        `cloud:write`. Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
  /v1/terraform/state/{workspace}:
    get:
      summary: GET — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API
      operationId: get_v1_terraform_state_workspace
      tags:
        - terraform
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
      description: >-
        GET — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API.
        Requires a valid Bearer personal access token (`Authorization: Bearer
        sau_...`). Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API
      operationId: post_v1_terraform_state_workspace
      tags:
        - terraform
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
      description: >-
        POST — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API.
        Requires a valid Bearer personal access token (`Authorization: Bearer
        sau_...`). Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
    delete:
      summary: DELETE — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API
      operationId: delete_v1_terraform_state_workspace
      tags:
        - terraform
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
      description: >-
        DELETE — HashiCorp Terraform & OpenTofu Standard HTTP State Backend API.
        Requires a valid Bearer personal access token (`Authorization: Bearer
        sau_...`). Returns standard RFC RateLimit and X-RateLimit headers on
        every response and a typed Error object on 4xx/5xx failures.
  /v1/toolbox:
    get:
      summary: 'GET — Public Customer API (v1): Operator Toolbox'
      operationId: get_v1_toolbox
      tags:
        - toolbox
      security:
        - bearerAuth:
            - account:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: account:read
      description: >-
        GET — Public Customer API (v1): Operator Toolbox. Requires Bearer token
        with scope `account:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    post:
      summary: 'POST — Public Customer API (v1): Operator Toolbox'
      operationId: post_v1_toolbox
      tags:
        - toolbox
      security:
        - bearerAuth:
            - account:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: account:read
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public Customer API (v1): Operator Toolbox. Requires Bearer token
        with scope `account:read`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    put:
      summary: 'PUT — Public Customer API (v1): Operator Toolbox'
      operationId: put_v1_toolbox
      tags:
        - toolbox
      security:
        - bearerAuth:
            - webhooks:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: webhooks:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        PUT — Public Customer API (v1): Operator Toolbox. Requires Bearer token
        with scope `webhooks:write`. Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/updates:
    get:
      summary: GET /v1/updates
      operationId: get_v1_updates
      tags:
        - updates
      security:
        - bearerAuth:
            - instances:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:read
      description: >-
        GET /v1/updates. Requires Bearer token with scope `instances:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/updates
      operationId: post_v1_updates
      tags:
        - updates
      security:
        - bearerAuth:
            - instances:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: instances:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/updates. Requires Bearer token with scope `instances:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/usage:
    get:
      summary: GET — Public Usage API
      operationId: get_v1_usage
      tags:
        - usage
      security:
        - bearerAuth:
            - usage:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: usage:read
      description: >-
        GET — Public Usage API. Requires Bearer token with scope `usage:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/vault-dump:
    get:
      summary: 'GET — Public Canary Deception Trap: /api/v1/vault-dump'
      operationId: get_v1_vault_dump
      tags:
        - vault-dump
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET — Public Canary Deception Trap: /api/v1/vault-dump. Requires a valid
        Bearer personal access token (`Authorization: Bearer sau_...`). Returns
        standard RFC RateLimit and X-RateLimit headers on every response and a
        typed Error object on 4xx/5xx failures.
    post:
      summary: 'POST — Public Canary Deception Trap: /api/v1/vault-dump'
      operationId: post_v1_vault_dump
      tags:
        - vault-dump
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST — Public Canary Deception Trap: /api/v1/vault-dump. Requires a
        valid Bearer personal access token (`Authorization: Bearer sau_...`).
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/vault/secrets:
    get:
      summary: GET /v1/vault/secrets
      operationId: get_v1_vault_secrets
      tags:
        - vault
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/vault/secrets. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/vault/secrets
      operationId: post_v1_vault_secrets
      tags:
        - vault
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/vault/secrets. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
    put:
      summary: PUT /v1/vault/secrets
      operationId: put_v1_vault_secrets
      tags:
        - vault
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        PUT /v1/vault/secrets. Requires a valid Bearer personal access token
        (`Authorization: Bearer sau_...`). Returns standard RFC RateLimit and
        X-RateLimit headers on every response and a typed Error object on
        4xx/5xx failures.
  /v1/version:
    get:
      summary: GET /v1/version
      operationId: get_v1_version
      tags:
        - version
      security: []
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: >-
        GET /v1/version. Public zero-auth endpoint — no Bearer token required.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
  /v1/webhooks:
    get:
      summary: GET — Public Webhooks API
      operationId: get_v1_webhooks
      tags:
        - webhooks
      security:
        - bearerAuth:
            - webhooks:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - count
                  - limit
                  - webhooks
                properties:
                  count:
                    type: integer
                    minimum: 0
                  limit:
                    type: integer
                    minimum: 1
                    maximum: 100
                  webhooks:
                    type: array
                    items:
                      $ref: '#/components/schemas/Webhook'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: webhooks:read
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum endpoints to return (1–100). Defaults to 50.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      description: >-
        GET — Public Webhooks API. Requires Bearer token with scope
        `webhooks:read`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST — Public Webhooks API
      operationId: post_v1_webhooks
      tags:
        - webhooks
      security:
        - bearerAuth:
            - webhooks:write
      responses:
        '201':
          description: >-
            Webhook created; a generated signing secret is returned once when
            the request omitted one
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - webhook
                properties:
                  success:
                    type: boolean
                    const: true
                  webhook:
                    allOf:
                      - $ref: '#/components/schemas/Webhook'
                      - type: object
                        properties:
                          secret:
                            type: string
                            minLength: 1
                            readOnly: true
        '400':
          description: Invalid body, URL, or event name
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Personal webhook endpoint limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: webhooks:write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreate'
      description: >-
        POST — Public Webhooks API. Requires Bearer token with scope
        `webhooks:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
    delete:
      summary: DELETE — Public Webhooks API
      operationId: delete_v1_webhooks
      tags:
        - webhooks
      security:
        - bearerAuth:
            - webhooks:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '400':
          description: Missing id query parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Personal webhook endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: webhooks:write
      parameters:
        - name: id
          in: query
          required: true
          description: Personal webhook endpoint ID
          schema:
            type: string
            minLength: 1
      description: >-
        DELETE — Public Webhooks API. Requires Bearer token with scope
        `webhooks:write`. Returns standard RFC RateLimit and X-RateLimit headers
        on every response and a typed Error object on 4xx/5xx failures.
  /v1/workflows:
    get:
      summary: GET /v1/workflows
      operationId: get_v1_workflows
      tags:
        - workflows
      security:
        - bearerAuth:
            - cloud:read
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:read
      description: >-
        GET /v1/workflows. Requires Bearer token with scope `cloud:read`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
    post:
      summary: POST /v1/workflows
      operationId: post_v1_workflows
      tags:
        - workflows
      security:
        - bearerAuth:
            - cloud:write
      responses:
        '200':
          description: Success
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericSuccessResponse'
        '401':
          description: Missing/invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '500':
          description: Internal server error
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-required-scope: cloud:write
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      description: >-
        POST /v1/workflows. Requires Bearer token with scope `cloud:write`.
        Returns standard RFC RateLimit and X-RateLimit headers on every response
        and a typed Error object on 4xx/5xx failures.
