openapi: 3.1.0
info:
  title: Open Enterprise Runtime
  description: Organization-scoped identity, provisioning, administration, and portable permissions.
    Required provider capabilities determine resource semantics.
  contact:
    name: Juha Kukkonen
    email: juha7kukkonen@gmail.com
  license:
    name: MIT OR Apache-2.0
    identifier: MIT OR Apache-2.0
  version: 0.6.0
paths:
  /healthz:
    get:
      operationId: healthz
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Health"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /operator/entry:
    get:
      operationId: operator_browser_exchange_entry
      parameters:
        - name: code
          in: query
          required: true
          schema:
            type: string
      responses:
        "303":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /operator/session:
    get:
      operationId: operator_browser_session
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorContext"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
    delete:
      operationId: operator_browser_logout
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /readyz:
    get:
      operationId: readyz
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Health"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /saml/{org}/acs:
    post:
      operationId: saml_acs
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: string
        required: true
      responses:
        "303":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /saml/{org}/finish:
    get:
      operationId: saml_finish
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: code
          in: query
          required: true
          schema:
            type: string
      responses:
        "303":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /saml/{org}/metadata:
    get:
      operationId: saml_metadata
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: query
          required: false
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/samlmetadata+xml:
              schema:
                type: string
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /scim/v2/{directory}/Bulk:
    post:
      operationId: scim_bulk
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/scim+json:
            schema:
              $ref: "#/components/schemas/BulkRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
  /scim/v2/{directory}/{kind}:
    get:
      operationId: list
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          description: Users, Groups, ServiceProviderConfig, Schemas, or ResourceTypes
          required: true
          schema:
            type: string
        - name: filter
          in: query
          required: false
          schema:
            type: string
        - name: startIndex
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: count
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
    post:
      operationId: create
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/scim+json:
            schema: {}
        required: true
      responses:
        "201":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
  /scim/v2/{directory}/{kind}/{id}:
    get:
      operationId: get
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
    put:
      operationId: replace
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/scim+json:
            schema: {}
        required: true
      responses:
        "200":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
    delete:
      operationId: delete
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: Directory resource deleted
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
    patch:
      operationId: patch
      parameters:
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: kind
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/scim+json:
            schema: {}
        required: true
      responses:
        "200":
          description: ""
          content:
            application/scim+json:
              schema: {}
        "400":
          description: Invalid request
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "401":
          description: Authentication required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "403":
          description: Forbidden
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "404":
          description: Not found
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "409":
          description: Conflict
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "413":
          description: Request too large
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "500":
          description: Internal error
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/scim+json:
              schema:
                $ref: "#/components/schemas/ScimErrorDocument"
  /ssf/v1/events/{receiver}:
    post:
      operationId: receive
      parameters:
        - name: receiver
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/secevent+jwt:
            schema:
              type: string
        required: true
      responses:
        "202":
          description: Security event validated and durably accepted
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SetErrorDocument"
      security: []
  /v1/access/evaluate:
    post:
      operationId: evaluate
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AccessRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccessDecision"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/access/evaluations:
    post:
      operationId: batch
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/BatchRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/AccessDecision"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/access/search:
    post:
      operationId: search
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AccessSearch"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccessSearchPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/account/entries:
    post:
      summary: |-
        Creates a single-use link that opens the account security pages for the session's user.
        The caller authenticates with the user's runtime session credential.
      operationId: create_account_entry
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AccountEntryRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccountEntry"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/callback:
    get:
      operationId: administration_callback
      parameters:
        - name: code
          in: query
          required: false
          schema:
            type: string
        - name: state
          in: query
          required: true
          schema:
            type: string
        - name: error
          in: query
          required: false
          schema:
            type: string
        - name: iss
          in: query
          required: false
          schema:
            type: string
      responses:
        "303":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /v1/administration/callback/{organization}:
    get:
      summary: Connection-test callback for organizations whose customer-run OIDC issuer has its own
        redirect URI.
      operationId: administration_organization_callback
      parameters:
        - name: organization
          in: path
          required: true
          schema:
            type: string
        - name: code
          in: query
          required: false
          schema:
            type: string
        - name: state
          in: query
          required: true
          schema:
            type: string
        - name: error
          in: query
          required: false
          schema:
            type: string
        - name: iss
          in: query
          required: false
          schema:
            type: string
      responses:
        "303":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /v1/administration/login-route:
    post:
      operationId: administration_login_route
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DomainRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                oneOf:
                  - type: "null"
                  - $ref: "#/components/schemas/LoginRoute"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/audit:
    get:
      operationId: administration_audit
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: actor
          in: query
          required: false
          schema:
            type: string
        - name: action
          in: query
          required: false
          schema:
            type: string
        - name: resource_type
          in: query
          required: false
          schema:
            type: string
        - name: resource_id
          in: query
          required: false
          schema:
            type: string
        - name: since
          in: query
          required: false
          schema:
            type: string
        - name: until
          in: query
          required: false
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuditPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/audit/export:
    get:
      operationId: administration_export
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: actor
          in: query
          required: false
          schema:
            type: string
        - name: action
          in: query
          required: false
          schema:
            type: string
        - name: resource_type
          in: query
          required: false
          schema:
            type: string
        - name: resource_id
          in: query
          required: false
          schema:
            type: string
        - name: since
          in: query
          required: false
          schema:
            type: string
        - name: until
          in: query
          required: false
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuditExportPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration:
    get:
      operationId: administration_configuration
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConfigurationOverview"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/migrate:
    post:
      operationId: administration_migrate
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConfigurationVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/recover:
    post:
      operationId: administration_recover
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConfigurationVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/versions:
    post:
      operationId: administration_draft
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ConfigurationDraft"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConfigurationVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/versions/{version}/activate:
    post:
      operationId: administration_activate
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ActivateConfiguration"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConfigurationVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/versions/{version}/test:
    post:
      operationId: administration_test_connection
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConnectionTestStarted"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/configuration/versions/{version}/validate:
    post:
      operationId: administration_validate
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                oneOf:
                  - type: "null"
                  - $ref: "#/components/schemas/ConnectionInspection"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/diagnostics:
    post:
      operationId: administration_diagnostics
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DiagnosticRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccessExplanation"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/directories:
    get:
      operationId: administration_directories
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/DirectoryAdministration"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    put:
      operationId: administration_directory
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DirectoryConfiguration"
        required: true
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/directories/{directory}/credentials:
    post:
      operationId: administration_credential
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: directory
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateDirectoryCredential"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedDirectoryCredential"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/directories/{directory}/credentials/{credential}:
    delete:
      operationId: administration_revoke_credential
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: directory
          in: path
          required: true
          schema:
            type: string
        - name: credential
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/directories/{directory}/schemas:
    get:
      operationId: directory_schemas_list
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: directory
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/DirectorySchema"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    put:
      operationId: directory_schemas_register
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: directory
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RegisterDirectorySchema"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DirectorySchema"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/domains:
    get:
      operationId: administration_domains
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/DomainRecord"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: administration_domain
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DomainRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DomainRecord"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/domains/{domain}:
    delete:
      operationId: administration_delete_domain
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: domain
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/domains/{domain}/verify:
    post:
      operationId: administration_verify_domain
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: domain
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/DomainRecord"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/invitations/{invitation}:
    delete:
      operationId: administration_cancel_invitation
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: invitation
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/people:
    get:
      operationId: administration_people
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PeoplePage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/organizations/{org}/sessions/revoke:
    post:
      operationId: administration_revoke_sessions
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeSessions"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RevocationReceipt"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/portal:
    get:
      operationId: administration_context
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PortalContext"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    delete:
      operationId: administration_logout
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/portal/entries:
    post:
      operationId: administration_entry
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PortalEntryRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PortalEntry"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/administration/portal/exchange:
    post:
      operationId: administration_exchange
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PortalExchange"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PortalSession"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/audit/events:
    post:
      operationId: record
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AuditEvent"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuditReceipt"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/callback:
    get:
      operationId: callback
      parameters:
        - name: code
          in: query
          required: false
          schema:
            type: string
        - name: state
          in: query
          required: true
          schema:
            type: string
        - name: error
          in: query
          required: false
          schema:
            type: string
        - name: iss
          in: query
          required: false
          schema:
            type: string
      responses:
        "303":
          description: Redirect with a short-lived, single-use exchange code
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /v1/auth/callback/{organization}:
    get:
      summary: Callback for organizations whose customer-run OIDC issuer has its own redirect URI.
      operationId: organization_callback
      parameters:
        - name: organization
          in: path
          required: true
          schema:
            type: string
        - name: code
          in: query
          required: false
          schema:
            type: string
        - name: state
          in: query
          required: true
          schema:
            type: string
        - name: error
          in: query
          required: false
          schema:
            type: string
        - name: iss
          in: query
          required: false
          schema:
            type: string
      responses:
        "303":
          description: Redirect with a short-lived, single-use exchange code
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /v1/auth/discovery:
    post:
      summary: |-
        Starts a sign-in that asks for the person's email and routes them to their organization's
        single sign-on by its verified domain. The link works once, for 10 minutes.
      operationId: auth_discovery
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StartDiscovery"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoginStarted"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/exchange:
    post:
      operationId: exchange
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExchangeRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SessionIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/exchange/profile:
    post:
      summary: >-
        Broker mode: redeems the login code for the verified sign-in instead of a runtime session,
        so

        the application can keep its own users and sessions.
      operationId: exchange_profile
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExchangeRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VerifiedLogin"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/flows:
    post:
      operationId: start_login
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StartLogin"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoginStarted"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/login:
    get:
      operationId: login
      parameters:
        - name: flow
          in: query
          required: true
          schema:
            type: string
      responses:
        "303":
          description: Redirect to the configured OIDC issuer
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
      security: []
  /v1/auth/logout:
    post:
      operationId: logout
      responses:
        "204":
          description: Local session revoked
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/onboarding/exchange:
    post:
      operationId: exchange_onboarding
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExchangeRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OnboardingIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/onboarding/flows:
    post:
      summary: >-
        Authenticates a local user before workspace selection or registration. A service exchanges

        the resulting code for single-use proof, and opens a session only for an authorized
        workspace.
      operationId: start_onboarding
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StartOnboarding"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/LoginStarted"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/onboarding/organizations:
    post:
      summary: |-
        Creates an organization whose initial owner is the onboarding user, and that owner's first
        session, in one transaction. The onboarding token works once.
      operationId: create_owned_organization
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOwnedOrganization"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OwnedOrganizationCreated"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/auth/onboarding/workspaces/{id}:
    post:
      summary: Uses a verified local identity to enter a workspace, subject to all of that tenant's login
        requirements.
      operationId: enter_workspace
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnterWorkspace"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SessionIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/authorization/check:
    post:
      operationId: check
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AuthorizationRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuthorizationDecision"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/capabilities:
    get:
      operationId: capabilities
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/ProviderDescriptor"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/event-subscriptions:
    get:
      operationId: vendor_event_subscriptions
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/VendorSubscription"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: vendor_create_event_subscription
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/VendorSubscriptionInput"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedVendorSubscription"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/event-subscriptions/{subscription}:
    delete:
      operationId: vendor_revoke_event_subscription
      parameters:
        - name: subscription
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/events:
    get:
      operationId: vendor_events
      parameters:
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: types
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: profile
          in: query
          description: Add each user's basic profile to user events. Needs the `profiles:read` scope.
          required: false
          schema:
            type: boolean
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "410":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/events/state:
    get:
      operationId: vendor_event_state
      parameters:
        - name: types
          in: query
          description: Event types; the listing covers their resource types.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Defaults to 500; at most 1000.
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: page_token
          in: query
          required: false
          schema:
            type: string
        - name: profile
          in: query
          description: Add each user's basic profile to user resources. Needs the `profiles:read` scope.
          required: false
          schema:
            type: boolean
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VendorStatePage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/machines/access:
    post:
      operationId: machine_access
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MachineAccessRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MachineAccessDecision"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/me:
    get:
      operationId: me
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Me"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}:
    get:
      operationId: operator_get_account
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccountOverview"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}/disable:
    post:
      operationId: operator_disable_account
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: Every sign-in method of the account stops working and its sessions end
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}/enable:
    post:
      operationId: operator_enable_account
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: Account enabled
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}/local-credentials:
    post:
      operationId: operator_local_credentials
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/LocalCredentialsRequest"
        required: true
      responses:
        "204":
          description: Local credentials updated
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}/mfa-reset:
    post:
      operationId: operator_reset_mfa
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: Authenticator and recovery codes removed; sessions ended
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/accounts/{user_id}/recovery:
    post:
      operationId: operator_recover_account
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RecoveryRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RecoveryIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/audit:
    get:
      operationId: operator_audit
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - "null"
            format: int64
        - name: user_id
          in: query
          required: false
          schema:
            type:
              - string
              - "null"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items: {}
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/email-deliveries:
    get:
      operationId: operator_email_deliveries
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - "null"
            format: int64
        - name: user_id
          in: query
          required: false
          schema:
            type:
              - string
              - "null"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/EmailDelivery"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/enrollments:
    post:
      operationId: operator_enroll
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnrollmentRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EnrollmentIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/entries:
    post:
      operationId: operator_browser_create_entry
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorEntry"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/identity-migrations:
    post:
      operationId: operator_plan_migration
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MigrationPlanRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdentityMigration"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/identity-migrations/{migration_id}:
    get:
      operationId: operator_get_migration
      parameters:
        - name: migration_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdentityMigration"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/identity-migrations/{migration_id}/rollback:
    post:
      operationId: operator_rollback_migration
      parameters:
        - name: migration_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdentityMigration"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/identity-migrations/{migration_id}/run:
    post:
      summary: |-
        Runs a plan. Each item commits on its own, so a run that stops resumes at the first pending
        item, and items already linked stay linked.
      operationId: operator_run_migration
      parameters:
        - name: migration_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IdentityMigration"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/clients:
    get:
      operationId: list_clients
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ClientList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: create_client
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ClientSettings"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ClientCreated"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/clients/{client}:
    get:
      operationId: get_client
      parameters:
        - name: client
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OAuthClient"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    put:
      operationId: update_client
      parameters:
        - name: client
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ClientSettings"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OAuthClient"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    delete:
      operationId: delete_client
      parameters:
        - name: client
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/clients/{client}/secret:
    post:
      operationId: rotate_client_secret
      parameters:
        - name: client
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: "null"
                - $ref: "#/components/schemas/CredentialRotation"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SecretIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/grants:
    get:
      operationId: list_grants
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
        - name: client
          in: path
          description: Internal client ID.
          required: true
          schema:
            type:
              - string
              - "null"
        - name: organization_id
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
        - name: resource
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
        - name: include_inactive
          in: path
          required: true
          schema:
            type: boolean
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GrantList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/grants/revoke:
    post:
      operationId: revoke_grants
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeGrants"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RevokedGrants"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/keys:
    get:
      operationId: list_keys
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/KeyList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/keys/rotate:
    post:
      operationId: rotate_key
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateKey"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuerSigningKey"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/keys/{kid}/revoke:
    post:
      operationId: revoke_key
      parameters:
        - name: kid
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/resources:
    get:
      operationId: list_resources
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResourceList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: create_resource
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResourceSettings"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResourceCreated"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/resources/{resource}:
    put:
      operationId: update_resource
      parameters:
        - name: resource
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResourceSettings"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OAuthResource"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    delete:
      operationId: delete_resource
      parameters:
        - name: resource
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/oauth/resources/{resource}/credential:
    post:
      operationId: rotate_resource_credential
      parameters:
        - name: resource
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
                - type: "null"
                - $ref: "#/components/schemas/CredentialRotation"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorSecret"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/organizations:
    get:
      operationId: operator_organizations
      parameters:
        - name: search
          in: query
          description: Part of an organization's ID, name or slug, matched without regard to case.
          required: false
          schema:
            type:
              - string
              - "null"
        - name: after
          in: query
          description: The last ID of the previous page.
          required: false
          schema:
            type:
              - string
              - "null"
        - name: limit
          in: query
          description: Defaults to 50; at most 100.
          required: false
          schema:
            type:
              - integer
              - "null"
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorOrganizationPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/organizations/{org}:
    get:
      operationId: operator_organization
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorOrganizationDetail"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/organizations/{org}/administration:
    put:
      operationId: operator_enable_administration
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EnableAdministration"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TenantRecord"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    delete:
      operationId: operator_disable_administration
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/secret-deliveries/{delivery}:
    post:
      operationId: operator_browser_take_secret
      parameters:
        - name: delivery
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperatorSecret"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/user-aliases:
    post:
      operationId: operator_review_aliases
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserAliasReview"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UserAliasReport"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/operator/user-imports:
    post:
      operationId: operator_import_users
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserImportRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UserImportResponse"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations:
    post:
      operationId: create_organization
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOrganization"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Organization"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}:
    get:
      operationId: get_organization
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Organization"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/audit-events:
    get:
      operationId: query_audit
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: actor
          in: query
          required: false
          schema:
            type: string
        - name: action
          in: query
          required: false
          schema:
            type: string
        - name: resource_type
          in: query
          required: false
          schema:
            type: string
        - name: resource_id
          in: query
          required: false
          schema:
            type: string
        - name: since
          in: query
          required: false
          schema:
            type: string
            format: date-time
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date-time
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuditPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/audit-events/export:
    post:
      operationId: export_audit
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExportRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AuditExportPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/invitations:
    post:
      operationId: invite
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInvitation"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedInvitation"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/invitations/accept:
    post:
      operationId: accept_invitation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AcceptInvitation"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Membership"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/invitations/{invitation}/reissue:
    post:
      operationId: reissue_invitation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: invitation
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedInvitation"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/members:
    get:
      operationId: members
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemberPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/members/{user_id}:
    patch:
      operationId: change_member
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: user_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ChangeMembership"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Membership"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions:
    get:
      operationId: inspect
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PermissionSnapshot"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/changes:
    post:
      operationId: change
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ChangeRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChangeReceipt"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/export:
    get:
      operationId: export
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ExportBundle"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/policies:
    get:
      operationId: policies
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/PolicyVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: draft
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DraftPolicy"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PolicyVersion"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/policies/{version}/activate:
    post:
      operationId: activate
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ActivationRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChangeReceipt"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/policies/{version}/compare:
    post:
      operationId: compare
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CompareRequest"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ComparisonReport"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/revision:
    get:
      operationId: revision
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ChangeReceipt"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/permissions/synchronization:
    get:
      operationId: synchronization
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SynchronizationStatus"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/security-streams:
    get:
      operationId: status
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/StreamStatus"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{id}/security-streams/{receiver}/verify:
    post:
      operationId: verify
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: receiver
          in: path
          required: true
          schema:
            type: string
      responses:
        "202":
          description: Stream verification requested
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/identity-migration:
    get:
      summary: Progress of an organization's move between local accounts and its SSO connection.
      operationId: identity_migration_status
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MigrationStatus"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/login-policy:
    get:
      operationId: get_login_policy
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrganizationLoginPolicy"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    put:
      summary: |-
        Changes whether members sign in with local accounts and whether local logins need two-step
        verification. Sessions that no longer meet the policy stop working at once.
      operationId: put_login_policy
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateLoginPolicy"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrganizationLoginPolicy"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/oauth/clients:
    get:
      summary: Clients with grants in the organization, and clients the organization blocked.
      operationId: organization_clients
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OrganizationClientList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/oauth/clients/{client}:
    put:
      operationId: organization_client_policy
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
        - name: client
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OrganizationClientPolicy"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RevokedGrants"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/oauth/grants:
    get:
      operationId: organization_grants
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
        - name: user_id
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
        - name: client
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
        - name: resource
          in: path
          required: true
          schema:
            type:
              - string
              - "null"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GrantList"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/oauth/grants/revoke:
    post:
      summary: >-
        Revokes grants of one organization. Every filter applies inside the organization in the
        path,

        and a request that names another organization is refused, so an administrator cannot reach

        another organization's grants.
      operationId: organization_revoke_grants
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeGrants"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RevokedGrants"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{organization_id}/user-aliases/resolve:
    post:
      operationId: resolve_product_alias
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AliasLookup"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedAlias"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/audit-streams:
    get:
      operationId: streams
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/AuditStream"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: create_stream
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AuditStreamInput"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedAuditStream"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/audit-streams/{stream}:
    delete:
      operationId: revoke_stream
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: stream
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-deliveries/{delivery}:
    get:
      operationId: delivery
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: delivery
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeliveryDetail"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions:
    get:
      operationId: subscriptions
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Subscription"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: create_subscription
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubscriptionInput"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedSigningSecret"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions/{subscription}:
    put:
      operationId: update_subscription
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: subscription
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubscriptionUpdate"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Subscription"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions/{subscription}/deliveries:
    get:
      operationId: deliveries
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: subscription
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeliveryPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions/{subscription}/replay:
    post:
      operationId: replay
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: subscription
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReplayRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Delivery"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "410":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions/{subscription}/revoke:
    post:
      operationId: revoke_subscription
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: subscription
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubscriptionRevoke"
        required: true
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/event-subscriptions/{subscription}/signing-secret:
    post:
      operationId: rotate_secret
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: subscription
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotationRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/IssuedSigningSecret"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/events:
    get:
      operationId: feed
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: types
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventPage"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "410":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/events/catalog:
    get:
      operationId: catalog
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventCatalog"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/events/snapshots:
    post:
      operationId: create_snapshot
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SnapshotRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventSnapshot"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/events/snapshots/{snapshot}:
    get:
      operationId: snapshot_page
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: snapshot
          in: path
          required: true
          schema:
            type: string
        - name: types
          in: query
          required: false
          schema:
            type: string
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EventSnapshot"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "410":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts:
    get:
      operationId: machine_list
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: after
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/ServiceAccount"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    post:
      operationId: machine_create
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ServiceAccountSettings"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ServiceAccount"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}:
    get:
      operationId: machine_get
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ServiceAccount"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    put:
      operationId: machine_update
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateServiceAccount"
        required: true
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ServiceAccount"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
    delete:
      operationId: machine_retire
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/credentials:
    get:
      operationId: machine_credentials
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/MachineCredential"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/credentials/{credential}:
    delete:
      operationId: machine_revoke
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: credential
          in: path
          required: true
          schema:
            type: string
      responses:
        "204":
          description: ""
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/credentials/{credential}/rotate:
    post:
      operationId: machine_rotate
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: credential
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RotateMachineKey"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MachineCredentialIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/keys:
    post:
      operationId: machine_key
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/NewMachineCredential"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MachineCredentialIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/oauth-bindings:
    post:
      operationId: machine_bind
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MachineOAuthBinding"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MachineCredential"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
  /v1/organizations/{org}/service-accounts/{id}/oauth-clients:
    post:
      operationId: machine_create_oauth_client
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MachineOAuthClientRequest"
        required: true
      responses:
        "201":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MachineCredentialIssued"
        "400":
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "401":
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "404":
          description: Not found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "409":
          description: Conflict
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "413":
          description: Request too large
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "415":
          description: JSON content type required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "500":
          description: Internal error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "501":
          description: Unsupported capability
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
        "503":
          description: Provider unavailable or request timed out
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorBody"
components:
  schemas:
    AcceptInvitation:
      type: object
      required:
        - token
      properties:
        token:
          type: string
      additionalProperties: false
    AccessDecision:
      type: object
      required:
        - allowed
        - revision
        - policy_version
      properties:
        allowed:
          type: boolean
        policy_version:
          type: string
        reason:
          type:
            - string
            - "null"
        revision:
          type: integer
          format: int64
    AccessExplanation:
      type: object
      required:
        - decision
        - grant_paths
        - conditions
        - synchronization
      properties:
        conditions:
          type: array
          items:
            $ref: "#/components/schemas/DiagnosticCondition"
        decision:
          $ref: "#/components/schemas/AccessDecision"
        grant_paths:
          type: array
          items:
            $ref: "#/components/schemas/DiagnosticPath"
        synchronization:
          $ref: "#/components/schemas/SynchronizationStatus"
    AccessRequest:
      type: object
      required:
        - organization_id
        - subject_id
        - action
      properties:
        action:
          type: string
        context:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
        organization_id:
          type: string
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        subject_id:
          type: string
      additionalProperties: false
    AccessSearch:
      type: object
      required:
        - organization_id
        - kind
      properties:
        action:
          type:
            - string
            - "null"
        context:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
        cursor:
          type:
            - string
            - "null"
        kind:
          $ref: "#/components/schemas/SearchKind"
        limit:
          type: integer
          format: int32
          minimum: 0
        organization_id:
          type: string
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        resource_type:
          type:
            - string
            - "null"
        subject_id:
          type:
            - string
            - "null"
      additionalProperties: false
    AccessSearchPage:
      type: object
      required:
        - resources
        - subjects
        - actions
        - revision
        - policy_version
      properties:
        actions:
          type: array
          items:
            type: string
        next_cursor:
          type:
            - string
            - "null"
        policy_version:
          type: string
        resources:
          type: array
          items:
            $ref: "#/components/schemas/Resource"
        revision:
          type: integer
          format: int64
        subjects:
          type: array
          items:
            type: string
    AccountEntry:
      type: object
      required:
        - url
        - expires_in
      properties:
        expires_in:
          type: integer
          format: int32
          minimum: 0
        url:
          type: string
          description: Single-use link to the account security pages. Send the browser there right away.
    AccountEntryRequest:
      type: object
      properties:
        return_url:
          type:
            - string
            - "null"
          description: Where the account pages link back to. Its origin must be an application redirect origin.
      additionalProperties: false
    AccountOverview:
      type: object
      required:
        - user
        - disabled
        - recovery_codes_remaining
        - identities
        - sessions
        - memberships
      properties:
        disabled:
          type: boolean
        identities:
          type: array
          items:
            $ref: "#/components/schemas/LinkedIdentity"
        local_account:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/LocalAccount"
        memberships:
          type: array
          items:
            $ref: "#/components/schemas/Membership"
        recovery_codes_remaining:
          type: integer
          format: int64
        sessions:
          type: array
          items:
            $ref: "#/components/schemas/AccountSessionSummary"
        user:
          $ref: "#/components/schemas/User"
    AccountSessionSummary:
      type: object
      required:
        - id
        - organization_id
        - amr
        - created_at
        - expires_at
        - current
      properties:
        amr:
          type: array
          items:
            type: string
        connection_id:
          type:
            - string
            - "null"
        created_at:
          type: string
          format: date-time
        current:
          type: boolean
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        organization_id:
          type: string
    ActivateConfiguration:
      type: object
      properties:
        expected_active_version:
          type:
            - string
            - "null"
      additionalProperties: false
    ActivationRequest:
      type: object
      required:
        - expected_revision
      properties:
        expected_revision:
          type: integer
          format: int64
        without_comparison:
          type: boolean
          description: Reactivate a version that was active before without a new comparison, for rollback
            during a PDP outage. The audit log records it separately.
      additionalProperties: false
    AliasLookup:
      type: object
      required:
        - external_id
      properties:
        external_id:
          type: string
      additionalProperties: false
    AliasReviewMode:
      type: string
      enum:
        - preview
        - apply
    AssignmentRecord:
      allOf:
        - $ref: "#/components/schemas/RoleAssignment"
        - type: object
          required:
            - source
          properties:
            source:
              type: string
    AttributeInput:
      type: object
      required:
        - subject_id
        - values
        - ttl_seconds
      properties:
        subject_id:
          type: string
        ttl_seconds:
          type: integer
          format: int32
          minimum: 0
        values:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
      additionalProperties: false
    AttributeNamespace:
      type: string
      enum:
        - subject
        - resource
        - context
        - authentication
    AttributeRef:
      type: object
      required:
        - namespace
        - name
      properties:
        name:
          type: string
        namespace:
          $ref: "#/components/schemas/AttributeNamespace"
      additionalProperties: false
    AttributeRule:
      type: object
      required:
        - attribute
        - sources
        - max_age_seconds
      properties:
        attribute:
          $ref: "#/components/schemas/AttributeRef"
        max_age_seconds:
          type: integer
          format: int32
          minimum: 0
        sources:
          type: array
          items:
            type: string
      additionalProperties: false
    Attributes:
      type: object
      required:
        - values
        - source
        - observed_at
        - expires_at
      properties:
        expires_at:
          type: integer
          format: int64
        observed_at:
          type: integer
          format: int64
        source:
          type: string
        values:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
      additionalProperties: false
    AuditEvent:
      type: object
      description: CloudEvents structured JSON, with lowercase enterprise extension names.
      required:
        - specversion
        - id
        - source
        - type
        - time
        - datacontenttype
        - organizationid
        - data
      properties:
        actorid:
          type:
            - string
            - "null"
        data: {}
        datacontenttype:
          type: string
        id:
          type: string
        organizationid:
          type: string
        resourceid:
          type:
            - string
            - "null"
        resourcetype:
          type:
            - string
            - "null"
        source:
          type: string
        specversion:
          type: string
        time:
          type: string
          format: date-time
        type:
          type: string
      additionalProperties: false
    AuditExportPage:
      type: object
      required:
        - page
        - until
      properties:
        page:
          $ref: "#/components/schemas/AuditPage"
        until:
          type: string
          format: date-time
    AuditPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/AuditEvent"
        next_cursor:
          type:
            - string
            - "null"
    AuditQuery:
      type: object
      properties:
        action:
          type:
            - string
            - "null"
        actor:
          type:
            - string
            - "null"
        cursor:
          type:
            - string
            - "null"
        limit:
          type:
            - integer
            - "null"
          format: int32
          minimum: 0
        resource_id:
          type:
            - string
            - "null"
        resource_type:
          type:
            - string
            - "null"
        since:
          type:
            - string
            - "null"
          format: date-time
        until:
          type:
            - string
            - "null"
          format: date-time
    AuditReceipt:
      type: object
      required:
        - id
        - duplicate
      properties:
        duplicate:
          type: boolean
        id:
          type: string
    AuditStream:
      type: object
      description: Sends an organization's audit entries to a SIEM endpoint in signed batches.
      required:
        - id
        - organization_id
        - label
        - endpoint
        - created_by
        - created_at
        - failures
      properties:
        created_at:
          type: string
          format: date-time
        created_by:
          type: string
        endpoint:
          type: string
        failures:
          type: integer
          format: int32
          description: Failed batches since the last success.
        id:
          type: string
        label:
          type: string
        last_attempt_at:
          type:
            - string
            - "null"
          format: date-time
        last_delivered_at:
          type:
            - string
            - "null"
          format: date-time
        last_error:
          type:
            - string
            - "null"
        last_http_status:
          type:
            - integer
            - "null"
          format: int32
        organization_id:
          type: string
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
    AuditStreamInput:
      type: object
      required:
        - label
        - endpoint
      properties:
        endpoint:
          type: string
          description: HTTPS endpoint that receives batches. It must match `events.allowed_destination_origins`.
        label:
          type: string
      additionalProperties: false
    AuthorizationDecision:
      type: object
      required:
        - allowed
      properties:
        allowed:
          type: boolean
    AuthorizationRequest:
      type: object
      required:
        - organization_id
        - subject_id
        - action
      properties:
        action:
          type: string
        organization_id:
          type: string
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        subject_id:
          type: string
      additionalProperties: false
    BatchRequest:
      type: object
      required:
        - evaluations
      properties:
        evaluations:
          type: array
          items:
            $ref: "#/components/schemas/AccessRequest"
      additionalProperties: false
    BulkOperation:
      type: object
      required:
        - method
        - path
      properties:
        bulkId:
          type:
            - string
            - "null"
        data: {}
        method:
          type: string
        path:
          type: string
        version:
          type:
            - string
            - "null"
      additionalProperties: false
    BulkRequest:
      type: object
      required:
        - schemas
        - Operations
      properties:
        Operations:
          type: array
          items:
            $ref: "#/components/schemas/BulkOperation"
        failOnErrors:
          type:
            - integer
            - "null"
          format: int32
          minimum: 0
        schemas:
          type: array
          items:
            type: string
      additionalProperties: false
    CertificateInfo:
      type: object
      required:
        - sha256
        - subject
        - not_before
        - not_after
      properties:
        not_after:
          type: integer
          format: int64
        not_before:
          type: integer
          format: int64
        sha256:
          type: string
        subject:
          type: string
    ChangeMembership:
      type: object
      required:
        - role
        - status
      properties:
        role:
          type: string
        status:
          $ref: "#/components/schemas/MembershipStatus"
      additionalProperties: false
    ChangeReceipt:
      type: object
      required:
        - revision
        - policy_version
      properties:
        policy_version:
          type: string
        revision:
          type: integer
          format: int64
    ChangeRequest:
      type: object
      required:
        - expected_revision
        - change
      properties:
        change:
          $ref: "#/components/schemas/PermissionChange"
        expected_revision:
          type: integer
          format: int64
      additionalProperties: false
    ClientCreated:
      type: object
      required:
        - client
      properties:
        client:
          $ref: "#/components/schemas/OAuthClient"
        client_secret:
          type:
            - string
            - "null"
          description: The confidential client's secret. Shown once; only its hash is stored.
    ClientList:
      type: object
      required:
        - clients
      properties:
        clients:
          type: array
          items:
            $ref: "#/components/schemas/OAuthClient"
    ClientSettings:
      type: object
      description: Fields an operator sets. Unset optional fields keep their defaults.
      required:
        - name
        - client_type
      properties:
        client_type:
          $ref: "#/components/schemas/ClientType"
        enabled:
          type: boolean
        grant_types:
          type: array
          items:
            $ref: "#/components/schemas/GrantType"
        identity_only:
          type: boolean
        name:
          type: string
        organization_ids:
          type:
            - array
            - "null"
          items:
            type: string
        pkce:
          $ref: "#/components/schemas/Pkce"
        post_logout_redirect_uris:
          type: array
          items:
            type: string
        redirect_uris:
          type: array
          items:
            type: string
        refresh_tokens:
          $ref: "#/components/schemas/RefreshTokens"
        resources:
          type: array
          items:
            type: string
        scopes:
          type: array
          items:
            type: string
        trust:
          $ref: "#/components/schemas/ClientTrust"
      additionalProperties: false
    ClientSource:
      type: string
      enum:
        - registered
        - metadata_document
    ClientTrust:
      type: string
      description: Who operates a client, and whether its users see the approval page.
      enum:
        - third_party
        - first_party
        - first_party_skip_consent
    ClientType:
      type: string
      enum:
        - public
        - confidential
    CompareRequest:
      type: object
      required:
        - expected_revision
        - cases
      properties:
        cases:
          type: array
          items:
            $ref: "#/components/schemas/PolicyComparison"
        expected_revision:
          type: integer
          format: int64
      additionalProperties: false
    Comparison:
      type: string
      enum:
        - eq
        - ne
        - lt
        - lte
        - gt
        - gte
        - in
        - contains
    ComparisonReport:
      type: object
      required:
        - policy_version
        - revision
        - equivalent
        - results
      properties:
        equivalent:
          type: boolean
        policy_version:
          type: string
        results:
          type: array
          items:
            $ref: "#/components/schemas/PolicyComparisonResult"
        revision:
          type: integer
          format: int64
    Condition:
      type: object
      required:
        - left
        - op
        - right
      properties:
        left:
          $ref: "#/components/schemas/Operand"
        op:
          $ref: "#/components/schemas/Comparison"
        right:
          $ref: "#/components/schemas/Operand"
      additionalProperties: false
    ConditionResult:
      type: string
      description: Whether the conditions of an applicable policy rule held for a request.
      enum:
        - matched
        - not_matched
        - unavailable_attribute_or_invalid_type
    ConfigurationDraft:
      type: object
      required:
        - configuration
      properties:
        client_secret:
          type:
            - string
            - "null"
          description: A replacement OIDC secret. It is encrypted before the draft is stored.
        configuration:
          $ref: "#/components/schemas/OrganizationConfiguration"
        expected_active_version:
          type:
            - string
            - "null"
      additionalProperties: false
    ConfigurationOverview:
      type: object
      required:
        - versions
        - recovery_connection_id
        - customer_connection_id
        - customer_issuer
        - recovery_ready
        - service_provider
      properties:
        active:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/ConfigurationVersion"
        customer_connection_id:
          type: string
        customer_issuer:
          type: string
        customer_login:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/LoginHealth"
              description: Recent sign-ins through the customer connection. `None` until someone tries one.
        recovery_connection_id:
          type: string
        recovery_ready:
          type: boolean
        service_provider:
          $ref: "#/components/schemas/ServiceProviderDetails"
          description: Values the customer's IT admin enters in their identity provider.
        service_provider_metadata_url:
          type:
            - string
            - "null"
        signing_certificate_expires_at:
          type:
            - string
            - "null"
          format: date-time
          description: |-
            When the active SAML connection's last valid signing certificate expires. Sign-ins stop
            working then unless the customer uploads renewed metadata.
        versions:
          type: array
          items:
            $ref: "#/components/schemas/ConfigurationVersion"
    ConfigurationStatus:
      type: string
      description: >-
        Lifecycle of a stored configuration version.


        A draft is validated or tested, queued as `Activating`, and then becomes `Active` or
        `Failed`.

        Activating another version retires the previously active one.
      enum:
        - draft
        - validated
        - tested
        - activating
        - active
        - retired
        - failed
    ConfigurationVersion:
      type: object
      required:
        - id
        - organization_id
        - configuration
        - status
        - created_by
        - created_at
        - attempts
      properties:
        attempts:
          type: integer
          format: int32
        base_version:
          type:
            - string
            - "null"
        configuration:
          $ref: "#/components/schemas/OrganizationConfiguration"
        created_at:
          type: string
          format: date-time
        created_by:
          type: string
        id:
          type: string
        last_error:
          type:
            - string
            - "null"
        metadata_checked_at:
          type:
            - string
            - "null"
          format: date-time
          description: When the runtime last fetched the SAML `metadata_url` of this active version.
        metadata_error:
          type:
            - string
            - "null"
          description: Why the last fetched metadata was not applied. A successful refresh clears it.
        organization_id:
          type: string
        status:
          $ref: "#/components/schemas/ConfigurationStatus"
        test_failure:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/LoginFailure"
              description: Why the last login test failed. `None` after a successful test or before any test.
        test_result:
          type:
            - string
            - "null"
        tested_at:
          type:
            - string
            - "null"
          format: date-time
    ConnectionInspection:
      type: object
      required:
        - entity_id
        - sso_url
        - certificates
        - subject_attribute
      properties:
        certificates:
          type: array
          items:
            $ref: "#/components/schemas/CertificateInfo"
        entity_id:
          type: string
        sso_url:
          type: string
        subject_attribute:
          type: string
    ConnectionTestStarted:
      type: object
      required:
        - login_url
        - expires_in
      properties:
        expires_in:
          type: integer
          format: int32
          minimum: 0
        login_url:
          type: string
    CreateDirectoryCredential:
      type: object
      required:
        - label
      properties:
        expires_in_days:
          type:
            - integer
            - "null"
          format: int32
          description: |-
            Days until the credential stops working, from 1 to 730. Omit it for a credential that
            works until it is revoked.
          minimum: 0
        label:
          type: string
        rotate:
          type: boolean
      additionalProperties: false
    CreateInvitation:
      type: object
      required:
        - email
        - role
      properties:
        email:
          type: string
        role:
          type: string
      additionalProperties: false
    CreateOrganization:
      type: object
      required:
        - id
        - name
        - slug
      properties:
        id:
          type: string
          description: A reserved canonical ID within the calling service credential scope.
        name:
          type: string
        slug:
          type: string
      additionalProperties: false
    CreateOwnedOrganization:
      type: object
      required:
        - onboarding_token
        - id
        - name
        - slug
      properties:
        id:
          type: string
        name:
          type: string
        onboarding_token:
          type: string
        slug:
          type: string
      additionalProperties: false
    CredentialRotation:
      type: object
      description: Rotation replaces a verifier immediately unless bounded overlap is requested.
      properties:
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        overlap_seconds:
          type: integer
          format: int32
          minimum: 0
      additionalProperties: false
    Delivery:
      type: object
      required:
        - id
        - subscription_id
        - event_id
        - status
        - attempts
        - next_attempt_at
        - created_at
      properties:
        attempts:
          type: integer
          format: int32
        completed_at:
          type:
            - string
            - "null"
          format: date-time
        created_at:
          type: string
          format: date-time
        event_id:
          type: string
        id:
          type: string
        last_error:
          type:
            - string
            - "null"
        last_http_status:
          type:
            - integer
            - "null"
          format: int32
        next_attempt_at:
          type: string
          format: date-time
        status:
          $ref: "#/components/schemas/DeliveryStatus"
        subscription_id:
          type: string
    DeliveryAttempt:
      type: object
      required:
        - id
        - delivery_id
        - number
        - started_at
      properties:
        delivery_id:
          type: string
        error:
          type:
            - string
            - "null"
        finished_at:
          type:
            - string
            - "null"
          format: date-time
        http_status:
          type:
            - integer
            - "null"
          format: int32
        id:
          type: string
        number:
          type: integer
          format: int32
        started_at:
          type: string
          format: date-time
    DeliveryDetail:
      type: object
      required:
        - delivery
        - attempts
      properties:
        attempts:
          type: array
          items:
            $ref: "#/components/schemas/DeliveryAttempt"
        delivery:
          $ref: "#/components/schemas/Delivery"
    DeliveryPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/Delivery"
        next_cursor:
          type:
            - string
            - "null"
    DeliveryStatus:
      type: string
      description: >-
        Lifecycle of one webhook delivery: `pending` and `retry` wait for a worker, `sending` holds
        a lease,

        and `delivered`, `failed` and `cancelled` are final.
      enum:
        - pending
        - retry
        - sending
        - delivered
        - failed
        - cancelled
    DiagnosticCondition:
      type: object
      required:
        - rule_id
        - effect
        - result
        - attributes
      properties:
        attributes:
          type: array
          items:
            type: string
        effect:
          $ref: "#/components/schemas/PolicyEffect"
        result:
          $ref: "#/components/schemas/ConditionResult"
        rule_id:
          type: string
    DiagnosticPath:
      type: object
      required:
        - source
        - kind
        - actions
        - inherited
      properties:
        actions:
          type: array
          items:
            type: string
        inherited:
          type: boolean
        kind:
          $ref: "#/components/schemas/GrantPathKind"
        scope:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        source:
          type: string
    DiagnosticRequest:
      type: object
      required:
        - subject_id
        - action
      properties:
        action:
          type: string
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        session_id:
          type:
            - string
            - "null"
        subject_id:
          type: string
      additionalProperties: false
    DirectoryAdministration:
      type: object
      required:
        - configuration
        - endpoint
        - managed_credentials
        - credentials
        - user_count
        - group_count
      properties:
        configuration:
          $ref: "#/components/schemas/DirectoryConfiguration"
        credentials:
          type: array
          items:
            $ref: "#/components/schemas/DirectoryCredential"
        endpoint:
          type: string
        group_count:
          type: integer
          format: int64
        last_error:
          type:
            - string
            - "null"
        last_error_at:
          type:
            - string
            - "null"
          format: date-time
        last_request_id:
          type:
            - string
            - "null"
        last_success_at:
          type:
            - string
            - "null"
          format: date-time
        managed_credentials:
          type: boolean
        user_count:
          type: integer
          format: int64
    DirectoryConfiguration:
      type: object
      required:
        - id
        - connection_id
        - issuer
        - default_role
        - group_roles
      properties:
        connection_id:
          type: string
        default_role:
          type: string
        group_roles:
          type: object
          additionalProperties:
            type: string
          propertyNames:
            type: string
        group_teams:
          type: object
          description: |-
            Immutable upstream group ID to an existing team (permission group). The team keeps its
            own members, roles and grants, and also contains the directory group's members.
          additionalProperties:
            type: string
          propertyNames:
            type: string
        id:
          type: string
        issuer:
          type: string
        version:
          type: integer
          format: int64
          description: On write, zero creates a new directory and a positive value must match the last read.
      additionalProperties: false
    DirectoryCredential:
      type: object
      required:
        - id
        - label
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        expires_at:
          type:
            - string
            - "null"
          format: date-time
          description: When the credential stops working on its own. Null for a credential without expiry.
        id:
          type: string
        label:
          type: string
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
    DirectoryEmail:
      type: object
      required:
        - value
      properties:
        primary:
          type: boolean
        type:
          type:
            - string
            - "null"
        value:
          type: string
      additionalProperties: false
    DirectoryGroupData:
      type: object
      required:
        - displayName
      properties:
        displayName:
          type: string
        externalId:
          type:
            - string
            - "null"
        members:
          type: array
          items:
            type: string
      additionalProperties: {}
    DirectoryIdentity:
      type: object
      required:
        - directory_id
        - scim_id
        - external_id
        - user_name
        - active
        - deleted
      properties:
        active:
          type: boolean
        deleted:
          type: boolean
        directory_id:
          type: string
        external_id:
          type: string
        scim_id:
          type: string
        user_name:
          type: string
    DirectoryName:
      type: object
      properties:
        familyName:
          type:
            - string
            - "null"
        formatted:
          type:
            - string
            - "null"
        givenName:
          type:
            - string
            - "null"
      additionalProperties: {}
    DirectorySchema:
      type: object
      required:
        - id
        - name
        - description
        - resource_type
        - attributes
        - version
      properties:
        attributes:
          type: array
          items:
            $ref: "#/components/schemas/ScimAttribute"
        description:
          type: string
        id:
          type: string
        name:
          type: string
        resource_type:
          $ref: "#/components/schemas/ScimResourceKind"
        version:
          type: integer
          format: int64
      additionalProperties: false
    DirectoryUserData:
      type: object
      required:
        - externalId
        - userName
      properties:
        active:
          type: boolean
        displayName:
          type:
            - string
            - "null"
        emails:
          type: array
          items:
            $ref: "#/components/schemas/DirectoryEmail"
        externalId:
          type: string
        name:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/DirectoryName"
        userName:
          type: string
      additionalProperties: {}
    DomainRecord:
      type: object
      required:
        - domain
        - record_name
        - record_value
        - expires_at
      properties:
        domain:
          type: string
        expires_at:
          type: string
          format: date-time
        record_name:
          type: string
        record_value:
          type: string
        renewal_error:
          type:
            - string
            - "null"
          description: |-
            Why the last automatic renewal failed. Cleared when a renewal or a manual verification
            succeeds.
        verified_at:
          type:
            - string
            - "null"
          format: date-time
    DomainRequest:
      type: object
      required:
        - domain
      properties:
        domain:
          type: string
      additionalProperties: false
    DraftPolicy:
      type: object
      required:
        - expected_revision
        - bundle
      properties:
        bundle:
          $ref: "#/components/schemas/ExportBundle"
        expected_revision:
          type: integer
          format: int64
      additionalProperties: false
    EmailDelivery:
      type: object
      description: Delivery diagnostics without message content or recipients' full addresses.
      required:
        - id
        - recipient_domain
        - template
        - status
        - attempts
        - created_at
        - expires_at
      properties:
        attempts:
          type: integer
          format: int32
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        last_error:
          type:
            - string
            - "null"
        recipient_domain:
          type: string
        sent_at:
          type:
            - string
            - "null"
          format: date-time
        status:
          $ref: "#/components/schemas/EmailDeliveryStatus"
        template:
          type: string
    EmailDeliveryStatus:
      type: string
      enum:
        - pending
        - sent
        - failed
        - expired
    EnableAdministration:
      type: object
      properties:
        customer_connection_id:
          type:
            - string
            - "null"
          description: The organization's own SSO connection. Defaults to `customer-<organization ID>`.
        infrastructure:
          type:
            - string
            - "null"
          description: >-
            An identity broker profile from `administration.infrastructure`. Without one, the
            runtime

            serves SAML itself.
        recovery_connection_id:
          type:
            - string
            - "null"
          description: |-
            The connection owners use when SSO is broken. Defaults to the local account connection
            when local accounts serve the organization.
      additionalProperties: false
    EnrollmentIssued:
      type: object
      required:
        - enrollment_url
        - expires_at
        - emailed
      properties:
        emailed:
          type: boolean
        enrollment_url:
          type: string
          description: Single-use link where the person sets a password. Treat it like a password.
        expires_at:
          type: string
          format: date-time
    EnrollmentRequest:
      type: object
      required:
        - email
        - organization_id
      properties:
        email:
          type: string
        initial_owner:
          type: boolean
          description: Set up the organization's first owner. Only one owner setup can succeed.
        organization_id:
          type: string
        organization_name:
          type:
            - string
            - "null"
          description: Create the organization first when it does not exist.
        role:
          type: string
          description: Role of the initial membership. Ignored for an initial owner, who becomes `owner`.
        send_email:
          type: boolean
          description: Also email the link. Without email, give the returned link to the person directly.
      additionalProperties: false
    EnterWorkspace:
      type: object
      required:
        - onboarding_token
      properties:
        onboarding_token:
          type: string
      additionalProperties: false
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          $ref: "#/components/schemas/ErrorDetail"
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
    EventCatalog:
      type: object
      required:
        - schema_version
        - event_types
        - delivery
        - max_page_size
        - retention_days
      properties:
        delivery:
          type: string
        event_types:
          type: array
          items:
            type: string
        max_page_size:
          type: integer
          format: int32
          minimum: 0
        retention_days:
          type: integer
          format: int32
          minimum: 0
        schema_version:
          type: integer
          format: int32
          minimum: 0
    EventPage:
      type: object
      required:
        - items
        - next_cursor
        - head_cursor
        - oldest_cursor
        - has_more
        - retention_days
        - max_page_size
      properties:
        has_more:
          type: boolean
        head_cursor:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/LifecycleEvent"
        max_page_size:
          type: integer
          format: int32
          minimum: 0
        next_cursor:
          type: string
        oldest_cursor:
          type: string
        retention_days:
          type: integer
          format: int32
          minimum: 0
    EventSnapshot:
      type: object
      required:
        - id
        - checkpoint
        - expires_at
        - total
        - items
      properties:
        checkpoint:
          type: string
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/ResourceState"
        next_offset:
          type:
            - integer
            - "null"
          format: int32
          minimum: 0
        total:
          type: integer
          format: int32
          minimum: 0
    ExchangeRequest:
      type: object
      required:
        - code
        - verifier
      properties:
        code:
          type: string
        verifier:
          type: string
      additionalProperties: false
    ExportBundle:
      type: object
      required:
        - schema_version
        - organization_id
        - local
        - managed_roles
        - managed_assignments
        - managed_groups
      properties:
        local:
          $ref: "#/components/schemas/PermissionBundle"
        managed_assignments:
          type: array
          items:
            $ref: "#/components/schemas/AssignmentRecord"
        managed_groups:
          type: array
          items:
            $ref: "#/components/schemas/GroupRecord"
        managed_roles:
          type: array
          items:
            $ref: "#/components/schemas/RoleRecord"
        organization_id:
          type: string
        schema_version:
          type: string
      additionalProperties: false
    ExportRequest:
      type: object
      required:
        - requested_by
      properties:
        filter:
          $ref: "#/components/schemas/AuditQuery"
        requested_by:
          type: string
          description: The admin identified by the host application's authenticated session.
      additionalProperties: false
    Grant:
      type: object
      required:
        - id
        - client
        - client_id
        - client_name
        - user_id
        - resource
        - scopes
        - offline
        - status
        - session_id
        - origin
        - created_at
        - expires_at
      properties:
        client:
          type: string
          description: Internal client identifier.
        client_id:
          type: string
        client_name:
          type: string
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        offline:
          type: boolean
        organization_id:
          type:
            - string
            - "null"
        origin:
          type: object
        resource:
          type: string
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
        revoked_reason:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/GrantRevocationReason"
        scopes:
          type: array
          items:
            type: string
        session_id:
          type: string
        status:
          $ref: "#/components/schemas/GrantStatus"
        user_id:
          type: string
    GrantList:
      type: object
      required:
        - grants
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/Grant"
    GrantPathKind:
      type: string
      description: What gave a principal the actions on a diagnostic grant path.
      enum:
        - role
        - acl
        - relationship
        - grant
    GrantRevocationReason:
      type: string
      description: Why a grant ended.
      enum:
        - scope_withdrawn
        - resource_deleted
        - client_deleted
        - client_blocked
        - logout
        - code_replay
        - redemption_failed
        - refresh_reuse
        - client_revocation
        - organization_revocation
        - user_withdrawal
        - operator_revocation
        - database_restore
    GrantStatus:
      type: string
      enum:
        - pending
        - active
        - revoked
    GrantType:
      type: string
      description: An OAuth grant a client may use at the token endpoint.
      enum:
        - authorization_code
        - refresh_token
        - client_credentials
    GroupRecord:
      allOf:
        - $ref: "#/components/schemas/PermissionGroup"
        - type: object
          required:
            - source
          properties:
            member_of:
              type: array
              items:
                type: string
              description: >-
                Local teams this managed group belongs to, as a directory's `group_teams` maps it.
                Its

                members then hold what those teams hold. A team that no longer exists is skipped.
            source:
              type: string
    Health:
      type: object
      required:
        - status
      properties:
        status:
          $ref: "#/components/schemas/HealthStatus"
    HealthStatus:
      type: string
      enum:
        - ok
        - ready
    IdentityMigration:
      type: object
      required:
        - id
        - organization_id
        - operator
        - source
        - connection_id
        - issuer
        - mapping_hash
        - allow_shared_users
        - status
        - created_at
        - updated_at
        - items
      properties:
        allow_shared_users:
          type: boolean
        connection_id:
          type: string
        created_at:
          type: string
          format: date-time
        id:
          type: string
        issuer:
          type: string
        items:
          type: array
          items:
            $ref: "#/components/schemas/MigrationItem"
        mapping_hash:
          type: string
        operator:
          type: string
        organization_id:
          type: string
        source:
          type: string
        status:
          $ref: "#/components/schemas/IdentityMigrationStatus"
        updated_at:
          type: string
          format: date-time
    IdentityMigrationStatus:
      type: string
      enum:
        - planned
        - running
        - completed
        - completed_with_conflicts
        - rolled_back
    ImportMembership:
      type: object
      required:
        - organization_id
        - role
      properties:
        organization_id:
          type: string
        role:
          type: string
      additionalProperties: false
    Invitation:
      type: object
      required:
        - id
        - organization_id
        - email
        - role
        - expires_at
      properties:
        accepted_at:
          type:
            - string
            - "null"
          format: date-time
        email:
          type: string
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        organization_id:
          type: string
        role:
          type: string
    IssuedAuditStream:
      type: object
      description: A new stream with its Standard Webhooks signing secret, which is shown only once.
      required:
        - stream
        - secret
      properties:
        secret:
          type: string
        stream:
          $ref: "#/components/schemas/AuditStream"
    IssuedDirectoryCredential:
      type: object
      required:
        - credential
        - token
      properties:
        credential:
          $ref: "#/components/schemas/DirectoryCredential"
        token:
          type: string
    IssuedInvitation:
      type: object
      required:
        - invitation
        - token
        - email_queued
      properties:
        acceptance_url:
          type:
            - string
            - "null"
          description: A one-time link to the registered application invitation handler, when configured.
        email_queued:
          type: boolean
          description: The invitation and its email were committed together to the delivery outbox.
        invitation:
          $ref: "#/components/schemas/Invitation"
        token:
          type: string
          description: Returned once to the authorized caller for delivery. Never logged or persisted in
            cleartext.
    IssuedSigningSecret:
      type: object
      required:
        - subscription
        - key_id
        - secret
      properties:
        key_id:
          type: string
        secret:
          type: string
        subscription:
          $ref: "#/components/schemas/Subscription"
    IssuedVendorSubscription:
      type: object
      required:
        - subscription
        - secret
      properties:
        secret:
          type: string
          description: The Standard Webhooks signing secret. It is shown only here.
        subscription:
          $ref: "#/components/schemas/VendorSubscription"
    IssuerSigningKey:
      type: object
      description: Public signing key state. The private key stays sealed.
      required:
        - kid
        - algorithm
        - public_jwk
        - created_at
        - activates_at
      properties:
        activates_at:
          type: string
          format: date-time
        algorithm:
          type: string
        created_at:
          type: string
          format: date-time
        kid:
          type: string
        public_jwk:
          type: object
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
    KeyList:
      type: object
      required:
        - keys
      properties:
        keys:
          type: array
          items:
            $ref: "#/components/schemas/IssuerSigningKey"
    LifecycleEvent:
      type: object
      required:
        - specversion
        - id
        - source
        - type
        - time
        - datacontenttype
        - organizationid
        - resourcetype
        - resourceid
        - schemaversion
        - resourceversion
        - sequence
        - data
      properties:
        actorid:
          type:
            - string
            - "null"
        data: {}
        datacontenttype:
          type: string
        id:
          type: string
        organizationid:
          type: string
        resourceid:
          type: string
        resourcetype:
          type: string
        resourceversion:
          type: integer
          format: int64
        schemaversion:
          type: integer
          format: int32
          minimum: 0
        sequence:
          type: integer
          format: int64
        source:
          type: string
        specversion:
          type: string
        time:
          type: string
          format: date-time
        type:
          type: string
      additionalProperties: false
    LinkedIdentity:
      type: object
      required:
        - id
        - connection_id
        - issuer
        - subject
        - local
        - created_at
      properties:
        connection_id:
          type: string
        created_at:
          type: string
          format: date-time
        id:
          type: string
        issuer:
          type: string
        local:
          type: boolean
        subject:
          type: string
    LocalAccount:
      type: object
      description: Public view of a local account. It never carries a password hash or factor secret.
      required:
        - id
        - user_id
        - email_verified
        - has_password
        - mfa_enabled
        - disabled
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        disabled:
          type: boolean
        email_verified:
          type: boolean
        has_password:
          type: boolean
        id:
          type: string
        login_email:
          type:
            - string
            - "null"
        mfa_enabled:
          type: boolean
        user_id:
          type: string
    LocalCredentialsRequest:
      type: object
      required:
        - disabled
      properties:
        disabled:
          type: boolean
          description: Turn local password sign-in off or on. Linked identities keep working.
      additionalProperties: false
    LocalLoginPolicy:
      type: string
      description: |-
        Organization policy for local login. `RecoveryOnly` admits only the organization's recovery
        owners, for example while SSO enforcement is prepared.
      enum:
        - enabled
        - recovery_only
        - disabled
    LoginFailure:
      type: string
      description: |-
        Why a login provider refused a response. Organization administrators see it in the console;
        the person signing in only learns that sign-in failed.
      enum:
        - idp_error
        - signature_invalid
        - no_valid_certificate
        - issuer_mismatch
        - audience_mismatch
        - destination_mismatch
        - request_mismatch
        - outside_time_window
        - confirmation_invalid
        - subject_missing
        - replayed
        - unsupported
        - malformed
        - other
    LoginFailureRecord:
      type: object
      description: The most recent refused sign-in on a connection.
      required:
        - at
        - reason
        - description
      properties:
        at:
          type: string
          format: date-time
        description:
          type: string
          description: What an administrator should check for this reason.
        reason:
          $ref: "#/components/schemas/LoginFailure"
    LoginHealth:
      type: object
      description: |-
        The latest sign-in outcome on an organization's own SSO connection.

        Only sign-ins that reach the connection with a valid login state count, so unsolicited
        posts to the ACS URL do not show up here.
      required:
        - failures_since_success
      properties:
        failures_since_success:
          type: integer
          format: int32
          description: Failed sign-ins since the last successful one.
        last_failure:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/LoginFailureRecord"
        last_success_at:
          type:
            - string
            - "null"
          format: date-time
    LoginRoute:
      type: object
      required:
        - organization_id
        - connection_id
      properties:
        connection_id:
          type: string
        organization_id:
          type: string
    LoginStarted:
      type: object
      required:
        - login_url
        - expires_in
      properties:
        expires_in:
          type: integer
          format: int32
          minimum: 0
        login_url:
          type: string
    MachineAccessDecision:
      type: object
      required:
        - principal_type
        - service_account_id
        - credential_id
        - decision
      properties:
        credential_id:
          type: string
        decision:
          $ref: "#/components/schemas/AccessDecision"
        principal_type:
          $ref: "#/components/schemas/PrincipalType"
        service_account_id:
          type: string
    MachineAccessRequest:
      type: object
      required:
        - organization_id
        - action
        - resource
      properties:
        action:
          type: string
        organization_id:
          type: string
        resource:
          $ref: "#/components/schemas/Resource"
      additionalProperties: false
    MachineCredential:
      type: object
      required:
        - id
        - service_account_id
        - organization_id
        - name
        - kind
        - restrictions
        - scopes
        - epoch
        - created_at
      properties:
        audience:
          type:
            - string
            - "null"
        client_id:
          type:
            - string
            - "null"
        created_at:
          type: string
          format: date-time
        epoch:
          type: integer
          format: int64
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        id:
          type: string
        kind:
          $ref: "#/components/schemas/MachineCredentialKind"
        name:
          type: string
        organization_id:
          type: string
        restrictions:
          $ref: "#/components/schemas/MachineRestrictions"
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
        scopes:
          type: array
          items:
            type: string
        service_account_id:
          type: string
    MachineCredentialIssued:
      type: object
      required:
        - credential
        - secret
      properties:
        credential:
          $ref: "#/components/schemas/MachineCredential"
        secret:
          type: string
          description: Returned only from creation or rotation. List and inspection responses omit this field.
    MachineCredentialKind:
      type: string
      description: The authentication mechanism backing a machine credential.
      enum:
        - api_key
        - oauth_client
    MachineOAuthBinding:
      type: object
      required:
        - name
        - client_id
        - audience
        - scopes
        - restrictions
      properties:
        audience:
          type: string
        client_id:
          type: string
          description: Internal registered OAuth client ID. The binding grants no authority without permissions.
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        name:
          type: string
        restrictions:
          $ref: "#/components/schemas/MachineRestrictions"
        scopes:
          type: array
          items:
            type: string
      additionalProperties: false
    MachineOAuthClientRequest:
      type: object
      required:
        - name
        - audience
        - scopes
        - restrictions
      properties:
        audience:
          type: string
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        name:
          type: string
        restrictions:
          $ref: "#/components/schemas/MachineRestrictions"
        scopes:
          type: array
          items:
            type: string
      additionalProperties: false
    MachineRestrictions:
      type: object
      description: Both actions and resources are explicit allowlists. An empty list grants no access.
      required:
        - actions
        - resources
      properties:
        actions:
          type: array
          items:
            type: string
        resources:
          type: array
          items:
            $ref: "#/components/schemas/Resource"
      additionalProperties: false
    ManagedResource:
      type: object
      required:
        - resource
        - attributes
      properties:
        attributes:
          $ref: "#/components/schemas/Attributes"
        parent:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        resource:
          $ref: "#/components/schemas/Resource"
      additionalProperties: false
    Me:
      type: object
      required:
        - user
        - session
      properties:
        membership:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Membership"
        session:
          $ref: "#/components/schemas/Session"
        user:
          $ref: "#/components/schemas/User"
    MemberPage:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/Membership"
        next_cursor:
          type:
            - string
            - "null"
    Membership:
      type: object
      required:
        - id
        - user_id
        - organization_id
        - role
        - status
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        id:
          type: string
        organization_id:
          type: string
        role:
          type: string
        status:
          $ref: "#/components/schemas/MembershipStatus"
        user_id:
          type: string
    MembershipStatus:
      type: string
      description: |-
        Whether a membership currently carries its role. A suspended member keeps the record and the
        role but holds no access.
      enum:
        - active
        - suspended
    MigrationItem:
      type: object
      required:
        - position
        - user_id
        - subject
        - status
      properties:
        detail:
          type:
            - string
            - "null"
        directory_subject:
          type:
            - string
            - "null"
        position:
          type: integer
          format: int32
        status:
          $ref: "#/components/schemas/MigrationItemStatus"
        subject:
          type: string
        user_id:
          type: string
    MigrationItemStatus:
      type: string
      description: Outcome of one mapping in an identity migration.
      enum:
        - pending
        - linked
        - already_linked
        - conflict
        - rolled_back
        - link_changed
    MigrationMapping:
      type: object
      required:
        - user_id
        - subject
      properties:
        directory_subject:
          type:
            - string
            - "null"
          description: |-
            The immutable directory identifier, when the organization provisions this connection
            through SCIM.
        subject:
          type: string
          description: The verified subject at the target connection.
        user_id:
          type: string
      additionalProperties: false
    MigrationPlanRequest:
      type: object
      required:
        - organization_id
        - connection_id
        - source
        - mappings
      properties:
        allow_shared_users:
          type: boolean
          description: Permit links for users who also belong to other organizations. Needs `accounts:manage`.
        connection_id:
          type: string
          description: Configured target OIDC or native SAML connection of the organization.
        mappings:
          type: array
          items:
            $ref: "#/components/schemas/MigrationMapping"
        organization_id:
          type: string
        source:
          type: string
          description: Where the mapping came from, for the audit record, such as a ticket or file name.
      additionalProperties: false
    MigrationStatus:
      type: object
      required:
        - organization_id
        - members
        - members_with_local_account
        - members_linked_to_customer_connection
        - policy
        - enforce_sso
      properties:
        customer_connection_id:
          type:
            - string
            - "null"
        enforce_sso:
          type: boolean
        members:
          type: integer
          format: int64
        members_linked_to_customer_connection:
          type: integer
          format: int64
        members_with_local_account:
          type: integer
          format: int64
        organization_id:
          type: string
        policy:
          $ref: "#/components/schemas/OrganizationLoginPolicy"
    NewMachineCredential:
      type: object
      required:
        - name
        - restrictions
      properties:
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        name:
          type: string
        restrictions:
          $ref: "#/components/schemas/MachineRestrictions"
      additionalProperties: false
    NodeRef:
      oneOf:
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - user
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - service_account
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - group
        - type: object
          required:
            - resource
            - type
          properties:
            resource:
              $ref: "#/components/schemas/Resource"
            type:
              type: string
              enum:
                - resource
    OAuthClient:
      type: object
      required:
        - id
        - client_id
        - source
        - name
        - client_type
        - grant_types
        - redirect_uris
        - post_logout_redirect_uris
        - resources
        - scopes
        - identity_only
        - pkce
        - trust
        - refresh_tokens
        - enabled
        - policy_version
        - configured
        - created_at
        - updated_at
      properties:
        client_id:
          type: string
          description: The OAuth `client_id`.
        client_type:
          $ref: "#/components/schemas/ClientType"
        configured:
          type: boolean
          description: Managed by the runtime configuration; the management API cannot change it.
        created_at:
          type: string
          format: date-time
        credential_expires_at:
          type:
            - string
            - "null"
          format: date-time
        enabled:
          type: boolean
        grant_types:
          type: array
          items:
            $ref: "#/components/schemas/GrantType"
        id:
          type: string
          description: Internal identifier used by the management API.
        identity_only:
          type: boolean
          description: Permits OpenID Connect login without an organization.
        metadata_expires_at:
          type:
            - string
            - "null"
          format: date-time
        metadata_hash:
          type:
            - string
            - "null"
          description: Version of the security-relevant fields of a metadata document.
        metadata_refresh_tokens:
          type:
            - boolean
            - "null"
          description: The metadata document's refresh-token support. None for registered clients.
        name:
          type: string
        organization_ids:
          type:
            - array
            - "null"
          items:
            type: string
          description: Organizations the client may receive grants for. None permits any active membership.
        pkce:
          $ref: "#/components/schemas/Pkce"
        policy_version:
          type: integer
          format: int64
        post_logout_redirect_uris:
          type: array
          items:
            type: string
        redirect_uris:
          type: array
          items:
            type: string
        refresh_tokens:
          $ref: "#/components/schemas/RefreshTokens"
          description: Operator policy for refresh tokens, independent of the client's declared grant types.
        resources:
          type: array
          items:
            type: string
          description: Resource URIs the client may request.
        scopes:
          type: array
          items:
            type: string
          description: Scopes the client may request, identity scopes included.
        source:
          $ref: "#/components/schemas/ClientSource"
        trust:
          $ref: "#/components/schemas/ClientTrust"
        updated_at:
          type: string
          format: date-time
    OAuthResource:
      type: object
      required:
        - id
        - uri
        - name
        - scopes
        - introspection
        - machine_access
        - configured
        - version
        - created_at
        - updated_at
      properties:
        configured:
          type: boolean
          description: Managed by the runtime configuration; the management API cannot change it.
        created_at:
          type: string
          format: date-time
        credential_expires_at:
          type:
            - string
            - "null"
          format: date-time
        id:
          type: string
        introspection:
          type: boolean
          description: Whether the resource server holds an introspection credential.
        machine_access:
          type: boolean
        name:
          type: string
        scopes:
          type: array
          items:
            $ref: "#/components/schemas/ScopeDefinition"
        tool_permissions:
          type: object
          description: The permission each MCP tool of this resource needs, by tool name.
          additionalProperties:
            type: string
          propertyNames:
            type: string
        updated_at:
          type: string
          format: date-time
        uri:
          type: string
          description: Canonical resource URI and access-token audience.
        version:
          type: integer
          format: int64
    OnboardingIssued:
      type: object
      required:
        - onboarding_token
        - workspaces
        - expires_in
      properties:
        expires_in:
          type: integer
          format: int32
          minimum: 0
        onboarding_token:
          type: string
          description: Single-use, service-bound proof for entering an existing workspace or creating a tenant.
        user:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/User"
              description: |-
                Present for backends authorized to create organizations. Login-only backends get the
                profile from the selected tenant session after satisfying its authentication policy.
        workspaces:
          type: array
          items:
            $ref: "#/components/schemas/OrganizationChoice"
    Operand:
      oneOf:
        - type: object
          required:
            - value
            - kind
          properties:
            kind:
              type: string
              enum:
                - literal
            value: {}
        - type: object
          required:
            - attribute
            - kind
          properties:
            attribute:
              $ref: "#/components/schemas/AttributeRef"
            kind:
              type: string
              enum:
                - attribute
    OperatorContext:
      type: object
      required:
        - operator_id
        - scopes
        - expires_at
        - csrf
      properties:
        csrf:
          type: string
        expires_at:
          type: string
          format: date-time
        operator_id:
          type: string
        scopes:
          type: array
          items:
            type: string
    OperatorEntry:
      type: object
      required:
        - entry_url
        - expires_in
      properties:
        entry_url:
          type: string
        expires_in:
          type: integer
          format: int32
          minimum: 0
    OperatorOrganization:
      type: object
      required:
        - id
        - name
        - created_at
        - member_count
      properties:
        administration:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/TenantRecord"
              description: Enterprise administration while it is on.
        created_at:
          type: string
          format: date-time
        id:
          type: string
        member_count:
          type: integer
          format: int64
          description: Active memberships.
        name:
          type: string
    OperatorOrganizationDetail:
      type: object
      required:
        - organization
        - directories
      properties:
        configuration:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/ConfigurationOverview"
              description: |-
                SSO configuration, connections, sign-in health and certificate expiry. `None` while
                administration is off.
        directories:
          type: array
          items:
            $ref: "#/components/schemas/DirectoryAdministration"
          description: SCIM directories with their last sync and last error.
        organization:
          $ref: "#/components/schemas/OperatorOrganization"
        portal_sign_in_url:
          type:
            - string
            - "null"
          description: |-
            Where the organization's administrators sign in to the admin portal. Send it to them.
            `None` while administration is off.
    OperatorOrganizationPage:
      type: object
      required:
        - organizations
      properties:
        next_after:
          type:
            - string
            - "null"
          description: Pass as `after` for the next page. `None` on the last page.
        organizations:
          type: array
          items:
            $ref: "#/components/schemas/OperatorOrganization"
    OperatorSecret:
      type: object
      properties:
        delivery_id:
          type:
            - string
            - "null"
        secret:
          type:
            - string
            - "null"
    Organization:
      type: object
      required:
        - id
        - name
        - slug
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        updated_at:
          type: string
          format: date-time
    OrganizationChoice:
      type: object
      description: An organization a user could select for a grant.
      required:
        - id
        - name
        - role
      properties:
        id:
          type: string
        name:
          type: string
        role:
          type: string
    OrganizationClient:
      type: object
      description: A client as one organization's administrators see it.
      required:
        - client
        - client_id
        - name
        - source
        - client_type
        - trust
        - enabled
        - blocked
        - active_grants
      properties:
        active_grants:
          type: integer
          format: int64
          description: Grants for this organization that can still be used.
        blocked:
          type: boolean
          description: Blocked by this organization.
        client:
          type: string
          description: Internal client identifier.
        client_id:
          type: string
        client_type:
          $ref: "#/components/schemas/ClientType"
        enabled:
          type: boolean
          description: Disabled by an operator for the whole deployment.
        last_granted_at:
          type:
            - string
            - "null"
          format: date-time
        name:
          type: string
          description: "Presentation only: a metadata-document client chooses its own name."
        source:
          $ref: "#/components/schemas/ClientSource"
        trust:
          $ref: "#/components/schemas/ClientTrust"
    OrganizationClientList:
      type: object
      required:
        - clients
      properties:
        clients:
          type: array
          items:
            $ref: "#/components/schemas/OrganizationClient"
    OrganizationClientPolicy:
      type: object
      required:
        - blocked
      properties:
        blocked:
          type: boolean
          description: Block the client for this organization and revoke its grants here.
      additionalProperties: false
    OrganizationConfiguration:
      type: object
      required:
        - enforce_sso
      properties:
        connection:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/SsoConnection"
        enforce_sso:
          type: boolean
        jit_role:
          type:
            - string
            - "null"
          description: |-
            The role a person joins with when they sign in without a membership, through the
            organization's own connection or with an email address in one of its verified domains.
            `None` leaves memberships to SCIM and invitations.
        routing_domain:
          type:
            - string
            - "null"
      additionalProperties: false
    OrganizationLoginPolicy:
      type: object
      required:
        - organization_id
        - local_login
        - require_mfa
        - version
      properties:
        guest_role:
          type:
            - string
            - "null"
          description: Explicit custom membership role whose invited, locally managed members may use
            passwords during enforced SSO.
        local_login:
          $ref: "#/components/schemas/LocalLoginPolicy"
        organization_id:
          type: string
        require_mfa:
          type: boolean
        updated_at:
          type:
            - string
            - "null"
          format: date-time
        updated_by:
          type:
            - string
            - "null"
        version:
          type: integer
          format: int64
    OwnedOrganizationCreated:
      type: object
      required:
        - organization
        - membership
        - token
        - session
      properties:
        membership:
          $ref: "#/components/schemas/Membership"
        organization:
          $ref: "#/components/schemas/Organization"
        session:
          $ref: "#/components/schemas/Session"
        token:
          type: string
          description: The owner's session in the new organization.
    PeoplePage:
      type: object
      required:
        - items
        - invitations
        - delegable_roles
      properties:
        delegable_roles:
          type: array
          items:
            type: string
          description: Roles this administrator currently holds sufficient authority to assign.
        invitations:
          type: array
          items:
            $ref: "#/components/schemas/Invitation"
        items:
          type: array
          items:
            $ref: "#/components/schemas/PersonRecord"
        next_cursor:
          type:
            - string
            - "null"
    PermissionBundle:
      type: object
      properties:
        assignments:
          type: array
          items:
            $ref: "#/components/schemas/RoleAssignment"
        grants:
          type: array
          items:
            $ref: "#/components/schemas/ResourceGrant"
        groups:
          type: array
          items:
            $ref: "#/components/schemas/PermissionGroup"
        policy:
          $ref: "#/components/schemas/PortablePolicy"
        relationships:
          type: array
          items:
            $ref: "#/components/schemas/Relationship"
        resources:
          type: array
          items:
            $ref: "#/components/schemas/ManagedResource"
        roles:
          type: array
          items:
            $ref: "#/components/schemas/RoleDefinition"
        subject_attributes:
          type: object
          additionalProperties:
            $ref: "#/components/schemas/Attributes"
          propertyNames:
            type: string
      additionalProperties: false
    PermissionChange:
      oneOf:
        - type: object
          required:
            - role
            - kind
          properties:
            kind:
              type: string
              enum:
                - put_role
            role:
              $ref: "#/components/schemas/RoleDefinition"
        - type: object
          required:
            - name
            - kind
          properties:
            kind:
              type: string
              enum:
                - delete_role
            name:
              type: string
        - type: object
          required:
            - assignment
            - kind
          properties:
            assignment:
              $ref: "#/components/schemas/RoleAssignment"
            kind:
              type: string
              enum:
                - put_assignment
        - type: object
          required:
            - id
            - kind
          properties:
            id:
              type: string
            kind:
              type: string
              enum:
                - delete_assignment
        - type: object
          required:
            - group
            - kind
          properties:
            group:
              $ref: "#/components/schemas/PermissionGroup"
            kind:
              type: string
              enum:
                - put_group
        - type: object
          required:
            - id
            - kind
          properties:
            id:
              type: string
            kind:
              type: string
              enum:
                - delete_group
        - type: object
          required:
            - resource
            - kind
          properties:
            kind:
              type: string
              enum:
                - put_resource
            resource:
              $ref: "#/components/schemas/ResourceInput"
        - type: object
          required:
            - resource
            - kind
          properties:
            kind:
              type: string
              enum:
                - delete_resource
            resource:
              $ref: "#/components/schemas/Resource"
        - type: object
          required:
            - grant
            - kind
          properties:
            grant:
              $ref: "#/components/schemas/ResourceGrant"
            kind:
              type: string
              enum:
                - put_grant
        - type: object
          required:
            - id
            - kind
          properties:
            id:
              type: string
            kind:
              type: string
              enum:
                - delete_grant
        - type: object
          required:
            - relationship
            - kind
          properties:
            kind:
              type: string
              enum:
                - put_relationship
            relationship:
              $ref: "#/components/schemas/Relationship"
        - type: object
          required:
            - id
            - kind
          properties:
            id:
              type: string
            kind:
              type: string
              enum:
                - delete_relationship
        - type: object
          required:
            - attributes
            - kind
          properties:
            attributes:
              $ref: "#/components/schemas/AttributeInput"
            kind:
              type: string
              enum:
                - put_subject_attributes
        - type: object
          required:
            - kind
          properties:
            kind:
              type: string
              enum:
                - migrate_legacy
    PermissionGroup:
      type: object
      required:
        - id
        - name
        - members
      properties:
        id:
          type: string
        members:
          type: array
          items:
            $ref: "#/components/schemas/PrincipalRef"
        name:
          type: string
      additionalProperties: false
    PermissionSnapshot:
      type: object
      required:
        - organization_id
        - revision
        - policy_version
        - local
        - subjects
        - roles
        - managed_assignments
        - managed_groups
      properties:
        local:
          $ref: "#/components/schemas/PermissionBundle"
        managed_assignments:
          type: array
          items:
            $ref: "#/components/schemas/AssignmentRecord"
        managed_groups:
          type: array
          items:
            $ref: "#/components/schemas/GroupRecord"
        organization_id:
          type: string
        policy_version:
          type: string
        revision:
          type: integer
          format: int64
        roles:
          type: array
          items:
            $ref: "#/components/schemas/RoleRecord"
        subjects:
          type: array
          items:
            $ref: "#/components/schemas/SubjectRecord"
    PersonRecord:
      type: object
      required:
        - membership
        - sources
        - directory_managed
        - sessions
      properties:
        directory_managed:
          type: boolean
        display_name:
          type:
            - string
            - "null"
        email:
          type:
            - string
            - "null"
        membership:
          $ref: "#/components/schemas/Membership"
        sessions:
          type: array
          items:
            $ref: "#/components/schemas/Session"
        sources:
          type: array
          items:
            type: string
    Pkce:
      type: string
      description: Whether a client's authorization requests must use PKCE.
      enum:
        - required
        - optional
    PolicyComparison:
      type: object
      required:
        - subject_id
        - action
      properties:
        action:
          type: string
        context:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        subject_id:
          type: string
      additionalProperties: false
    PolicyComparisonResult:
      type: object
      required:
        - subject_id
        - action
        - current
        - candidate
      properties:
        action:
          type: string
        candidate:
          type: boolean
        current:
          type: boolean
        resource:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        subject_id:
          type: string
    PolicyEffect:
      type: string
      enum:
        - allow
        - deny
        - require
    PolicyRule:
      type: object
      required:
        - id
        - effect
        - actions
      properties:
        actions:
          type: array
          items:
            type: string
        conditions:
          type: array
          items:
            $ref: "#/components/schemas/Condition"
        effect:
          $ref: "#/components/schemas/PolicyEffect"
        id:
          type: string
        principals:
          type: array
          items:
            $ref: "#/components/schemas/PrincipalRef"
        resource_type:
          type:
            - string
            - "null"
      additionalProperties: false
    PolicyVersion:
      type: object
      required:
        - id
        - base_revision
        - bundle
        - status
        - comparison_count
      properties:
        base_revision:
          type: integer
          format: int64
        bundle:
          $ref: "#/components/schemas/ExportBundle"
        comparison_count:
          type: integer
          format: int32
          minimum: 0
        id:
          type: string
        status:
          $ref: "#/components/schemas/PolicyVersionStatus"
    PolicyVersionStatus:
      type: string
      description: Lifecycle of a drafted policy version. Activating a version retires the previously
        active one.
      enum:
        - draft
        - validated
        - active
        - retired
    PortablePolicy:
      type: object
      required:
        - schema_version
        - combining
      properties:
        attribute_rules:
          type: array
          items:
            $ref: "#/components/schemas/AttributeRule"
        combining:
          type: string
        relations:
          type: array
          items:
            $ref: "#/components/schemas/RelationDefinition"
        rules:
          type: array
          items:
            $ref: "#/components/schemas/PolicyRule"
        schema_version:
          type: string
      additionalProperties: false
    PortalContext:
      type: object
      required:
        - session
        - operations
        - expires_at
      properties:
        expires_at:
          type: string
          format: date-time
          description: Effective expiry of the administration credential.
        operations:
          type: array
          items:
            type: string
        session:
          $ref: "#/components/schemas/Session"
    PortalEntry:
      type: object
      required:
        - entry_url
        - expires_in
      properties:
        entry_url:
          type: string
        expires_in:
          type: integer
          format: int32
          minimum: 0
    PortalEntryRequest:
      type: object
      required:
        - organization_id
        - session_token
      properties:
        operations:
          type: array
          items:
            type: string
        organization_id:
          type: string
        session_token:
          type: string
      additionalProperties: false
    PortalExchange:
      type: object
      required:
        - code
      properties:
        code:
          type: string
      additionalProperties: false
    PortalSession:
      type: object
      required:
        - credential
        - session
        - operations
        - expires_at
      properties:
        credential:
          type: string
        expires_at:
          type: string
          format: date-time
          description: Effective expiry of the administration credential.
        operations:
          type: array
          items:
            type: string
        session:
          $ref: "#/components/schemas/Session"
    PrincipalRef:
      oneOf:
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - user
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - service_account
        - type: object
          required:
            - id
            - type
          properties:
            id:
              type: string
            type:
              type: string
              enum:
                - group
    PrincipalType:
      type: string
      enum:
        - user
        - service_account
    ProviderDescriptor:
      type: object
      required:
        - provider
        - capabilities
      properties:
        capabilities:
          type: array
          items:
            type: string
        provider:
          type: string
    RecoveryIssued:
      type: object
      required:
        - expires_at
        - emailed
      properties:
        emailed:
          type: boolean
        expires_at:
          type: string
          format: date-time
        reset_url:
          type:
            - string
            - "null"
    RecoveryRequest:
      type: object
      properties:
        reset_factors:
          type: boolean
          description: Also remove the authenticator and recovery codes, for a holder who lost them.
        send_email:
          type: boolean
          description: |-
            Email the reset link to the account's address. Without email, give the returned link to
            the verified holder directly.
      additionalProperties: false
    RefreshTokens:
      type: string
      description: Whether a client receives refresh tokens, and whether they may outlive the browser session.
      enum:
        - disabled
        - session
        - offline
    RegisterDirectorySchema:
      type: object
      required:
        - schema
      properties:
        expected_version:
          type:
            - integer
            - "null"
          format: int64
        schema:
          $ref: "#/components/schemas/DirectorySchema"
      additionalProperties: false
    RelationDefinition:
      type: object
      required:
        - name
        - actions
      properties:
        actions:
          type: array
          items:
            type: string
        inherit:
          type: boolean
        name:
          type: string
      additionalProperties: false
    Relationship:
      type: object
      required:
        - id
        - from
        - relation
        - to
      properties:
        from:
          $ref: "#/components/schemas/NodeRef"
        id:
          type: string
        relation:
          type: string
        to:
          $ref: "#/components/schemas/NodeRef"
      additionalProperties: false
    ReplayRequest:
      type: object
      required:
        - event_id
      properties:
        event_id:
          type: string
      additionalProperties: false
    ResolvedAlias:
      type: object
      required:
        - user_id
      properties:
        user_id:
          type: string
    Resource:
      type: object
      required:
        - type
        - id
      properties:
        id:
          type: string
        type:
          type: string
      additionalProperties: false
    ResourceCreated:
      type: object
      required:
        - resource
      properties:
        delivery_id:
          type:
            - string
            - "null"
        introspection_secret:
          type:
            - string
            - "null"
          description: The resource server's introspection secret; its username is the resource ID. Shown once.
        resource:
          $ref: "#/components/schemas/OAuthResource"
    ResourceGrant:
      type: object
      required:
        - id
        - principal
        - resource
        - actions
      properties:
        actions:
          type: array
          items:
            type: string
        id:
          type: string
        inherit:
          type: boolean
        principal:
          $ref: "#/components/schemas/PrincipalRef"
        resource:
          $ref: "#/components/schemas/Resource"
      additionalProperties: false
    ResourceInput:
      type: object
      required:
        - resource
      properties:
        attributes:
          type: object
          additionalProperties: {}
          propertyNames:
            type: string
        parent:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
        resource:
          $ref: "#/components/schemas/Resource"
        ttl_seconds:
          type: integer
          format: int32
          minimum: 0
      additionalProperties: false
    ResourceList:
      type: object
      required:
        - resources
      properties:
        resources:
          type: array
          items:
            $ref: "#/components/schemas/OAuthResource"
    ResourceSettings:
      type: object
      required:
        - uri
        - name
        - scopes
      properties:
        machine_access:
          type: boolean
        name:
          type: string
        scopes:
          type: array
          items:
            $ref: "#/components/schemas/ScopeDefinition"
        tool_permissions:
          type: object
          description: |-
            For an MCP server: the permission each tool needs, by tool name. The resource's AuthZEN
            evaluation endpoint permits a `tools/call` only when the person holds that permission in
            the organization they approved, and refuses a tool missing from this map.
          additionalProperties:
            type: string
          propertyNames:
            type: string
        uri:
          type: string
      additionalProperties: false
    ResourceState:
      type: object
      required:
        - resource_type
        - resource_id
        - version
        - deleted
        - data
      properties:
        data: {}
        deleted:
          type: boolean
        resource_id:
          type: string
        resource_type:
          type: string
        version:
          type: integer
          format: int64
    RevocationReceipt:
      type: object
      required:
        - sessions
        - exchanges
      properties:
        exchanges:
          type: integer
          format: int64
          minimum: 0
        sessions:
          type: integer
          format: int64
          minimum: 0
    RevokeGrants:
      type: object
      properties:
        client:
          type:
            - string
            - "null"
          description: Internal client ID.
        grant_id:
          type:
            - string
            - "null"
        organization_id:
          type:
            - string
            - "null"
        resource:
          type:
            - string
            - "null"
        user_id:
          type:
            - string
            - "null"
      additionalProperties: false
    RevokeSessions:
      type: object
      required:
        - user_id
      properties:
        session_id:
          type:
            - string
            - "null"
        user_id:
          type: string
      additionalProperties: false
    RevokedGrants:
      type: object
      required:
        - revoked
      properties:
        revoked:
          type: integer
          format: int64
          minimum: 0
    RoleAssignment:
      type: object
      required:
        - id
        - principal
        - role
      properties:
        id:
          type: string
        inherit:
          type: boolean
        principal:
          $ref: "#/components/schemas/PrincipalRef"
        role:
          type: string
        scope:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Resource"
      additionalProperties: false
    RoleDefinition:
      type: object
      required:
        - name
        - permissions
      properties:
        name:
          type: string
        permissions:
          type: array
          items:
            type: string
      additionalProperties: false
    RoleRecord:
      allOf:
        - $ref: "#/components/schemas/RoleDefinition"
        - type: object
          required:
            - version
            - source
          properties:
            source:
              $ref: "#/components/schemas/RoleSource"
            version:
              type: integer
              format: int64
    RoleSource:
      type: string
      description: Who defines a stored role.
      enum:
        - local
        - bootstrap
        - legacy
    RotateKey:
      type: object
      properties:
        publish_seconds:
          type:
            - integer
            - "null"
          format: int32
          description: |-
            Seconds before the new key signs. Defaults to the configured publication delay; relying
            parties need that long to see it in the key set.
          minimum: 0
      additionalProperties: false
    RotateMachineKey:
      type: object
      required:
        - overlap_seconds
      properties:
        overlap_seconds:
          type: integer
          format: int32
          minimum: 0
      additionalProperties: false
    RotationRequest:
      type: object
      required:
        - expected_version
        - overlap_seconds
      properties:
        expected_version:
          type: integer
          format: int64
        overlap_seconds:
          type: integer
          format: int32
          minimum: 0
      additionalProperties: false
    SamlServiceProvider:
      type: object
      required:
        - entity_id
        - acs_url
      properties:
        acs_url:
          type: string
          description: The assertion consumer service URL, which receives HTTP-POST responses.
        entity_id:
          type: string
          description: The SP entity ID, which is also the metadata URL.
    ScimAttribute:
      type: object
      required:
        - name
        - type
      properties:
        caseExact:
          type: boolean
        multiValued:
          type: boolean
        mutability:
          type: string
        name:
          type: string
        required:
          type: boolean
        returned:
          type: string
        subAttributes:
          type: array
          items:
            $ref: "#/components/schemas/ScimAttribute"
        type:
          type: string
        uniqueness:
          type: string
      additionalProperties: false
    ScimErrorDocument:
      type: object
      required:
        - schemas
        - status
        - detail
      properties:
        detail:
          type: string
        schemas:
          type: array
          items:
            type: string
        scimType:
          type:
            - string
            - "null"
        status:
          type: string
    ScimPatch:
      type: object
      required:
        - schemas
        - Operations
      properties:
        Operations:
          type: array
          items:
            $ref: "#/components/schemas/ScimPatchOperation"
        schemas:
          type: array
          items:
            type: string
    ScimPatchOperation:
      type: object
      required:
        - op
      properties:
        op:
          type: string
        path:
          type:
            - string
            - "null"
        value: {}
    ScimResourceKind:
      type: string
      description: A SCIM resource type a directory provisions.
      enum:
        - User
        - Group
    ScopeDefinition:
      type: object
      required:
        - name
        - description
      properties:
        description:
          type: string
        name:
          type: string
    SearchKind:
      type: string
      enum:
        - resources
        - subjects
        - actions
    SecretIssued:
      type: object
      required:
        - secret
      properties:
        secret:
          type: string
          description: Shown once; only its hash is stored.
    ServiceAccount:
      type: object
      required:
        - id
        - organization_id
        - name
        - description
        - enabled
        - credential_epoch
        - version
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
        credential_epoch:
          type: integer
          format: int64
        description:
          type: string
        enabled:
          type: boolean
        id:
          type: string
        name:
          type: string
        organization_id:
          type: string
        retired_at:
          type:
            - string
            - "null"
          format: date-time
        updated_at:
          type: string
          format: date-time
        version:
          type: integer
          format: int64
    ServiceAccountSettings:
      type: object
      required:
        - name
      properties:
        description:
          type: string
        enabled:
          type: boolean
        name:
          type: string
      additionalProperties: false
    ServiceProviderDetails:
      type: object
      description: What a customer's identity provider needs to know about this deployment.
      required:
        - oidc_redirect_uris
      properties:
        oidc_redirect_uris:
          type: array
          items:
            type: string
          description: "Redirect URIs to register at a customer OIDC provider: sign-in first, then login tests."
        saml:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/SamlServiceProvider"
              description: The native SAML service provider. `None` when the deployment's identity broker serves
                SAML.
    Session:
      type: object
      required:
        - id
        - user_id
        - organization_id
        - created_at
        - expires_at
      properties:
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        id:
          type: string
        organization_id:
          type: string
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
        user_id:
          type: string
    SessionIssued:
      type: object
      required:
        - token
        - session
      properties:
        session:
          $ref: "#/components/schemas/Session"
        token:
          type: string
    SetErrorDocument:
      type: object
      description: Schema of the body that `SetError` produces.
      required:
        - err
        - description
      properties:
        description:
          type: string
        err:
          type: string
    SigningKey:
      type: object
      required:
        - id
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        expires_at:
          type:
            - string
            - "null"
          format: date-time
        id:
          type: string
    SnapshotRequest:
      type: object
      properties:
        types:
          type: array
          items:
            type: string
      additionalProperties: false
    SsoConnection:
      oneOf:
        - type: object
          required:
            - subject_attribute
            - protocol
          properties:
            metadata_url:
              type:
                - string
                - "null"
              description: >-
                Public HTTPS address of the identity provider's metadata. While the version is
                active,

                the runtime fetches it every hour and applies changed signing certificates on its
                own.

                A change to the entity ID or sign-in URL still needs a new tested draft.
            metadata_xml:
              type: string
              description: >-
                The identity provider's metadata. Leave it empty when `metadata_url` is set: the
                runtime

                fetches the document when the draft is saved and stores it here.
            protocol:
              type: string
              enum:
                - saml
            subject_attribute:
              type: string
        - type: object
          required:
            - issuer
            - client_id
            - client_secret_ref
            - subject_claim
            - protocol
          properties:
            client_id:
              type: string
            client_secret_ref:
              type: string
            issuer:
              type: string
            protocol:
              type: string
              enum:
                - oidc
            subject_claim:
              type: string
            upstream_idp:
              type:
                - string
                - "null"
    StartDiscovery:
      type: object
      required:
        - redirect_uri
        - state
        - exchange_challenge
      properties:
        exchange_challenge:
          type: string
        redirect_uri:
          type: string
          description: |-
            One of the application redirect URIs configured for a connection of the service's
            organizations.
        state:
          type: string
      additionalProperties: false
    StartLogin:
      type: object
      required:
        - organization_id
        - connection_id
        - redirect_uri
        - state
        - exchange_challenge
      properties:
        connection_id:
          type: string
        exchange_challenge:
          type: string
        invitation_token:
          type:
            - string
            - "null"
          description: |-
            For the local connection under the invitation registration policy: the invitation token
            that permits registration with the invited address.
        organization_id:
          type: string
        redirect_uri:
          type: string
        signup:
          type: boolean
          description: "For the local connection: open the registration page instead of sign-in."
        state:
          type: string
      additionalProperties: false
    StartOnboarding:
      type: object
      required:
        - connection_id
        - redirect_uri
        - state
        - exchange_challenge
      properties:
        connection_id:
          type: string
          description: The local authentication connection ID.
        exchange_challenge:
          type: string
        redirect_uri:
          type: string
        signup:
          type: boolean
          description: Open the registration page instead of sign-in.
        state:
          type: string
      additionalProperties: false
    StreamStatus:
      type: object
      required:
        - receiver_id
        - stream_id
        - verified
        - verification_pending
      properties:
        receiver_id:
          type: string
        stream_id:
          type: string
        verification_pending:
          type: boolean
        verified:
          type: boolean
    SubjectRecord:
      type: object
      required:
        - id
        - active
      properties:
        active:
          type: boolean
        directory_links:
          type: array
          items:
            $ref: "#/components/schemas/DirectoryIdentity"
        display_name:
          type:
            - string
            - "null"
        id:
          type: string
        principal_type:
          $ref: "#/components/schemas/PrincipalType"
    Subscription:
      type: object
      required:
        - id
        - organization_id
        - label
        - endpoint
        - event_types
        - enabled
        - include_profile
        - version
        - created_at
        - signing_keys
      properties:
        created_at:
          type: string
          format: date-time
        enabled:
          type: boolean
        endpoint:
          type: string
        event_types:
          type: array
          items:
            type: string
        id:
          type: string
        include_profile:
          type: boolean
        label:
          type: string
        organization_id:
          type: string
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
        signing_keys:
          type: array
          items:
            $ref: "#/components/schemas/SigningKey"
        version:
          type: integer
          format: int64
    SubscriptionInput:
      type: object
      required:
        - label
        - endpoint
        - event_types
      properties:
        endpoint:
          type: string
        event_types:
          type: array
          items:
            type: string
        include_profile:
          type: boolean
          description: |-
            Add each user's current email, verification, display name and external ID under
            `data.profile` in user events. A service needs the `profiles:read` scope to turn it on.
        label:
          type: string
      additionalProperties: false
    SubscriptionRevoke:
      type: object
      required:
        - expected_version
      properties:
        expected_version:
          type: integer
          format: int64
      additionalProperties: false
    SubscriptionUpdate:
      type: object
      required:
        - expected_version
        - label
        - endpoint
        - event_types
        - enabled
      properties:
        enabled:
          type: boolean
        endpoint:
          type: string
        event_types:
          type: array
          items:
            type: string
        expected_version:
          type: integer
          format: int64
        include_profile:
          type: boolean
          description: |-
            Add each user's current email, verification, display name and external ID under
            `data.profile` in user events. A service needs the `profiles:read` scope to turn it on.
        label:
          type: string
      additionalProperties: false
    SynchronizationStatus:
      type: object
      required:
        - revision
        - synchronized_revision
        - pending
        - maximum_stale_access_seconds
      properties:
        maximum_stale_access_seconds:
          type: integer
          format: int32
          minimum: 0
        pending:
          type: integer
          format: int64
          minimum: 0
        revision:
          type: integer
          format: int64
        synchronized_revision:
          type: integer
          format: int64
    TenantRecord:
      type: object
      description: An organization's enterprise administration as stored.
      required:
        - organization_id
        - customer_connection_id
        - recovery_connection_id
        - source
        - enabled_at
        - enabled_by
      properties:
        customer_connection_id:
          type: string
        enabled_at:
          type: string
          format: date-time
        enabled_by:
          type: string
        infrastructure:
          type:
            - string
            - "null"
          description: The identity broker profile, or `None` for native SAML.
        organization_id:
          type: string
        recovery_connection_id:
          type: string
        source:
          $ref: "#/components/schemas/TenantSource"
    TenantSource:
      type: string
      description: Where an organization's enterprise administration was turned on.
      enum:
        - config
        - operator
    UpdateLoginPolicy:
      type: object
      required:
        - local_login
        - require_mfa
        - expected_version
      properties:
        expected_version:
          type: integer
          format: int64
          description: The version the caller read. A concurrent change fails with a conflict.
        guest_role:
          type:
            - string
            - "null"
          description: Explicit custom membership role whose invited, locally managed members may use
            passwords during enforced SSO.
        local_login:
          $ref: "#/components/schemas/LocalLoginPolicy"
        require_mfa:
          type: boolean
      additionalProperties: false
    UpdateServiceAccount:
      allOf:
        - $ref: "#/components/schemas/ServiceAccountSettings"
        - type: object
          required:
            - expected_version
          properties:
            expected_version:
              type: integer
              format: int64
    User:
      type: object
      required:
        - id
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
        display_name:
          type:
            - string
            - "null"
        email:
          type:
            - string
            - "null"
          description: Only a verified upstream email is retained.
        external_id:
          type:
            - string
            - "null"
          description: The vendor application's own ID for this user, when the user import API set one.
        id:
          type: string
        updated_at:
          type: string
          format: date-time
    UserAliasMapping:
      type: object
      description: One reviewed association between a product's record and an existing canonical user.
      required:
        - external_id
        - user_id
      properties:
        external_id:
          type: string
        user_id:
          type: string
      additionalProperties: false
    UserAliasReport:
      type: object
      required:
        - results
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/UserAliasResult"
          description: Every row must be ready or already linked before any alias is applied.
    UserAliasResult:
      type: object
      required:
        - external_id
        - user_id
        - status
      properties:
        existing_user_id:
          type:
            - string
            - "null"
          description: The canonical user holding this product alias before the reviewed batch, when one exists.
        external_id:
          type: string
        status:
          $ref: "#/components/schemas/UserAliasStatus"
        user_id:
          type: string
    UserAliasReview:
      type: object
      description: A batch names the product's backend service and the source of the operator's reviewed
        mappings.
      required:
        - product_id
        - source
        - mode
        - mappings
      properties:
        mappings:
          type: array
          items:
            $ref: "#/components/schemas/UserAliasMapping"
        mode:
          $ref: "#/components/schemas/AliasReviewMode"
        product_id:
          type: string
        source:
          type: string
      additionalProperties: false
    UserAliasStatus:
      type: string
      enum:
        - ready
        - already_linked
        - unknown_user
        - conflict
        - linked
    UserImport:
      type: object
      description: One user from a vendor application's existing user table.
      required:
        - external_id
      properties:
        display_name:
          type:
            - string
            - "null"
        email:
          type:
            - string
            - "null"
          description: The login email address. Without one, the user gets no local account.
        email_verified:
          type: boolean
          description: The application already verified the address, so the account needs no verification email.
        external_id:
          type: string
          description: The application's own ID for the user. Importing the same ID again matches the same user.
        memberships:
          type: array
          items:
            $ref: "#/components/schemas/ImportMembership"
        password_hash:
          type:
            - string
            - "null"
          description: |-
            A bounded Argon2 PHC or Django PBKDF2-SHA256 hash. A successful local sign-in upgrades a
            legacy hash to Argon2id at the deployment's configured cost.
      additionalProperties: false
    UserImportMode:
      type: string
      description: Whether an operator import may create a local sign-in method.
      enum:
        - identity_only
        - local_account
    UserImportOutcome:
      type: string
      description: How an import found its user.
      enum:
        - created
        - matched_external_id
        - matched_email
    UserImportRequest:
      type: object
      required:
        - users
      properties:
        mode:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/UserImportMode"
              description: Defaults to local accounts when configured, otherwise identity-only.
        users:
          type: array
          items:
            $ref: "#/components/schemas/UserImport"
          description: At most 500 users. Each one imports on its own, so one failure leaves the others in
            place.
      additionalProperties: false
    UserImportResponse:
      type: object
      required:
        - results
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/UserImportResult"
          description: One result per requested user, in request order.
    UserImportResult:
      type: object
      required:
        - external_id
      properties:
        error:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/ErrorDetail"
        external_id:
          type: string
        imported:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/UserImported"
              description: What the import changed. `None` when the user failed.
    UserImported:
      type: object
      description: What an import changed for one user.
      required:
        - user_id
        - outcome
        - password_set
        - memberships_added
      properties:
        memberships_added:
          type: array
          items:
            type: string
          description: Organizations where the import added a membership. An existing membership keeps its role.
        outcome:
          $ref: "#/components/schemas/UserImportOutcome"
        password_set:
          type: boolean
          description: The import installed the password hash. An existing password is never replaced.
        user_id:
          type: string
    VendorResource:
      type: object
      description: One resource's current state in the vendor-wide listing.
      required:
        - organization_id
        - resource_type
        - resource_id
        - version
        - deleted
        - data
      properties:
        data: {}
        deleted:
          type: boolean
        organization_id:
          type: string
        resource_id:
          type: string
        resource_type:
          type: string
        version:
          type: integer
          format: int64
    VendorStatePage:
      type: object
      required:
        - items
        - checkpoint
      properties:
        checkpoint:
          type: string
          description: |-
            A feed cursor at the position the listing started at. After the last page, poll
            `GET /v1/events` from it with the same `types` and apply only events whose
            `resourceversion` is newer than the stored resource's version.
        items:
          type: array
          items:
            $ref: "#/components/schemas/VendorResource"
          description: Current resources, tombstones included, ordered by organization, type and ID.
        next_page_token:
          type:
            - string
            - "null"
          description: Pass as `page_token` for the next page. `None` on the last page.
    VendorSubscription:
      type: object
      description: A webhook that tells a service to poll the vendor-wide feed.
      required:
        - id
        - service_id
        - label
        - endpoint
        - created_at
        - failures
      properties:
        created_at:
          type: string
          format: date-time
        endpoint:
          type: string
        failures:
          type: integer
          format: int32
          description: Failed notices since the last success.
        id:
          type: string
        label:
          type: string
        last_attempt_at:
          type:
            - string
            - "null"
          format: date-time
        last_error:
          type:
            - string
            - "null"
        last_http_status:
          type:
            - integer
            - "null"
          format: int32
        revoked_at:
          type:
            - string
            - "null"
          format: date-time
        service_id:
          type: string
    VendorSubscriptionInput:
      type: object
      required:
        - label
        - endpoint
      properties:
        endpoint:
          type: string
          description: |-
            Receives a signed `events.available` notice when the service's organizations have new
            events, at most about once a second.
        label:
          type: string
      additionalProperties: false
    VerifiedLogin:
      type: object
      description: A verified sign-in for an application that keeps its own users and sessions.
      required:
        - user
        - organization_id
        - connection_id
        - authenticated_at
        - amr
      properties:
        acr:
          type:
            - string
            - "null"
          description: Authentication context class, when the identity provider reported one.
        amr:
          type: array
          items:
            type: string
          description: Authentication methods (RFC 8176), such as `pwd`, `otp` or `hwk`, when the sign-in
            reported them.
        authenticated_at:
          type: string
          format: date-time
          description: When the identity provider or local connection verified the user.
        connection_id:
          type: string
          description: The connection the user signed in with.
        membership:
          oneOf:
            - type: "null"
            - $ref: "#/components/schemas/Membership"
              description: >-
                The user's membership in the organization, or null when the sign-in admitted the
                user

                without one.
        organization_id:
          type: string
        user:
          $ref: "#/components/schemas/User"
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
  - bearer: []
