---
openapi: 3.1.0
info:
  version: 1.0.0
  title: Kisi API
  description: |
    ## Introduction

    Welcome to the Kisi API documentation. Before you read further, please read
    the general [Kisi Docs portal](https://docs.kisi.io/).

    <!-- theme: info -->
    > If you want to be notified by email about updates to our API, please subscribe to our
    > [newsletter](https://2e2bc.share.hsforms.com/2OsdqtC8xRHGQ2yaS16AF7w).

    ### Format

    The Kisi API supports JSON only, so please set `Accept` and `Content-Type`
    to `application/json`. All requests and responses will use JSON as the
    format for any data encompassed in the body of requests and responses.

    ```http
    <METHOD> <URL> HTTP/1.1
    Accept: application/json
    Content-Type: application/json
    ```

    ### Authentication

    Most calls to the API will require an authenticated user. If such a user
    is not present, you will receive a 401 response.
    For more information about authentication, see the [Kisi Docs portal](https://docs.kisi.io/api/get_started/add_necessary_headers).

    API calls must be made using HTTPS. Any calls made over plain HTTP will fail.

    ### Rate limits

    For authenticated API requests, you can make up to 5 requests per second,
    per user. Note that the limit applies per user, so requests made using
    different logins for the same user share the same quota.

    For unauthenticated requests, you can make up to 5 requests per second, per
    IP address.

    The following endpoints have custom rate limits:

    | Endpoint                   | Limit            |
    |----------------------------|------------------|
    | `POST /event_sets`         | 1 per second     |
    | `POST /signed_upload_urls` | 1 per 10 seconds |

    If you exceed the rate limit, a 429 response will be returned.

    Some best practices:
    - If you're making requests for a single user, do so serially, *not* concurrently.
    - If you're making a large number of requests for a single user, wait at least one second between each request.

    We reserve the right to change these limits as needed to ensure availability.

    ### Deprecations

    In the event that some part of the API has to be deprecated, we do the following:

      1. Return the `Deprecation` header with the date of when the endpoint is deprecated.
      2. Return the `Sunset` header with the date of when the endpoint can be expected to not function anymore.
      3. When the `Sunset` date is reached, the endpoint may go away at any time.

    We recommend listening to these headers to avoid disruptions.

    ### Error codes

    Some endpoints return an error code and a message. In the table below all error codes are listed.

    | Error code | Message                                                                                         |
    |------------|-------------------------------------------------------------------------------------------------|
    | `afc507`   | The authentication link is not valid.                                                           |
    | `afc546`   | Invalid Two Factor backup code.                                                                 |
    | `faa9ff`   | The card is not activated.                                                                      |
    | `faa9ef`   | The card was not found.                                                                         |
    | `afc496`   | Access denied.                                                                                  |
    | `f29aef`   | Your link is invalid.                                                                           |
    | `afc516`   | Wrong email address or password.                                                                |
    | `afc536`   | Invalid Two Factor verification code.                                                           |
    | `afc526`   | Please provide a Two Factor verification code.                                                  |
    | `afc516`   | The two factor pin is invalid                                                                   |
    | `ffffff`   | An unexpected issue occured.                                                                    |
    | `fcd8ef`   | Access denied.                                                                                  |
    | `fcd8ff`   | Access disabled.                                                                                |
    | `cabbeb`   | A card with the same identifiers was already enrolled.                                          |
    | `bb4fff`   | Please authorize Kisi for Bluetooth.                                                            |
    | `bb5bff`   | No nearby Kisi reader found. Try enabling Bluetooth on your device.                             |
    | `bb4bff`   | Please enable Bluetooth.                                                                        |
    | `a7793f`   | Please authorize Kisi for location services.                                                    |
    | `a3799f`   | Please enable your location services.                                                           |
    | `a3793f`   | Please enable your location services.                                                           |
    | `f298cf`   | The place has disabled all links for you.                                                       |
    | `f298df`   | Your access rights for this place do not include links.                                         |
    | `f298bf`   | Your access right is invalid.                                                                   |
    | `f01337`   | Your group's access rights for this place do not include apps.                                  |
    | `34bd8f`   | Your device is not the primary one.                                                             |
    | `facced`   | Unable to decode the certificate.                                                               |
    | `bbb99f`   | Your location is not valid.                                                                     |
    | `bbb93f`   | The location of the lock is invalid.                                                            |
    | `a3995f`   | You are too far away.                                                                           |
    | `bb4faa`   | You're not close enough to the door.                                                            |
    | `bbc93f`   | In-app access is disabled by the organization. Please tap your phone against the reader.        |
    | `34ffaa`   | Your access is not allowed at this moment, please try again later.                              |
    | `f35ade`   | Your access is no longer valid.                                                                 |
    | `f398de`   | Your access is invalid.,                                                                        |
    | `f358de`   | Your access is not yet valid, please try again later.                                           |
    | `fad334`   | An error occurred permitting the the elevator stop.                                             |
    | `fad121`   | The elevator stop was not found.                                                                |
    | `fad122`   | The elevator stop was not configured.                                                           |
    | `fad123`   | The elevator stops are locked down.                                                             |
    | `fad124`   | The elevator stop was on schedule.                                                              |
    | `fad002`   | The place is currently locked down.                                                             |
    | `ff420a`   | The door has no assigned Kisi controller.                                                       |
    | `fad001`   | The door is currently locked down.                                                              |
    | `fad105`   | The door is improperly configured.                                                              |
    | `fad10e`   | The door could not be found.                                                                    |
    | `fad110`   | The door is already scheduled to be unlocked.                                                   |
    | `fad137`   | The access was denied by the zone.                                                              |
    | `fad146`   | The third party zone was overriden but it is still armed.                                       |
    | `fad10f`   | An error occurred connecting to the wireless lock.                                              |
    | `fad106`   | An error occurred finding the wireless lock.                                                    |
    | `fad107`   | The wireless lock is offline.                                                                   |
    | `fad112`   | An unlock is already in progress for the wireless lock.                                         |
    | `fac001`   | The Kisi controller is currently unavailable.                                                   |
    | `fac002`   | The Kisi controller is currently unavailable.                                                   |
    | `fac003`   | The Kisi device is currently unavailable.                                                       |
    | `fac004`   | The Kisi device is currently unavailable.                                                       |
    | `fad108`   | The Kisi controller is not yet configured.                                                      |
    | `ecc123`   | The Kisi controller encountered an unhandled error.                                             |
    | `fbc000`   | The Kisi controller firmware is being updated. This will take a few seconds. Please retry then. |
    | `aaa345`   | The zone has no assigned zone controller.                                                       |
    | `fad126`   | The zone could not be found.                                                                    |
    | `fad129`   | The alarm controller is currently unavailable.                                                  |
    | `adf234`   | An error occurred resetting the zone.                                                           |
    | `fad144`   | The third party alarm is still in violation.                                                    |
    | `abbb11`   | The integration partner experienced an error.                                                   |
    | `abcc11`   | An integration partner resource could not be found.                                             |
    | `abdd11`   | The communication with the integration partner failed.                                          |
    | `abee11`   | Authorization with the integration partner failed.                                              |
    | `abfe11`   | The integration is not acceptable                                                               |
    | `abff11`   | The integration is disabled.                                                                    |
  contact:
    name: Kisi Support
    email: support@getkisi.com
servers:
- url: https://api.kisi.io
  description: Kisi Production
components:
  schemas:
    Error:
      description: Schema describing errors.
      type: object
      properties:
        error:
          type: string
          description: The error message.
          example: Wrong email address or password.
        code:
          type: string
          description: An identifier of the error.
          example: afc516
      required:
      - error
      - code
    Errors:
      description: Schema describing validation errors.
      type: object
      properties:
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          example:
            email:
            - can't be blank or invalid
            password:
            - can't be blank
      required:
      - errors
    OauthError:
      description: Schema describing oauth errors.
      type: object
      properties:
        error:
          type: string
          description: The type of the error.
          example: invalid_redirect_uri.
        error_description:
          type: string
          description: The description of the error.
          example: The requested redirect uri is malformed or doesn't match client
            redirect URI.
      required:
      - error
      - error_description
  securitySchemes:
    Webhook-Signature:
      type: apiKey
      in: header
      name: X-Signature
      description: 'Authorize using a signature of the request body. The signature
        is a HMAC-SHA256 hash of the request body using a secret key. <br><br>E.g.
        `X-Signature: 123`'
    Kisi-Login:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorize using a login. Prefix the value with `KISI-LOGIN`<br><br>Example:
        `Authorization: KISI-LOGIN 123`'
    Kisi-Access-Key:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorize using an access key. Prefix the value with `KISI-ACCESS-KEY`<br><br>Example:
        `Authorization: KISI-ACCESS-KEY 123`'
    Kisi-Group-Link:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorize using a group link. Prefix the value with `KISI-GROUP-LINK`<br><br>Example:
        `Authorization: KISI-GROUP-LINK 123`'
    Kisi-Service:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorize using a service. Prefix the value with `KISI-SERVICE`<br><br>Example:
        `Authorization: KISI-SERVICE 123`'
    OAuth2Basic:
      type: http
      scheme: basic
      description: Username is the client id. Password is the client secret.
    OAuth2:
      type: oauth2
      description: 'OAuth access tokens are sent as bearer tokens. Example: `Authorization:
        Bearer youraccesstoken`'
      flows:
        authorizationCode:
          authorizationUrl: https://api.kisi.io/oauth/authorize
          tokenUrl: https://api.kisi.io/oauth/token
          scopes: {}
paths:
  "/calendar/summary":
    get:
      operationId: fetchSummary
      summary: Fetch summary of the events of a scheduleable's schedules
      description: |
        The summary of a given general time interval (the "window") for a given scheduleable (e.g. a specific door) consists of three parts:

        - The effective time intervals within the window when the scheduleable is under the effect of the consequence. This is calculated as the difference of the regular and the exception events.
        - The exceptions time intervals within the window overriding events generated by regular schedules
        - The schedules by day for the window.

        Where:

        - Events are generated by the scheduleable's non-override schedules.
        - Exceptions are generated by the scheduleable's override schedules.

        Please note that you have to pass in either an `elevator_stop_id`, a `group_id`, or a `lock_id` to be used as the scheduleable.
      tags:
      - Calendars
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: around
        in: query
        schema:
          type: string
        required: true
        description: |
          The time range to scope the summary. The timestamp is expected to be in ISO8601 format.

          Supported patterns:
          - Start/End, eg. `2019-03-09T13:00:00Z/2019-03-10T15:30:00Z`
          - Start/Duration, eg. `2019-03-09T13:00:00Z/P1Y2M10D`
          - Duration/End, eg. `PT2H30M/2019-03-09T15:30:00Z`

          Duration on its own (eg. `P1Y2MT1H`) is not supported.
      - name: consequence
        in: query
        schema:
          type: string
          enum:
          - allow
          - first_to_arrive
          - permit
          - unlock
        description: Filter by consequence
        required: true
      - name: elevator_stop_id
        in: query
        schema:
          type: integer
        description: Filter by the id of the scheduled elevator stop
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by the id of the scheduled group
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by the id of the scheduled lock
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Calendar
                properties:
                  events:
                    type: array
                    items:
                      type: object
                      properties:
                        starts_at:
                          type: string
                          format: date-time
                          description: When the interval starts
                        ends_at:
                          type: string
                          format: date-time
                          description: When the interval ends
                      required:
                      - starts_at
                      - ends_at
                  exceptions:
                    type: array
                    items:
                      type: object
                      properties:
                        starts_at:
                          type: string
                          format: date-time
                          description: When the interval starts
                        ends_at:
                          type: string
                          format: date-time
                          description: When the interval ends
                      required:
                      - starts_at
                      - ends_at
                  schedules_by_day:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          format: date
                          description: The date of a day in the time interval
                        schedule_ids:
                          type: array
                          description: Ids of schedules having events on this day
                          items:
                            type: integer
                      required:
                      - date
                      - schedule_ids
                required: []
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cameras":
    get:
      operationId: fetchCameras
      summary: Fetch cameras
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by lock ID
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by camera name, alphabetically
          `-name` sort by camera name in reverse order
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Rhombus Systems Camera
                    properties:
                      id:
                        type: integer
                        description: The ID of the camera
                      resource_type:
                        type: string
                        description: The resource type of the camera
                        const: Camera
                      name:
                        type: string
                        description: The name of the camera
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the camera
                      created_at:
                        type: string
                        format: date-time
                        description: When the camera was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the camera was updated
                      metadata:
                        type: object
                        description: |
                          The metadata for the camera.
                          - Only basic types are allowed: string, null, integer, float, boolean.
                          - Keys have a limit of 50 characters.
                          - Values have a limit of 500 characters.
                          - Keys number is limited to 50.
                      enabled:
                        type: boolean
                        description: 'Whether the camera is enabled or not. Only enabled
                          cameras takes snapshots.

                          '
                      clip_duration:
                        type: integer
                        minimum: 3
                        maximum: 60
                        description: Duration in seconds of the video clip to take.
                      number_of_snapshots:
                        type: integer
                        minimum: 1
                        maximum: 9
                        description: The number of snapshots to fetch.
                      remote_id:
                        type: string
                        description: The remote id of the camera.
                      snapshot_offset:
                        type: integer
                        minimum: -30
                        maximum: 30
                        description: Offset in seconds of the clock of the camera
                          if it has a drift from the API.
                      supports_clips:
                        type: boolean
                        description: Whether the camera supports clips.
                      supports_images:
                        type: boolean
                        description: Whether the camera supports images.
                      supports_thumbnails:
                        type: boolean
                        description: Whether the camera supports thumbnails.
                      status:
                        type: string
                        enum:
                        - online
                        - offline
                        description: Whether the camera is online or offline.
                      status_changed_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the camera connectivity status last changed.
                      place_id:
                        type: integer
                        description: The place ID of the camera
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the camera
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the camera
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      type:
                        type: string
                        const: rhombus_systems
                        description: The type of the camera.
                      integration_id:
                        type: integer
                        description: The integration ID of the camera
                      integration:
                        type: object
                        title: Integration
                        description: The integration of the camera
                        properties:
                          id:
                            type: integer
                            description: The ID of the integration
                          resource_type:
                            type: string
                            description: The resource type of the integration
                            const: Integration
                          name:
                            type: string
                            description: The name of the integration
                          type:
                            type: string
                            enum:
                            - rhombus_systems_camera
                            description: The type of the integration.
                        required:
                        - id
                        - resource_type
                        - name
                        - type
                        additionalProperties: false
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - metadata
                    - enabled
                    - clip_duration
                    - number_of_snapshots
                    - remote_id
                    - snapshot_offset
                    - supports_clips
                    - supports_images
                    - supports_thumbnails
                    - status
                    - status_changed_at
                    - place_id
                    - lock_id
                    - type
                    - integration_id
                    - integration
                    additionalProperties: false
                  - type: object
                    title: Generic Camera
                    properties:
                      id:
                        type: integer
                        description: The ID of the camera
                      resource_type:
                        type: string
                        description: The resource type of the camera
                        const: Camera
                      name:
                        type: string
                        description: The name of the camera
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the camera
                      created_at:
                        type: string
                        format: date-time
                        description: When the camera was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the camera was updated
                      metadata:
                        type: object
                        description: |
                          The metadata for the camera.
                          - Only basic types are allowed: string, null, integer, float, boolean.
                          - Keys have a limit of 50 characters.
                          - Values have a limit of 500 characters.
                          - Keys number is limited to 50.
                      enabled:
                        type: boolean
                        description: 'Whether the camera is enabled or not. Only enabled
                          cameras takes snapshots.

                          '
                      clip_duration:
                        type: integer
                        minimum: 3
                        maximum: 60
                        description: Duration in seconds of the video clip to take.
                      number_of_snapshots:
                        type: integer
                        minimum: 1
                        maximum: 9
                        description: The number of snapshots to fetch.
                      remote_id:
                        type: string
                        description: The remote id of the camera.
                      snapshot_offset:
                        type: integer
                        minimum: -30
                        maximum: 30
                        description: Offset in seconds of the clock of the camera
                          if it has a drift from the API.
                      supports_clips:
                        type: boolean
                        description: Whether the camera supports clips.
                      supports_images:
                        type: boolean
                        description: Whether the camera supports images.
                      supports_thumbnails:
                        type: boolean
                        description: Whether the camera supports thumbnails.
                      status:
                        type: string
                        enum:
                        - online
                        - offline
                        description: Whether the camera is online or offline.
                      status_changed_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the camera connectivity status last changed.
                      place_id:
                        type: integer
                        description: The place ID of the camera
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the camera
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the camera
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      type:
                        type: string
                        const: generic
                        description: The type of the camera.
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - metadata
                    - enabled
                    - clip_duration
                    - number_of_snapshots
                    - remote_id
                    - snapshot_offset
                    - supports_clips
                    - supports_images
                    - supports_thumbnails
                    - status
                    - status_changed_at
                    - place_id
                    - lock_id
                    - type
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createCamera
      summary: Create camera
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Camera
              properties:
                camera:
                  type: object
                  properties:
                    clip_duration:
                      type: integer
                      minimum: 3
                      maximum: 60
                      description: Duration in seconds of the video clip to take.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the camera
                    metadata:
                      type: object
                      description: |
                        The metadata for the camera.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    enabled:
                      type: boolean
                      description: 'Whether the camera is enabled or not. Only enabled
                        cameras takes snapshots.

                        '
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the camera
                    name:
                      type: string
                      description: The name of the camera
                    number_of_snapshots:
                      type: integer
                      minimum: 1
                      maximum: 9
                      description: The number of snapshots to fetch.
                    place_id:
                      type: integer
                      description: The place ID of the camera
                    remote_id:
                      type: string
                      description: The remote id of the camera.
                    snapshot_offset:
                      type: integer
                      minimum: -30
                      maximum: 30
                      description: Offset in seconds of the clock of the camera if
                        it has a drift from the API.
                    supports_clips:
                      type: boolean
                      description: Whether the camera supports clips.
                    supports_images:
                      type: boolean
                      description: Whether the camera supports images.
                    supports_thumbnails:
                      type: boolean
                      description: Whether the camera supports thumbnails.
                  required:
                  - lock_id
                  - remote_id
              required:
              - camera
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Generic Camera
                properties:
                  id:
                    type: integer
                    description: The ID of the camera
                  resource_type:
                    type: string
                    description: The resource type of the camera
                    const: Camera
                  name:
                    type: string
                    description: The name of the camera
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the camera
                  created_at:
                    type: string
                    format: date-time
                    description: When the camera was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the camera was updated
                  metadata:
                    type: object
                    description: |
                      The metadata for the camera.
                      - Only basic types are allowed: string, null, integer, float, boolean.
                      - Keys have a limit of 50 characters.
                      - Values have a limit of 500 characters.
                      - Keys number is limited to 50.
                  enabled:
                    type: boolean
                    description: 'Whether the camera is enabled or not. Only enabled
                      cameras takes snapshots.

                      '
                  clip_duration:
                    type: integer
                    minimum: 3
                    maximum: 60
                    description: Duration in seconds of the video clip to take.
                  number_of_snapshots:
                    type: integer
                    minimum: 1
                    maximum: 9
                    description: The number of snapshots to fetch.
                  remote_id:
                    type: string
                    description: The remote id of the camera.
                  snapshot_offset:
                    type: integer
                    minimum: -30
                    maximum: 30
                    description: Offset in seconds of the clock of the camera if it
                      has a drift from the API.
                  supports_clips:
                    type: boolean
                    description: Whether the camera supports clips.
                  supports_images:
                    type: boolean
                    description: Whether the camera supports images.
                  supports_thumbnails:
                    type: boolean
                    description: Whether the camera supports thumbnails.
                  status:
                    type: string
                    enum:
                    - online
                    - offline
                    description: Whether the camera is online or offline.
                  status_changed_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the camera connectivity status last changed.
                  place_id:
                    type: integer
                    description: The place ID of the camera
                  lock_id:
                    type:
                    - integer
                    - 'null'
                    description: The lock ID of the camera
                  lock:
                    type: object
                    title: Lock
                    description: The lock of the camera
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      resource_type:
                        type: string
                        description: The resource type of the lock
                        const: Lock
                      name:
                        type: string
                        description: The name of the lock
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  type:
                    type: string
                    const: generic
                    description: The type of the camera.
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - metadata
                - enabled
                - clip_duration
                - number_of_snapshots
                - remote_id
                - snapshot_offset
                - supports_clips
                - supports_images
                - supports_thumbnails
                - status
                - status_changed_at
                - place_id
                - lock_id
                - type
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cameras/{id}":
    get:
      operationId: fetchCamera
      summary: Fetch a camera
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Rhombus Systems Camera
                  properties:
                    id:
                      type: integer
                      description: The ID of the camera
                    resource_type:
                      type: string
                      description: The resource type of the camera
                      const: Camera
                    name:
                      type: string
                      description: The name of the camera
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the camera
                    created_at:
                      type: string
                      format: date-time
                      description: When the camera was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the camera was updated
                    metadata:
                      type: object
                      description: |
                        The metadata for the camera.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    enabled:
                      type: boolean
                      description: 'Whether the camera is enabled or not. Only enabled
                        cameras takes snapshots.

                        '
                    clip_duration:
                      type: integer
                      minimum: 3
                      maximum: 60
                      description: Duration in seconds of the video clip to take.
                    number_of_snapshots:
                      type: integer
                      minimum: 1
                      maximum: 9
                      description: The number of snapshots to fetch.
                    remote_id:
                      type: string
                      description: The remote id of the camera.
                    snapshot_offset:
                      type: integer
                      minimum: -30
                      maximum: 30
                      description: Offset in seconds of the clock of the camera if
                        it has a drift from the API.
                    supports_clips:
                      type: boolean
                      description: Whether the camera supports clips.
                    supports_images:
                      type: boolean
                      description: Whether the camera supports images.
                    supports_thumbnails:
                      type: boolean
                      description: Whether the camera supports thumbnails.
                    status:
                      type: string
                      enum:
                      - online
                      - offline
                      description: Whether the camera is online or offline.
                    status_changed_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the camera connectivity status last changed.
                    place_id:
                      type: integer
                      description: The place ID of the camera
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the camera
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the camera
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      type: string
                      const: rhombus_systems
                      description: The type of the camera.
                    integration_id:
                      type: integer
                      description: The integration ID of the camera
                    integration:
                      type: object
                      title: Integration
                      description: The integration of the camera
                      properties:
                        id:
                          type: integer
                          description: The ID of the integration
                        resource_type:
                          type: string
                          description: The resource type of the integration
                          const: Integration
                        name:
                          type: string
                          description: The name of the integration
                        type:
                          type: string
                          enum:
                          - rhombus_systems_camera
                          description: The type of the integration.
                      required:
                      - id
                      - resource_type
                      - name
                      - type
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - metadata
                  - enabled
                  - clip_duration
                  - number_of_snapshots
                  - remote_id
                  - snapshot_offset
                  - supports_clips
                  - supports_images
                  - supports_thumbnails
                  - status
                  - status_changed_at
                  - place_id
                  - lock_id
                  - type
                  - integration_id
                  - integration
                  additionalProperties: false
                - type: object
                  title: Generic Camera
                  properties:
                    id:
                      type: integer
                      description: The ID of the camera
                    resource_type:
                      type: string
                      description: The resource type of the camera
                      const: Camera
                    name:
                      type: string
                      description: The name of the camera
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the camera
                    created_at:
                      type: string
                      format: date-time
                      description: When the camera was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the camera was updated
                    metadata:
                      type: object
                      description: |
                        The metadata for the camera.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    enabled:
                      type: boolean
                      description: 'Whether the camera is enabled or not. Only enabled
                        cameras takes snapshots.

                        '
                    clip_duration:
                      type: integer
                      minimum: 3
                      maximum: 60
                      description: Duration in seconds of the video clip to take.
                    number_of_snapshots:
                      type: integer
                      minimum: 1
                      maximum: 9
                      description: The number of snapshots to fetch.
                    remote_id:
                      type: string
                      description: The remote id of the camera.
                    snapshot_offset:
                      type: integer
                      minimum: -30
                      maximum: 30
                      description: Offset in seconds of the clock of the camera if
                        it has a drift from the API.
                    supports_clips:
                      type: boolean
                      description: Whether the camera supports clips.
                    supports_images:
                      type: boolean
                      description: Whether the camera supports images.
                    supports_thumbnails:
                      type: boolean
                      description: Whether the camera supports thumbnails.
                    status:
                      type: string
                      enum:
                      - online
                      - offline
                      description: Whether the camera is online or offline.
                    status_changed_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the camera connectivity status last changed.
                    place_id:
                      type: integer
                      description: The place ID of the camera
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the camera
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the camera
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      type: string
                      const: generic
                      description: The type of the camera.
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - metadata
                  - enabled
                  - clip_duration
                  - number_of_snapshots
                  - remote_id
                  - snapshot_offset
                  - supports_clips
                  - supports_images
                  - supports_thumbnails
                  - status
                  - status_changed_at
                  - place_id
                  - lock_id
                  - type
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateCamera
      summary: Update a camera
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Camera
              properties:
                camera:
                  type: object
                  properties:
                    clip_duration:
                      type: integer
                      minimum: 3
                      maximum: 60
                      description: Duration in seconds of the video clip to take.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the camera
                    metadata:
                      type: object
                      description: |
                        The metadata for the camera.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    enabled:
                      type: boolean
                      description: 'Whether the camera is enabled or not. Only enabled
                        cameras takes snapshots.

                        '
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the camera
                    name:
                      type: string
                      description: The name of the camera
                    number_of_snapshots:
                      type: integer
                      minimum: 1
                      maximum: 9
                      description: The number of snapshots to fetch.
                    snapshot_offset:
                      type: integer
                      minimum: -30
                      maximum: 30
                      description: Offset in seconds of the clock of the camera if
                        it has a drift from the API.
                    supports_clips:
                      type: boolean
                      description: Whether the camera supports clips.
                    supports_images:
                      type: boolean
                      description: Whether the camera supports images.
                    supports_thumbnails:
                      type: boolean
                      description: Whether the camera supports thumbnails.
                    status:
                      type: string
                      enum:
                      - online
                      - offline
                      description: Whether the camera is online or offline.
                  required: []
              required:
              - camera
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteCamera
      summary: Delete a camera
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/cameras/{id}/video_link":
    get:
      operationId: fetchVideoLink
      summary: Fetch a camera video link
      tags:
      - Cameras
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      - name: timestamp
        in: query
        schema:
          type: string
          format: date-time
        description: The timestamp of when the stream should start.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: The video url.
                required: []
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/card_assignments":
    get:
      operationId: fetchCardAssignments
      summary: Fetch card assignments
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: assignee_type
        in: query
        schema:
          type: string
          enum:
          - User
          - Guest
        description: Filter by assignee type
      - name: assignee_id
        in: query
        schema:
          type: integer
        description: Filter by assignee ID. Must be used with `assignee_type`
      - name: status
        in: query
        schema:
          type: string
          enum:
          - activated
          - deactivated
        description: Filter by status
      - name: card_id
        in: query
        schema:
          type: string
        description: Filter by card IDs
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
        deprecated: true
      - deprecated: true
        name: guest_id
        in: query
        schema:
          type: integer
        description: Filter by guest ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Card Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the card assignment
                    resource_type:
                      type: string
                      description: The resource type of the card assignment
                      const: CardAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the card assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card assignment was updated
                    status:
                      enum:
                      - activated
                      - deactivated
                      type: string
                      description: The status of the card assignment.
                    two_factor_pin:
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the card assignment.
                    send_two_factor_pin_notification:
                      type: boolean
                      description: Whether to send a notification to the assignee
                        when the two factor pin is set/changed.
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The assignee type of the card assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the card assignment
                    card_id:
                      type: integer
                      description: The card ID of the card assignment
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      description: The created_by type of the card assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the card assignment
                    created_by:
                      type: object
                      description: The created_by of the card assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the card assignment
                      deprecated: true
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card assignment
                      deprecated: true
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - status
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  - assignee_type
                  - assignee_id
                  - card_id
                  - created_by_type
                  - created_by_id
                  - guest_id
                  - user_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createCardAssignment
      summary: Create card assignment
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Card Assignment
              properties:
                card_assignment:
                  type: object
                  properties:
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The assignee type of the card assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the card assignment
                    card_id:
                      type: integer
                      description: The card ID of the card assignment
                    two_factor_pin:
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the card assignment.
                    send_two_factor_pin_notification:
                      type: boolean
                      description: Whether to send a notification to the assignee
                        when the two factor pin is set/changed.
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card assignment
                      deprecated: true
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the card assignment
                      deprecated: true
                  required:
                  - assignee_type
                  - assignee_id
                  - card_id
              required:
              - card_assignment
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Card Assignment
                properties:
                  id:
                    type: integer
                    description: The ID of the card assignment
                  resource_type:
                    type: string
                    description: The resource type of the card assignment
                    const: CardAssignment
                  created_at:
                    type: string
                    format: date-time
                    description: When the card assignment was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the card assignment was updated
                  status:
                    enum:
                    - activated
                    - deactivated
                    type: string
                    description: The status of the card assignment.
                  two_factor_pin:
                    type:
                    - string
                    - 'null'
                    pattern: "^[0-9]{4}$"
                    description: Pin code used as two factor authentication for the
                      card assignment.
                  send_two_factor_pin_notification:
                    type: boolean
                    description: Whether to send a notification to the assignee when
                      the two factor pin is set/changed.
                  assignee_type:
                    type: string
                    enum:
                    - User
                    - Guest
                    description: The assignee type of the card assignment
                  assignee_id:
                    type: integer
                    description: The assignee ID of the card assignment
                  card_id:
                    type: integer
                    description: The card ID of the card assignment
                  created_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - User
                    description: The created_by type of the card assignment
                  created_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The created_by ID of the card assignment
                  created_by:
                    type: object
                    description: The created_by of the card assignment
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                  guest_id:
                    type:
                    - integer
                    - 'null'
                    description: The guest ID of the card assignment
                    deprecated: true
                  user_id:
                    type:
                    - integer
                    - 'null'
                    description: The user ID of the card assignment
                    deprecated: true
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - status
                - two_factor_pin
                - send_two_factor_pin_notification
                - assignee_type
                - assignee_id
                - card_id
                - created_by_type
                - created_by_id
                - guest_id
                - user_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/card_assignments/{id}":
    get:
      operationId: fetchCardAssignment
      summary: Fetch card assignment
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Card Assignment
                properties:
                  id:
                    type: integer
                    description: The ID of the card assignment
                  resource_type:
                    type: string
                    description: The resource type of the card assignment
                    const: CardAssignment
                  created_at:
                    type: string
                    format: date-time
                    description: When the card assignment was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the card assignment was updated
                  status:
                    enum:
                    - activated
                    - deactivated
                    type: string
                    description: The status of the card assignment.
                  two_factor_pin:
                    type:
                    - string
                    - 'null'
                    pattern: "^[0-9]{4}$"
                    description: Pin code used as two factor authentication for the
                      card assignment.
                  send_two_factor_pin_notification:
                    type: boolean
                    description: Whether to send a notification to the assignee when
                      the two factor pin is set/changed.
                  assignee_type:
                    type: string
                    enum:
                    - User
                    - Guest
                    description: The assignee type of the card assignment
                  assignee_id:
                    type: integer
                    description: The assignee ID of the card assignment
                  card_id:
                    type: integer
                    description: The card ID of the card assignment
                  created_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - User
                    description: The created_by type of the card assignment
                  created_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The created_by ID of the card assignment
                  created_by:
                    type: object
                    description: The created_by of the card assignment
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                  guest_id:
                    type:
                    - integer
                    - 'null'
                    description: The guest ID of the card assignment
                    deprecated: true
                  user_id:
                    type:
                    - integer
                    - 'null'
                    description: The user ID of the card assignment
                    deprecated: true
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - status
                - two_factor_pin
                - send_two_factor_pin_notification
                - assignee_type
                - assignee_id
                - card_id
                - created_by_type
                - created_by_id
                - guest_id
                - user_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateCardAssignment
      summary: Update card assignment
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Card Assignment
              properties:
                card_assignment:
                  type: object
                  properties:
                    two_factor_pin:
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the card assignment.
                    send_two_factor_pin_notification:
                      type: boolean
                      description: Whether to send a notification to the assignee
                        when the two factor pin is set/changed.
                  required: []
              required:
              - card_assignment
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteCardAssignment
      summary: Delete card assignment
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/card_assignments/{id}/activate":
    post:
      operationId: activateCardAssignment
      summary: Activate card assignment by id
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/card_assignments/{id}/deactivate":
    post:
      operationId: deactivateCardAssignment
      summary: Deactivate card assignment by id
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/card_assignments/{activation_token}/activate_with_token":
    post:
      operationId: activateCardAssignmentWithActivationToken
      summary: Activate card assignment with activation token
      tags:
      - Card assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: activation_token
        schema:
          type: string
        in: path
        description: The activation token of the card assignment.
        required: true
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards":
    get:
      operationId: fetchCards
      summary: Fetch cards
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: status
        in: query
        schema:
          type: string
          enum:
          - activated
          - deactivated
          - unassigned
        description: Filter by status
      - name: token
        in: query
        schema:
          type: string
        description: Filter by the token of the card.
      - name: data_block_value
        in: query
        schema:
          type: string
        description: Filter by the data_block_value of the card. Only relevant for
          Mifare Classic cards.
      - name: uid
        in: query
        schema:
          type: string
        description: Filter by the uid of the card.
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
        deprecated: true
      - name: facility_code
        in: query
        schema:
          type: integer
        description: Filter by the facility code of the record. Only relevant for
          LF cards.
      - name: activated
        in: query
        deprecated: true
        schema:
          type: boolean
        description: Filter by the activation status of the card.
      - name: card_number
        in: query
        schema:
          type: integer
        description: Filter by the card number of the record. Only relevant for LF
          cards.
      - name: card_id
        in: query
        schema:
          type: integer
        description: Filter by the card id of the record. Only relevant for LF cards.
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - last_used_at
          - "-last_used_at"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `last_used_at` - sort by when the card was last used
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Mifare Desfire Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      token:
                        type: string
                        description: The token of the Card.
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - mifare_desfire
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - card-black-1.0
                        - card-black-1.1
                        - card-black-2.0
                        - card-white-1.0
                        - card-white-1.1
                        - card-white-2.0
                        - card-custom-1.1
                        - fob-1.0
                        - fob-1.1
                        - fob-2.0
                        - tag-1.0
                        - tag-1.1
                        - tag-2.0
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - HF
                        description: The frequency of the Card.
                      color:
                        type: string
                        enum:
                        - white
                        - black
                        - custom
                        - unknown
                        description: The color of the Card.
                      form_factor:
                        type: string
                        enum:
                        - card
                        - fob
                        - tag
                        - unknown
                        description: The form factor of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - false
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - token
                    - uid
                    - type
                    - model
                    - frequency
                    - color
                    - form_factor
                    - third_party
                    additionalProperties: false
                  - type: object
                    title: Third Party HF Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_hf
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - HF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    additionalProperties: false
                  - type: object
                    title: Third Party HF Mifare Classic Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      type:
                        type: string
                        enum:
                        - third_party_hf_mifare_classic
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - HF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      data_block_value:
                        type: string
                        description: The data block value used in the Card.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - type
                    - model
                    - frequency
                    - third_party
                    - data_block_value
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID Corporate1000 35-bit Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_corporate1000_35
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_corporate1000_35
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID H10301 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10301
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_h10301
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID H10302 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10302
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_h10302
                        description: The format in which a card is programmed.
                      card_number:
                        type: integer
                        description: The card number of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - card_number
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID H10304 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10304
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_h10304
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID H2004064 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h2004064
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_h2004064
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    additionalProperties: false
                  - type: object
                    title: Third Party LF Em410x26 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_em_410x_26
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - em_410x_26
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF Em410x3234 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_em_410x_32_34
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - em_410x_32_34
                        description: The format in which a card is programmed.
                      card_id:
                        type: integer
                        description: The card id of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - card_id
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF Keyscan C15001 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_keyscan_c15001
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - keyscan_c15001
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      oem:
                        type: integer
                        description: The oem of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    - oem
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF HID D10202 Formatted Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_d10202
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      format_name:
                        type: string
                        enum:
                        - hid_d10202
                        description: The format in which a card is programmed.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - format_name
                    - facility_code
                    - card_number
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: Third Party LF Card
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-lf
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - LF
                        description: The frequency of the Card.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                      two_factor_pin:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        pattern: "^[0-9]{4}$"
                        description: Pin code used as two factor authentication for
                          the Card.
                      send_two_factor_pin_notification:
                        deprecated: true
                        type: boolean
                        description: Whether to send a notification to the user when
                          the two factor pin is set/changed.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    - two_factor_pin
                    - send_two_factor_pin_notification
                    additionalProperties: false
                  - type: object
                    title: QR Code
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        maxLength: 2000
                        description: The decoded value of the QR code.
                      type:
                        type: string
                        enum:
                        - third_party_qr_code
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-optical
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - optical
                        description: The frequency.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    additionalProperties: false
                  - type: object
                    title: Barcode
                    properties:
                      id:
                        type: integer
                        description: The ID of the card
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was last used.
                      created_at:
                        type: string
                        format: date-time
                        description: When the card was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the card was updated
                      assigned:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is assigned.
                      assigned_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was assigned.
                      activated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was activated.
                      deactivated_at:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the Card was deactivated.
                      activated:
                        deprecated: true
                        type: boolean
                        description: Whether the Card is activated.
                      assigned_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The assigned_by ID of the card
                        deprecated: true
                      assigned_by:
                        type: object
                        title: User
                        description: The assigned_by of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the card
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the card
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      uid:
                        type: string
                        maxLength: 2000
                        description: The decoded value of the barcode.
                      type:
                        type: string
                        enum:
                        - third_party_barcode
                        description: The type of the Card.
                      model:
                        type: string
                        enum:
                        - credential-third-party-optical
                        description: The model of the Card.
                      frequency:
                        type: string
                        enum:
                        - optical
                        description: The frequency.
                      third_party:
                        type: boolean
                        enum:
                        - true
                        description: Whether the Card is manufactured by a third party,
                          and not by Kisi.
                    required:
                    - id
                    - last_used_at
                    - created_at
                    - updated_at
                    - assigned
                    - assigned_at
                    - activated_at
                    - deactivated_at
                    - activated
                    - assigned_by_id
                    - user_id
                    - uid
                    - type
                    - model
                    - frequency
                    - third_party
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createCard
      summary: Create card
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Mifare Desfire Card
                properties:
                  card:
                    type: object
                    properties:
                      token:
                        type: string
                        description: The token of the Card.
                      type:
                        type: string
                        enum:
                        - mifare_desfire
                        description: The type of the Card.
                    required:
                    - token
                    - type
                required:
                - card
              - type: object
                title: Third Party HF Card
                properties:
                  card:
                    type: object
                    properties:
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_hf
                        description: The type of the Card.
                    required:
                    - uid
                    - type
                required:
                - card
              - type: object
                title: Third Party HF Mifare Classic Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_hf_mifare_classic
                        description: The type of the Card.
                      data_block_value:
                        type: string
                        description: The data block value used in the Card.
                    required:
                    - type
                    - data_block_value
                required:
                - card
              - type: object
                title: Third Party LF HID Corporate1000 35-bit Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_corporate1000_35
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF HID H10301 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10301
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF HID H10302 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10302
                        description: The type of the Card.
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF HID H10304 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h10304
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF HID H2004064 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_h2004064
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF Em410x26 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_em_410x_26
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF Em410x3234 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_em_410x_32_34
                        description: The type of the Card.
                      card_id:
                        type: integer
                        description: The card id of the Card
                    required:
                    - type
                    - card_id
                required:
                - card
              - type: object
                title: Third Party LF Keyscan C15001 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_keyscan_c15001
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                      oem:
                        type: integer
                        description: The oem of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                    - oem
                required:
                - card
              - type: object
                title: Third Party LF HID D10202 Formatted Card
                properties:
                  card:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - third_party_lf_hid_d10202
                        description: The type of the Card.
                      facility_code:
                        type: integer
                        description: The facility code of the Card
                      card_number:
                        type: integer
                        description: The card number of the Card
                    required:
                    - type
                    - facility_code
                    - card_number
                required:
                - card
              - type: object
                title: Third Party LF Card
                properties:
                  card:
                    type: object
                    properties:
                      uid:
                        type: string
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The UID of the Card.
                      type:
                        type: string
                        enum:
                        - third_party_lf
                        description: The type of the Card.
                      length:
                        type: integer
                        description: The bit length of the uid
                    required:
                    - uid
                    - type
                    - length
                required:
                - card
              - type: object
                title: QR Code
                properties:
                  card:
                    type: object
                    properties:
                      uid:
                        type: string
                        maxLength: 2000
                        description: The decoded value of the QR code.
                      type:
                        type: string
                        enum:
                        - third_party_qr_code
                        description: The type of the Card.
                    required:
                    - uid
                    - type
                required:
                - card
              - type: object
                title: Barcode
                properties:
                  card:
                    type: object
                    properties:
                      uid:
                        type: string
                        maxLength: 2000
                        description: The decoded value of the barcode.
                      type:
                        type: string
                        enum:
                        - third_party_barcode
                        description: The type of the Card.
                    required:
                    - uid
                    - type
                required:
                - card
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Mifare Desfire Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    token:
                      type: string
                      description: The token of the Card.
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - mifare_desfire
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - card-black-1.0
                      - card-black-1.1
                      - card-black-2.0
                      - card-white-1.0
                      - card-white-1.1
                      - card-white-2.0
                      - card-custom-1.1
                      - fob-1.0
                      - fob-1.1
                      - fob-2.0
                      - tag-1.0
                      - tag-1.1
                      - tag-2.0
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    color:
                      type: string
                      enum:
                      - white
                      - black
                      - custom
                      - unknown
                      description: The color of the Card.
                    form_factor:
                      type: string
                      enum:
                      - card
                      - fob
                      - tag
                      - unknown
                      description: The form factor of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - false
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - token
                  - uid
                  - type
                  - model
                  - frequency
                  - color
                  - form_factor
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Third Party HF Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_hf
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Third Party HF Mifare Classic Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    type:
                      type: string
                      enum:
                      - third_party_hf_mifare_classic
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    data_block_value:
                      type: string
                      description: The data block value used in the Card.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - type
                  - model
                  - frequency
                  - third_party
                  - data_block_value
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID Corporate1000 35-bit Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_corporate1000_35
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_corporate1000_35
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10301 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10301
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10301
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10302 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10302
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10302
                      description: The format in which a card is programmed.
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10304 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10304
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10304
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H2004064 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h2004064
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h2004064
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  additionalProperties: false
                - type: object
                  title: Third Party LF Em410x26 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_em_410x_26
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - em_410x_26
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Em410x3234 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_em_410x_32_34
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - em_410x_32_34
                      description: The format in which a card is programmed.
                    card_id:
                      type: integer
                      description: The card id of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - card_id
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Keyscan C15001 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_keyscan_c15001
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - keyscan_c15001
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    oem:
                      type: integer
                      description: The oem of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - oem
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID D10202 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_d10202
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_d10202
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: QR Code
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      maxLength: 2000
                      description: The decoded value of the QR code.
                    type:
                      type: string
                      enum:
                      - third_party_qr_code
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-optical
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - optical
                      description: The frequency.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Barcode
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      maxLength: 2000
                      description: The decoded value of the barcode.
                    type:
                      type: string
                      enum:
                      - third_party_barcode
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-optical
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - optical
                      description: The frequency.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards/{id}":
    get:
      operationId: fetchCard
      summary: Fetch card
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Mifare Desfire Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    token:
                      type: string
                      description: The token of the Card.
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - mifare_desfire
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - card-black-1.0
                      - card-black-1.1
                      - card-black-2.0
                      - card-white-1.0
                      - card-white-1.1
                      - card-white-2.0
                      - card-custom-1.1
                      - fob-1.0
                      - fob-1.1
                      - fob-2.0
                      - tag-1.0
                      - tag-1.1
                      - tag-2.0
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    color:
                      type: string
                      enum:
                      - white
                      - black
                      - custom
                      - unknown
                      description: The color of the Card.
                    form_factor:
                      type: string
                      enum:
                      - card
                      - fob
                      - tag
                      - unknown
                      description: The form factor of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - false
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - token
                  - uid
                  - type
                  - model
                  - frequency
                  - color
                  - form_factor
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Third Party HF Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_hf
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Third Party HF Mifare Classic Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    type:
                      type: string
                      enum:
                      - third_party_hf_mifare_classic
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - HF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    data_block_value:
                      type: string
                      description: The data block value used in the Card.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - type
                  - model
                  - frequency
                  - third_party
                  - data_block_value
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID Corporate1000 35-bit Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_corporate1000_35
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_corporate1000_35
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10301 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10301
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10301
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10302 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10302
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10302
                      description: The format in which a card is programmed.
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H10304 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h10304
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h10304
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID H2004064 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_h2004064
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_h2004064
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  additionalProperties: false
                - type: object
                  title: Third Party LF Em410x26 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_em_410x_26
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - em_410x_26
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Em410x3234 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_em_410x_32_34
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - em_410x_32_34
                      description: The format in which a card is programmed.
                    card_id:
                      type: integer
                      description: The card id of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - card_id
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Keyscan C15001 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_keyscan_c15001
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - keyscan_c15001
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    oem:
                      type: integer
                      description: The oem of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - oem
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF HID D10202 Formatted Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf_hid_d10202
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    format_name:
                      type: string
                      enum:
                      - hid_d10202
                      description: The format in which a card is programmed.
                    facility_code:
                      type: integer
                      description: The facility code of the Card
                    card_number:
                      type: integer
                      description: The card number of the Card
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - format_name
                  - facility_code
                  - card_number
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: Third Party LF Card
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The UID of the Card.
                    type:
                      type: string
                      enum:
                      - third_party_lf
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-lf
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - LF
                      description: The frequency of the Card.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  - two_factor_pin
                  - send_two_factor_pin_notification
                  additionalProperties: false
                - type: object
                  title: QR Code
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      maxLength: 2000
                      description: The decoded value of the QR code.
                    type:
                      type: string
                      enum:
                      - third_party_qr_code
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-optical
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - optical
                      description: The frequency.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
                - type: object
                  title: Barcode
                  properties:
                    id:
                      type: integer
                      description: The ID of the card
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was last used.
                    created_at:
                      type: string
                      format: date-time
                      description: When the card was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the card was updated
                    assigned:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is assigned.
                    assigned_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was assigned.
                    activated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was activated.
                    deactivated_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the Card was deactivated.
                    activated:
                      deprecated: true
                      type: boolean
                      description: Whether the Card is activated.
                    assigned_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The assigned_by ID of the card
                      deprecated: true
                    assigned_by:
                      type: object
                      title: User
                      description: The assigned_by of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the card
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the card
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    uid:
                      type: string
                      maxLength: 2000
                      description: The decoded value of the barcode.
                    type:
                      type: string
                      enum:
                      - third_party_barcode
                      description: The type of the Card.
                    model:
                      type: string
                      enum:
                      - credential-third-party-optical
                      description: The model of the Card.
                    frequency:
                      type: string
                      enum:
                      - optical
                      description: The frequency.
                    third_party:
                      type: boolean
                      enum:
                      - true
                      description: Whether the Card is manufactured by a third party,
                        and not by Kisi.
                  required:
                  - id
                  - last_used_at
                  - created_at
                  - updated_at
                  - assigned
                  - assigned_at
                  - activated_at
                  - deactivated_at
                  - activated
                  - assigned_by_id
                  - user_id
                  - uid
                  - type
                  - model
                  - frequency
                  - third_party
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteCard
      summary: Delete card
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateCard
      summary: Update card
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Card
              properties:
                card:
                  type: object
                  properties:
                    two_factor_pin:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      pattern: "^[0-9]{4}$"
                      description: Pin code used as two factor authentication for
                        the Card.
                    send_two_factor_pin_notification:
                      deprecated: true
                      type: boolean
                      description: Whether to send a notification to the user when
                        the two factor pin is set/changed.
                  required: []
              required:
              - card
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards/{id}/assign":
    post:
      operationId: assignCard
      summary: Assign card
      description: |
        Assigns the card to the user as the primary card.
        If the user already has a primary card, it assigns the card as backup.
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Card
              properties:
                card:
                  type: object
                  properties:
                    email:
                      type: string
                      description: The email of the user to assign the card to.
                  required:
                  - email
              required:
              - card
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards/{id}/deassign":
    post:
      operationId: deassignCard
      summary: Deassign card
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards/{id}/activate":
    post:
      operationId: activateCard
      summary: Activate card by id
      description: Activates the card with the given identifier. Only assigned cards
        can be activated.
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/cards/{activationToken}/activate_with_token":
    post:
      operationId: activateCardByToken
      summary: Activate card by activation token
      description: Activates the card with the given activation token. Only assigned
        cards can be activated.
      tags:
      - Cards
      deprecated: true
      parameters:
      - name: activationToken
        schema:
          type: string
        in: path
        description: The activation token of the card.
        required: true
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/cards/{id}/deactivate":
    post:
      operationId: deactivateCard
      summary: Deactivate card by id
      tags:
      - Cards
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_input_connections":
    get:
      operationId: fetchControllerInputConnections
      summary: Fetch controller input connections
      tags:
      - Controller Input Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Contact Sensor Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller input connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      controller_input:
                        type: object
                        title: Controller Input
                        description: The controller_input of the controller input
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller input
                          channel:
                            type: number
                            description: The channel of the controller input
                          name:
                            type: string
                            description: The name of the controller input
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      lock_id:
                        type: integer
                        description: The lock ID of the controller input connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller input connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      type:
                        const: contact_sensor
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 3.0
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_input_id
                    - controller_input
                    - lock_id
                    - lock
                    - type
                    - enabled
                    - duration
                    - end_of_line_type
                    - end_of_line_main_resistor
                    - end_of_line_second_resistor
                    additionalProperties: false
                  - type: object
                    title: Request To Exit Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller input connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      controller_input:
                        type: object
                        title: Controller Input
                        description: The controller_input of the controller input
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller input
                          channel:
                            type: number
                            description: The channel of the controller input
                          name:
                            type: string
                            description: The name of the controller input
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      lock_id:
                        type: integer
                        description: The lock ID of the controller input connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller input connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      type:
                        const: request_to_exit
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - last_to_leave
                        - last_to_unlock
                        - unlock
                        - none
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_input_id
                    - controller_input
                    - lock_id
                    - lock
                    - type
                    - enabled
                    - duration
                    - end_of_line_type
                    - end_of_line_main_resistor
                    - end_of_line_second_resistor
                    - action
                    additionalProperties: false
                  - type: object
                    title: Third Party Alarm Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller input connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      controller_input:
                        type: object
                        title: Controller Input
                        description: The controller_input of the controller input
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller input
                          channel:
                            type: number
                            description: The channel of the controller input
                          name:
                            type: string
                            description: The name of the controller input
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      zone_id:
                        type: integer
                        description: The zone ID of the controller input connection
                      zone:
                        type: object
                        title: Zone
                        description: The zone of the controller input connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the zone
                          name:
                            type: string
                            description: The name of the zone
                        required:
                        - id
                        - name
                        additionalProperties: false
                      type:
                        const: third_party_alarm
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - away
                        - stay
                        - disarmed
                        - violated
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_input_id
                    - controller_input
                    - zone_id
                    - zone
                    - type
                    - action
                    additionalProperties: false
                  - type: object
                    title: Tamper Detection Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller input connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller input connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      controller_input:
                        type: object
                        title: Controller Input
                        description: The controller_input of the controller input
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller input
                          channel:
                            type: number
                            description: The channel of the controller input
                          name:
                            type: string
                            description: The name of the controller input
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      type:
                        const: tamper_detection
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_input_id
                    - controller_input
                    - type
                    - enabled
                    - end_of_line_type
                    - end_of_line_main_resistor
                    - end_of_line_second_resistor
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createControllerInputConnection
      summary: Create a controller input connection
      tags:
      - Controller Input Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Contact Sensor Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      type:
                        const: contact_sensor
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 3.0
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      lock_id:
                        type: integer
                        description: The lock ID of the controller input connection
                    required:
                    - controller_input_id
                    - type
                    - lock_id
                required:
                - controller_input_connection
              - type: object
                title: Request To Exit Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      type:
                        const: request_to_exit
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      lock_id:
                        type: integer
                        description: The lock ID of the controller input connection
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - last_to_leave
                        - last_to_unlock
                        - unlock
                        - none
                    required:
                    - controller_input_id
                    - type
                    - lock_id
                required:
                - controller_input_connection
              - type: object
                title: Third Party Alarm Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      type:
                        const: third_party_alarm
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - away
                        - stay
                        - disarmed
                        - violated
                      zone_id:
                        type: integer
                        description: The zone ID of the controller input connection
                    required:
                    - controller_input_id
                    - type
                    - action
                    - zone_id
                required:
                - controller_input_connection
              - type: object
                title: Tamper Detection Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      controller_input_id:
                        type: integer
                        description: The controller_input ID of the controller input
                          connection
                      type:
                        const: tamper_detection
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                    required:
                    - controller_input_id
                    - type
                required:
                - controller_input_connection
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Contact Sensor Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller input connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      const: contact_sensor
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    duration:
                      type: number
                      format: float
                      minimum: 3.0
                      maximum: 600.0
                      description: The duration of the input
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - lock_id
                  - lock
                  - type
                  - enabled
                  - duration
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  additionalProperties: false
                - type: object
                  title: Request To Exit Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller input connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      const: request_to_exit
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the input
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    action:
                      type: string
                      description: The action of the input
                      enum:
                      - last_to_leave
                      - last_to_unlock
                      - unlock
                      - none
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - lock_id
                  - lock
                  - type
                  - enabled
                  - duration
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  - action
                  additionalProperties: false
                - type: object
                  title: Third Party Alarm Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller input connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                    type:
                      const: third_party_alarm
                    action:
                      type: string
                      description: The action of the input
                      enum:
                      - away
                      - stay
                      - disarmed
                      - violated
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - zone_id
                  - zone
                  - type
                  - action
                  additionalProperties: false
                - type: object
                  title: Tamper Detection Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: tamper_detection
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - type
                  - enabled
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_input_connections/{id}":
    get:
      operationId: fetchControllerInputConnection
      summary: Fetch a controller input connection
      tags:
      - Controller Input Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Contact Sensor Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller input connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      const: contact_sensor
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    duration:
                      type: number
                      format: float
                      minimum: 3.0
                      maximum: 600.0
                      description: The duration of the input
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - lock_id
                  - lock
                  - type
                  - enabled
                  - duration
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  additionalProperties: false
                - type: object
                  title: Request To Exit Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller input connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    type:
                      const: request_to_exit
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the input
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    action:
                      type: string
                      description: The action of the input
                      enum:
                      - last_to_leave
                      - last_to_unlock
                      - unlock
                      - none
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - lock_id
                  - lock
                  - type
                  - enabled
                  - duration
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  - action
                  additionalProperties: false
                - type: object
                  title: Third Party Alarm Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller input connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                    type:
                      const: third_party_alarm
                    action:
                      type: string
                      description: The action of the input
                      enum:
                      - away
                      - stay
                      - disarmed
                      - violated
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - zone_id
                  - zone
                  - type
                  - action
                  additionalProperties: false
                - type: object
                  title: Tamper Detection Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller input connection
                    controller_input_id:
                      type: integer
                      description: The controller_input ID of the controller input
                        connection
                    controller_input:
                      type: object
                      title: Controller Input
                      description: The controller_input of the controller input connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller input
                        channel:
                          type: number
                          description: The channel of the controller input
                        name:
                          type: string
                          description: The name of the controller input
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: tamper_detection
                    enabled:
                      type: boolean
                      description: Whether the input is enabled
                    end_of_line_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - cut_detect
                      - short_detect
                      - cut_and_short_detect
                      -
                      description: The end of line type of the input
                    end_of_line_main_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                    end_of_line_second_resistor:
                      type:
                      - integer
                      - 'null'
                      minimum: 0
                      maximum: 100000
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_input_id
                  - controller_input
                  - type
                  - enabled
                  - end_of_line_type
                  - end_of_line_main_resistor
                  - end_of_line_second_resistor
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateControllerInputConnection
      summary: Update a controller input connection
      tags:
      - Controller Input Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Contact Sensor Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 3.0
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                    required: []
                required:
                - controller_input_connection
              - type: object
                title: Request To Exit Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the input
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - last_to_leave
                        - last_to_unlock
                        - unlock
                        - none
                    required: []
                required:
                - controller_input_connection
              - type: object
                title: Third Party Alarm Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      action:
                        type: string
                        description: The action of the input
                        enum:
                        - away
                        - stay
                        - disarmed
                        - violated
                    required: []
                required:
                - controller_input_connection
              - type: object
                title: Tamper Detection Connection
                properties:
                  controller_input_connection:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        description: Whether the input is enabled
                      end_of_line_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        - cut_detect
                        - short_detect
                        - cut_and_short_detect
                        -
                        description: The end of line type of the input
                      end_of_line_main_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      end_of_line_second_resistor:
                        type:
                        - integer
                        - 'null'
                        minimum: 0
                        maximum: 100000
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller input connection
                    required: []
                required:
                - controller_input_connection
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteControllerInputConnection
      summary: Delete a controller input connection
      tags:
      - Controller Input Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_inputs":
    get:
      operationId: fetchControllerInputs
      summary: Fetch controller inputs
      tags:
      - Controller Inputs
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Controller Input
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller input
                    channel:
                      type: number
                      description: The channel of the controller input
                    name:
                      type: string
                      description: The name of the controller input
                    type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - contact_sensor
                      - request_to_exit
                      -
                      description: 'The type of the controller input. Will only be
                        set for inputs belonging to Controller Pro 1.0 and Controller
                        Pro 1.1 controllers.

                        '
                    status:
                      type: string
                      enum:
                      - open
                      - closed
                      - cut
                      - short
                      description: 'The status of the controller input.

                        '
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller input was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller input was updated
                    controller_id:
                      type: integer
                      description: The controller ID of the controller input
                    controller_input_connection_id:
                      type:
                      - integer
                      - 'null'
                      description: The controller_input_connection ID of the controller
                        input
                  required:
                  - id
                  - channel
                  - name
                  - type
                  - status
                  - created_at
                  - updated_at
                  - controller_id
                  - controller_input_connection_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/controller_relay_connections":
    get:
      operationId: fetchControllerRelayConnections
      summary: Fetch controller relay connections
      tags:
      - Controller Relay Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Lock Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller relay connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      type:
                        const: lock
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. Must not be aux.
                      controller_relay:
                        type: object
                        title: Controller Relay
                        description: The controller_relay of the controller relay
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller relay
                          channel:
                            type: number
                            description: The channel of the controller relay
                          name:
                            type: string
                            description: The name of the controller relay
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      lock_id:
                        type: integer
                        description: The lock ID of the controller relay connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller relay connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - duration
                    - type
                    - controller_relay_id
                    - controller_relay
                    - lock_id
                    - lock
                    additionalProperties: false
                  - type: object
                    title: Elevator Stop Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller relay connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      type:
                        const: elevator_stop
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. Must not be aux.
                      controller_relay:
                        type: object
                        title: Controller Relay
                        description: The controller_relay of the controller relay
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller relay
                          channel:
                            type: number
                            description: The channel of the controller relay
                          name:
                            type: string
                            description: The name of the controller relay
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      elevator_stop_id:
                        type: integer
                        description: The elevator_stop ID of the controller relay
                          connection
                      elevator_stop:
                        type: object
                        title: Elevator Stop
                        description: The elevator_stop of the controller relay connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the elevator stop
                          name:
                            type: string
                            description: The name of the elevator stop
                        required:
                        - id
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - duration
                    - type
                    - controller_relay_id
                    - controller_relay
                    - elevator_stop_id
                    - elevator_stop
                    additionalProperties: false
                  - type: object
                    title: Siren Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller relay connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                      type:
                        const: siren
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. It must be aux if the controller has an aux
                          relay and belong to zone controller.
                      controller_relay:
                        type: object
                        title: Controller Relay
                        description: The controller_relay of the controller relay
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller relay
                          channel:
                            type: number
                            description: The channel of the controller relay
                          name:
                            type: string
                            description: The name of the controller relay
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      zone_id:
                        type: integer
                        description: The zone ID of the controller relay connection
                      zone:
                        type: object
                        title: Zone
                        description: The zone of the controller relay connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the zone
                          name:
                            type: string
                            description: The name of the zone
                        required:
                        - id
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - type
                    - controller_relay_id
                    - controller_relay
                    - zone_id
                    - zone
                    additionalProperties: false
                  - type: object
                    title: Third Party Alarm Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller relay connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller relay connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                      duration_for_away_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to away mode
                      duration_for_stay_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to stay mode
                      type:
                        const: third_party_alarm
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. It must be aux if the controller has an aux
                          relay and belong to zone controller.
                      controller_relay:
                        type: object
                        title: Controller Relay
                        description: The controller_relay of the controller relay
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller relay
                          channel:
                            type: number
                            description: The channel of the controller relay
                          name:
                            type: string
                            description: The name of the controller relay
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      zone_id:
                        type: integer
                        description: The zone ID of the controller relay connection
                      zone:
                        type: object
                        title: Zone
                        description: The zone of the controller relay connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the zone
                          name:
                            type: string
                            description: The name of the zone
                        required:
                        - id
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - duration_for_away_mode
                    - duration_for_stay_mode
                    - type
                    - controller_relay_id
                    - controller_relay
                    - zone_id
                    - zone
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createControllerRelayConnection
      summary: Create a controller relay connection
      tags:
      - Controller Relay Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Controller Relay Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      type:
                        const: lock
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. Must not be aux.
                      lock_id:
                        type: integer
                        description: The lock ID of the controller relay connection
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required:
                    - type
                    - controller_relay_id
                    - lock_id
                required:
                - controller_relay_connection
              - type: object
                title: Controller Relay Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      type:
                        const: elevator_stop
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. Must not be aux.
                      elevator_stop_id:
                        type: integer
                        description: The elevator_stop ID of the controller relay
                          connection
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required:
                    - type
                    - controller_relay_id
                    - elevator_stop_id
                required:
                - controller_relay_connection
              - type: object
                title: Controller Relay Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      type:
                        const: siren
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. It must be aux if the controller has an aux
                          relay and belong to zone controller.
                      zone_id:
                        type: integer
                        description: The zone ID of the controller relay connection
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required:
                    - type
                    - controller_relay_id
                    - zone_id
                required:
                - controller_relay_connection
              - type: object
                title: Third Party Alarm Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      type:
                        const: third_party_alarm
                      controller_relay_id:
                        type: integer
                        description: The controller_relay ID of the controller relay
                          connection. It must be aux if the controller has an aux
                          relay and belong to zone controller.
                      zone_id:
                        type: integer
                        description: The zone ID of the controller relay connection
                      duration_for_away_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to away mode
                      duration_for_stay_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to stay mode
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required:
                    - type
                    - controller_relay_id
                    - zone_id
                required:
                - controller_relay_connection
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Lock Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the relay
                    type:
                      const: lock
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. Must not be aux.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller relay connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration
                  - type
                  - controller_relay_id
                  - controller_relay
                  - lock_id
                  - lock
                  additionalProperties: false
                - type: object
                  title: Elevator Stop Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the relay
                    type:
                      const: elevator_stop
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. Must not be aux.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    elevator_stop_id:
                      type: integer
                      description: The elevator_stop ID of the controller relay connection
                    elevator_stop:
                      type: object
                      title: Elevator Stop
                      description: The elevator_stop of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator stop
                        name:
                          type: string
                          description: The name of the elevator stop
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration
                  - type
                  - controller_relay_id
                  - controller_relay
                  - elevator_stop_id
                  - elevator_stop
                  additionalProperties: false
                - type: object
                  title: Siren Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    type:
                      const: siren
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. It must be aux if the controller has an aux relay
                        and belong to zone controller.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller relay connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - type
                  - controller_relay_id
                  - controller_relay
                  - zone_id
                  - zone
                  additionalProperties: false
                - type: object
                  title: Third Party Alarm Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration_for_away_mode:
                      type:
                      - number
                      - 'null'
                      format: float
                      minimum: 0
                      maximum: 600.0
                      description: The duration of the relay used for changing the
                        zone to away mode
                    duration_for_stay_mode:
                      type:
                      - number
                      - 'null'
                      format: float
                      minimum: 0
                      maximum: 600.0
                      description: The duration of the relay used for changing the
                        zone to stay mode
                    type:
                      const: third_party_alarm
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. It must be aux if the controller has an aux relay
                        and belong to zone controller.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller relay connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration_for_away_mode
                  - duration_for_stay_mode
                  - type
                  - controller_relay_id
                  - controller_relay
                  - zone_id
                  - zone
                  additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_relay_connections/{id}":
    get:
      operationId: fetchControllerRelayConnection
      summary: Fetch a controller relay connection
      tags:
      - Controller Relay Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Lock Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the relay
                    type:
                      const: lock
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. Must not be aux.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the controller relay connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration
                  - type
                  - controller_relay_id
                  - controller_relay
                  - lock_id
                  - lock
                  additionalProperties: false
                - type: object
                  title: Elevator Stop Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration:
                      type: number
                      format: float
                      minimum: 0.5
                      maximum: 600.0
                      description: The duration of the relay
                    type:
                      const: elevator_stop
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. Must not be aux.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    elevator_stop_id:
                      type: integer
                      description: The elevator_stop ID of the controller relay connection
                    elevator_stop:
                      type: object
                      title: Elevator Stop
                      description: The elevator_stop of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator stop
                        name:
                          type: string
                          description: The name of the elevator stop
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration
                  - type
                  - controller_relay_id
                  - controller_relay
                  - elevator_stop_id
                  - elevator_stop
                  additionalProperties: false
                - type: object
                  title: Siren Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    type:
                      const: siren
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. It must be aux if the controller has an aux relay
                        and belong to zone controller.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller relay connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - type
                  - controller_relay_id
                  - controller_relay
                  - zone_id
                  - zone
                  additionalProperties: false
                - type: object
                  title: Third Party Alarm Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller relay connection
                    duration_for_away_mode:
                      type:
                      - number
                      - 'null'
                      format: float
                      minimum: 0
                      maximum: 600.0
                      description: The duration of the relay used for changing the
                        zone to away mode
                    duration_for_stay_mode:
                      type:
                      - number
                      - 'null'
                      format: float
                      minimum: 0
                      maximum: 600.0
                      description: The duration of the relay used for changing the
                        zone to stay mode
                    type:
                      const: third_party_alarm
                    controller_relay_id:
                      type: integer
                      description: The controller_relay ID of the controller relay
                        connection. It must be aux if the controller has an aux relay
                        and belong to zone controller.
                    controller_relay:
                      type: object
                      title: Controller Relay
                      description: The controller_relay of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller relay
                        channel:
                          type: number
                          description: The channel of the controller relay
                        name:
                          type: string
                          description: The name of the controller relay
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the controller relay connection
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the controller relay connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - duration_for_away_mode
                  - duration_for_stay_mode
                  - type
                  - controller_relay_id
                  - controller_relay
                  - zone_id
                  - zone
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateControllerRelayConnection
      summary: Update a controller relay connection
      tags:
      - Controller Relay Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Controller Relay Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required: []
                required:
                - controller_relay_connection
              - type: object
                title: Controller Relay Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      duration:
                        type: number
                        format: float
                        minimum: 0.5
                        maximum: 600.0
                        description: The duration of the relay
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required: []
                required:
                - controller_relay_connection
              - type: object
                title: Third Party Alarm Connection
                properties:
                  controller_relay_connection:
                    type: object
                    properties:
                      duration_for_away_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to away mode
                      duration_for_stay_mode:
                        type:
                        - number
                        - 'null'
                        format: float
                        minimum: 0
                        maximum: 600.0
                        description: The duration of the relay used for changing the
                          zone to stay mode
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller relay connection
                    required: []
                required:
                - controller_relay_connection
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteControllerRelayConnection
      summary: Delete a controller relay connection
      tags:
      - Controller Relay Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_relays":
    get:
      operationId: fetchControllerRelays
      summary: Fetch controller relays
      tags:
      - Controller Relays
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Controller Relay
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller relay
                    channel:
                      type: number
                      description: The channel of the controller relay
                    name:
                      type: string
                      description: The name of the controller relay
                    status:
                      type: string
                      enum:
                      - released
                      - triggered
                      description: The status of the controller relay.
                    aux:
                      type: boolean
                      description: Whether the relay is aux
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller relay was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller relay was updated
                    controller_id:
                      type: integer
                      description: The controller ID of the controller relay
                    controller_relay_connection_id:
                      type:
                      - integer
                      - 'null'
                      description: The controller_relay_connection ID of the controller
                        relay
                  required:
                  - id
                  - channel
                  - name
                  - status
                  - aux
                  - created_at
                  - updated_at
                  - controller_id
                  - controller_relay_connection_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/controllers":
    get:
      operationId: fetchControllers
      summary: Fetch controllers
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`, `device_id`,
          `token`

          '
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by lock ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: status
        in: query
        schema:
          type: string
          enum:
          - online
          - offline
        description: Filter by status
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by group name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Controller
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller
                    resource_type:
                      type: string
                      description: The resource type of the controller
                      const: Controller
                    name:
                      type: string
                      description: The name of the controller
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the controller
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller was updated
                    broadcast_ip_address:
                      type:
                      - string
                      - 'null'
                      description: The broadcast IP address of the controller
                    configured:
                      type: boolean
                      description: Whether the controller is configured
                    device_id:
                      type: string
                      pattern: "^[a-fA-F0-9]{16}$"
                      minLength: 16
                      maxLength: 16
                      description: 'The device ID of the controller

                        '
                    ethernet_mac:
                      type: string
                      description: The ethernet MAC address of the controller
                    gateway_ip_address:
                      type:
                      - string
                      - 'null'
                      description: The gateway IP address of the controller
                    ip_address:
                      type:
                      - string
                      - 'null'
                      description: The IP address of the controller
                    model:
                      type: string
                      enum:
                      - router-8.0
                      - controller-pro-1.1
                      - controller-pro-2.0
                      description: The model of the controller
                    network_interface:
                      type:
                      - string
                      - 'null'
                      enum:
                      - ethernet
                      - wifi
                      -
                      description: The network interface of the controller
                    network:
                      type:
                      - string
                      - 'null'
                      description: The network of the controller
                    online:
                      type: boolean
                      description: Whether the controller is online
                    revision:
                      type: string
                      description: The revision of the controller
                    token:
                      type: string
                      description: The token of the controller
                    wifi_mac:
                      type: string
                      description: The wifi MAC address of the controller
                    zone_controller:
                      type: boolean
                      description: Whether the controller is a zone_controller
                    place_id:
                      type: integer
                      description: The place ID of the controller
                    place:
                      type: object
                      title: Place
                      description: The place of the controller
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - broadcast_ip_address
                  - configured
                  - device_id
                  - ethernet_mac
                  - gateway_ip_address
                  - ip_address
                  - model
                  - network_interface
                  - network
                  - online
                  - revision
                  - token
                  - wifi_mac
                  - zone_controller
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/controllers/{token}/assign":
    post:
      operationId: assignController
      summary: Assign a controller by token
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: token
        in: path
        schema:
          type: string
        description: The token of the controller.
        required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Controller
              properties:
                controller:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the controller
                    place_id:
                      type: integer
                      description: The place ID of the controller
                  required:
                  - name
                  - place_id
              required:
              - controller
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controllers/{id}/deassign":
    post:
      operationId: deassignController
      summary: Deassign a controller
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controllers/{id}/reboot":
    post:
      operationId: rebootController
      summary: Reboot a controller
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/controllers/{id}":
    get:
      operationId: fetchController
      summary: Fetch controller
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Controller
                properties:
                  id:
                    type: integer
                    description: The ID of the controller
                  resource_type:
                    type: string
                    description: The resource type of the controller
                    const: Controller
                  name:
                    type: string
                    description: The name of the controller
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the controller
                  created_at:
                    type: string
                    format: date-time
                    description: When the controller was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the controller was updated
                  broadcast_ip_address:
                    type:
                    - string
                    - 'null'
                    description: The broadcast IP address of the controller
                  configured:
                    type: boolean
                    description: Whether the controller is configured
                  device_id:
                    type: string
                    pattern: "^[a-fA-F0-9]{16}$"
                    minLength: 16
                    maxLength: 16
                    description: 'The device ID of the controller

                      '
                  ethernet_mac:
                    type: string
                    description: The ethernet MAC address of the controller
                  gateway_ip_address:
                    type:
                    - string
                    - 'null'
                    description: The gateway IP address of the controller
                  ip_address:
                    type:
                    - string
                    - 'null'
                    description: The IP address of the controller
                  model:
                    type: string
                    enum:
                    - router-8.0
                    - controller-pro-1.1
                    - controller-pro-2.0
                    description: The model of the controller
                  network_interface:
                    type:
                    - string
                    - 'null'
                    enum:
                    - ethernet
                    - wifi
                    -
                    description: The network interface of the controller
                  network:
                    type:
                    - string
                    - 'null'
                    description: The network of the controller
                  online:
                    type: boolean
                    description: Whether the controller is online
                  revision:
                    type: string
                    description: The revision of the controller
                  token:
                    type: string
                    description: The token of the controller
                  wifi_mac:
                    type: string
                    description: The wifi MAC address of the controller
                  zone_controller:
                    type: boolean
                    description: Whether the controller is a zone_controller
                  place_id:
                    type: integer
                    description: The place ID of the controller
                  place:
                    type: object
                    title: Place
                    description: The place of the controller
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - broadcast_ip_address
                - configured
                - device_id
                - ethernet_mac
                - gateway_ip_address
                - ip_address
                - model
                - network_interface
                - network
                - online
                - revision
                - token
                - wifi_mac
                - zone_controller
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateController
      summary: Update controller
      tags:
      - Controllers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Controller
              properties:
                controller:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the controller
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the controller
                    zone_controller:
                      type: boolean
                      description: Whether the controller is a zone_controller
                  required: []
              required:
              - controller
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/controller_wiegand_connections":
    get:
      operationId: fetchControllerWiegandConnections
      summary: Fetch controller wiegand connections
      tags:
      - Controller Wiegand Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Legacy Reader Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller wiegand connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      controller_wiegand:
                        type: object
                        title: Controller Wiegand
                        description: The controller_wiegand of the controller wiegand
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller wiegand
                          channel:
                            type: number
                            description: The channel of the controller wiegand
                          name:
                            type: string
                            description: The name of the controller wiegand
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      type:
                        const: legacy_reader
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the controller wiegand connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller wiegand connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      elevator_id:
                        type:
                        - integer
                        - 'null'
                        description: The elevator ID of the controller wiegand connection
                      elevator:
                        type: object
                        title: Elevator
                        description: The elevator of the controller wiegand connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the elevator
                          resource_type:
                            type: string
                            description: The resource type of the elevator
                            const: Elevator
                          name:
                            type: string
                            description: The name of the elevator
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_wiegand_id
                    - controller_wiegand
                    - type
                    - lock_id
                    - elevator_id
                    additionalProperties: false
                  - type: object
                    title: Legacy Controller Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller wiegand connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      controller_wiegand:
                        type: object
                        title: Controller Wiegand
                        description: The controller_wiegand of the controller wiegand
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller wiegand
                          channel:
                            type: number
                            description: The channel of the controller wiegand
                          name:
                            type: string
                            description: The name of the controller wiegand
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      type:
                        const: legacy_controller
                      virtual_card_format_name:
                        type:
                        - string
                        - 'null'
                        enum:
                        -
                        - hid_h10301
                        - hid_h10302
                        - hid_h10304
                        - em_410x_26
                        - em_410x_32_34
                        - keyscan_c15001
                        - hid_d10202
                        description: The format of the virtual card.
                      virtual_card_card_number:
                        type:
                        - integer
                        - 'null'
                        description: The card number of the virtual card.
                      virtual_card_card_id:
                        type:
                        - integer
                        - 'null'
                        description: The card id of the virtual card. Only applies
                          to `EM_410X_32_34` cards.
                      virtual_card_oem:
                        type:
                        - integer
                        - 'null'
                        description: The oem of the virtual card. Only applies to
                          `KEYSCAN_C15001` cards.
                      virtual_card_facility_code:
                        type:
                        - integer
                        - 'null'
                        description: The facility code of the virtual card.
                      virtual_card_uid:
                        type:
                        - string
                        - 'null'
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The uid of the virtual card.
                      virtual_card_length:
                        type:
                        - integer
                        - 'null'
                        description: The bit length of the virtual card's uid.
                      lock_id:
                        type: integer
                        description: The lock ID of the controller wiegand connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller wiegand connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_wiegand_id
                    - controller_wiegand
                    - type
                    - virtual_card_format_name
                    - virtual_card_card_number
                    - virtual_card_card_id
                    - virtual_card_oem
                    - virtual_card_facility_code
                    - virtual_card_uid
                    - virtual_card_length
                    - lock_id
                    - lock
                    additionalProperties: false
                  - type: object
                    title: Legacy Keypad Reader Connection
                    properties:
                      id:
                        type: integer
                        description: The ID of the controller wiegand connection
                      created_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the controller wiegand connection was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      controller_wiegand:
                        type: object
                        title: Controller Wiegand
                        description: The controller_wiegand of the controller wiegand
                          connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the controller wiegand
                          channel:
                            type: number
                            description: The channel of the controller wiegand
                          name:
                            type: string
                            description: The name of the controller wiegand
                        required:
                        - id
                        - channel
                        - name
                        additionalProperties: false
                      type:
                        const: legacy_keypad_reader
                      master_pin_code:
                        type:
                        - string
                        - 'null'
                        pattern: "^\\d+$"
                        description: The master pin code of the legacy keypad reader
                          connection.
                      facility_code:
                        type:
                        - integer
                        - 'null'
                        description: The facility code of the keypad reader.
                      keypad_type:
                        type: string
                        enum:
                        - single_key_wiegand_6_bit_rosslare_format
                        - single_key_wiegand_8_bit_nibbles_complemented
                        - four_keys_binary_plus_facility_code_wiegand_26_bit
                        - one_to_five_keys_plus_facility_code_wiegand_26_bit
                        - single_key_wiegand_4_bit
                        description: The type of keypad connected to the wiegand channel.
                      two_factor_enabled:
                        type: boolean
                        description: Whether two factor authentication is enabled
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the controller wiegand connection
                      lock:
                        type: object
                        title: Lock
                        description: The lock of the controller wiegand connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the lock
                          resource_type:
                            type: string
                            description: The resource type of the lock
                            const: Lock
                          name:
                            type: string
                            description: The name of the lock
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      elevator_id:
                        type:
                        - integer
                        - 'null'
                        description: The elevator ID of the controller wiegand connection
                      elevator:
                        type: object
                        title: Elevator
                        description: The elevator of the controller wiegand connection
                        properties:
                          id:
                            type: integer
                            description: The ID of the elevator
                          resource_type:
                            type: string
                            description: The resource type of the elevator
                            const: Elevator
                          name:
                            type: string
                            description: The name of the elevator
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - created_at
                    - updated_at
                    - name
                    - controller_wiegand_id
                    - controller_wiegand
                    - type
                    - master_pin_code
                    - facility_code
                    - keypad_type
                    - two_factor_enabled
                    - lock_id
                    - elevator_id
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createControllerWiegandConnection
      summary: Create a controller wiegand connection
      tags:
      - Controller Wiegand Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Legacy Reader Connection
                properties:
                  controller_wiegand_connection:
                    type: object
                    properties:
                      type:
                        const: legacy_reader
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the controller wiegand connection
                      elevator_id:
                        type:
                        - integer
                        - 'null'
                        description: The elevator ID of the controller wiegand connection
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                    required:
                    - type
                    - controller_wiegand_id
                required:
                - controller_wiegand_connection
              - type: object
                title: Legacy Controller Connection
                properties:
                  controller_wiegand_connection:
                    type: object
                    properties:
                      type:
                        const: legacy_controller
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      lock_id:
                        type: integer
                        description: The lock ID of the controller wiegand connection
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                      virtual_card_format_name:
                        type:
                        - string
                        - 'null'
                        enum:
                        -
                        - hid_h10301
                        - hid_h10302
                        - hid_h10304
                        - em_410x_26
                        - em_410x_32_34
                        - keyscan_c15001
                        - hid_d10202
                        description: The format of the virtual card.
                      virtual_card_card_number:
                        type:
                        - integer
                        - 'null'
                        description: The card number of the virtual card.
                      virtual_card_facility_code:
                        type:
                        - integer
                        - 'null'
                        description: The facility code of the virtual card.
                      virtual_card_card_id:
                        type:
                        - integer
                        - 'null'
                        description: The card id of the virtual card. Only applies
                          to `EM_410X_32_34` cards.
                      virtual_card_oem:
                        type:
                        - integer
                        - 'null'
                        description: The oem of the virtual card. Only applies to
                          `KEYSCAN_C15001` cards.
                      virtual_card_uid:
                        type:
                        - string
                        - 'null'
                        pattern: "^([0-9a-fA-F]){6,16}$"
                        description: The uid of the virtual card.
                      virtual_card_length:
                        type:
                        - integer
                        - 'null'
                        description: The bit length of the virtual card's uid.
                    required:
                    - type
                    - controller_wiegand_id
                    - lock_id
                required:
                - controller_wiegand_connection
              - type: object
                title: Legacy Keypad Reader Connection
                properties:
                  controller_wiegand_connection:
                    type: object
                    properties:
                      type:
                        const: legacy_keypad_reader
                      controller_wiegand_id:
                        type: integer
                        description: The controller_wiegand ID of the controller wiegand
                          connection
                      lock_id:
                        type:
                        - integer
                        - 'null'
                        description: The lock ID of the controller wiegand connection
                      elevator_id:
                        type:
                        - integer
                        - 'null'
                        description: The elevator ID of the controller wiegand connection
                      master_pin_code:
                        type:
                        - string
                        - 'null'
                        pattern: "^\\d+$"
                        description: The master pin code of the legacy keypad reader
                          connection.
                      facility_code:
                        type:
                        - integer
                        - 'null'
                        description: The facility code of the keypad reader.
                      keypad_type:
                        type: string
                        enum:
                        - single_key_wiegand_6_bit_rosslare_format
                        - single_key_wiegand_8_bit_nibbles_complemented
                        - four_keys_binary_plus_facility_code_wiegand_26_bit
                        - one_to_five_keys_plus_facility_code_wiegand_26_bit
                        - single_key_wiegand_4_bit
                        description: The type of keypad connected to the wiegand channel.
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the controller wiegand connection
                    required:
                    - type
                    - controller_wiegand_id
                required:
                - controller_wiegand_connection
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Legacy Reader Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_reader
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the controller wiegand connection
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - lock_id
                  - elevator_id
                  additionalProperties: false
                - type: object
                  title: Legacy Controller Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_controller
                    virtual_card_format_name:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - hid_h10301
                      - hid_h10302
                      - hid_h10304
                      - em_410x_26
                      - em_410x_32_34
                      - keyscan_c15001
                      - hid_d10202
                      description: The format of the virtual card.
                    virtual_card_card_number:
                      type:
                      - integer
                      - 'null'
                      description: The card number of the virtual card.
                    virtual_card_card_id:
                      type:
                      - integer
                      - 'null'
                      description: The card id of the virtual card. Only applies to
                        `EM_410X_32_34` cards.
                    virtual_card_oem:
                      type:
                      - integer
                      - 'null'
                      description: The oem of the virtual card. Only applies to `KEYSCAN_C15001`
                        cards.
                    virtual_card_facility_code:
                      type:
                      - integer
                      - 'null'
                      description: The facility code of the virtual card.
                    virtual_card_uid:
                      type:
                      - string
                      - 'null'
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The uid of the virtual card.
                    virtual_card_length:
                      type:
                      - integer
                      - 'null'
                      description: The bit length of the virtual card's uid.
                    lock_id:
                      type: integer
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - virtual_card_format_name
                  - virtual_card_card_number
                  - virtual_card_card_id
                  - virtual_card_oem
                  - virtual_card_facility_code
                  - virtual_card_uid
                  - virtual_card_length
                  - lock_id
                  - lock
                  additionalProperties: false
                - type: object
                  title: Legacy Keypad Reader Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_keypad_reader
                    master_pin_code:
                      type:
                      - string
                      - 'null'
                      pattern: "^\\d+$"
                      description: The master pin code of the legacy keypad reader
                        connection.
                    facility_code:
                      type:
                      - integer
                      - 'null'
                      description: The facility code of the keypad reader.
                    keypad_type:
                      type: string
                      enum:
                      - single_key_wiegand_6_bit_rosslare_format
                      - single_key_wiegand_8_bit_nibbles_complemented
                      - four_keys_binary_plus_facility_code_wiegand_26_bit
                      - one_to_five_keys_plus_facility_code_wiegand_26_bit
                      - single_key_wiegand_4_bit
                      description: The type of keypad connected to the wiegand channel.
                    two_factor_enabled:
                      type: boolean
                      description: Whether two factor authentication is enabled
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the controller wiegand connection
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - master_pin_code
                  - facility_code
                  - keypad_type
                  - two_factor_enabled
                  - lock_id
                  - elevator_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_wiegand_connections/{id}":
    get:
      operationId: fetchControllerWiegandConnection
      summary: Fetch a controller wiegand connection
      tags:
      - Controller Wiegand Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Legacy Reader Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_reader
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the controller wiegand connection
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - lock_id
                  - elevator_id
                  additionalProperties: false
                - type: object
                  title: Legacy Controller Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_controller
                    virtual_card_format_name:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - hid_h10301
                      - hid_h10302
                      - hid_h10304
                      - em_410x_26
                      - em_410x_32_34
                      - keyscan_c15001
                      - hid_d10202
                      description: The format of the virtual card.
                    virtual_card_card_number:
                      type:
                      - integer
                      - 'null'
                      description: The card number of the virtual card.
                    virtual_card_card_id:
                      type:
                      - integer
                      - 'null'
                      description: The card id of the virtual card. Only applies to
                        `EM_410X_32_34` cards.
                    virtual_card_oem:
                      type:
                      - integer
                      - 'null'
                      description: The oem of the virtual card. Only applies to `KEYSCAN_C15001`
                        cards.
                    virtual_card_facility_code:
                      type:
                      - integer
                      - 'null'
                      description: The facility code of the virtual card.
                    virtual_card_uid:
                      type:
                      - string
                      - 'null'
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The uid of the virtual card.
                    virtual_card_length:
                      type:
                      - integer
                      - 'null'
                      description: The bit length of the virtual card's uid.
                    lock_id:
                      type: integer
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - virtual_card_format_name
                  - virtual_card_card_number
                  - virtual_card_card_id
                  - virtual_card_oem
                  - virtual_card_facility_code
                  - virtual_card_uid
                  - virtual_card_length
                  - lock_id
                  - lock
                  additionalProperties: false
                - type: object
                  title: Legacy Keypad Reader Connection
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand connection
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand connection was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    controller_wiegand_id:
                      type: integer
                      description: The controller_wiegand ID of the controller wiegand
                        connection
                    controller_wiegand:
                      type: object
                      title: Controller Wiegand
                      description: The controller_wiegand of the controller wiegand
                        connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller wiegand
                        channel:
                          type: number
                          description: The channel of the controller wiegand
                        name:
                          type: string
                          description: The name of the controller wiegand
                      required:
                      - id
                      - channel
                      - name
                      additionalProperties: false
                    type:
                      const: legacy_keypad_reader
                    master_pin_code:
                      type:
                      - string
                      - 'null'
                      pattern: "^\\d+$"
                      description: The master pin code of the legacy keypad reader
                        connection.
                    facility_code:
                      type:
                      - integer
                      - 'null'
                      description: The facility code of the keypad reader.
                    keypad_type:
                      type: string
                      enum:
                      - single_key_wiegand_6_bit_rosslare_format
                      - single_key_wiegand_8_bit_nibbles_complemented
                      - four_keys_binary_plus_facility_code_wiegand_26_bit
                      - one_to_five_keys_plus_facility_code_wiegand_26_bit
                      - single_key_wiegand_4_bit
                      description: The type of keypad connected to the wiegand channel.
                    two_factor_enabled:
                      type: boolean
                      description: Whether two factor authentication is enabled
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the controller wiegand connection
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the controller wiegand connection
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the controller wiegand connection
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - created_at
                  - updated_at
                  - name
                  - controller_wiegand_id
                  - controller_wiegand
                  - type
                  - master_pin_code
                  - facility_code
                  - keypad_type
                  - two_factor_enabled
                  - lock_id
                  - elevator_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteControllerWiegandConnection
      summary: Delete a controller wiegand connection
      tags:
      - Controller Wiegand Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    patch:
      operationId: updateControllerWiegandConnection
      summary: Update a controller wiegand connection
      tags:
      - Controller Wiegand Connections
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Legacy Controller Connection
              properties:
                controller_wiegand_connection:
                  type: object
                  properties:
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the controller wiegand connection
                    virtual_card_format_name:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - hid_h10301
                      - hid_h10302
                      - hid_h10304
                      - em_410x_26
                      - em_410x_32_34
                      - keyscan_c15001
                      - hid_d10202
                      description: The format of the virtual card.
                    virtual_card_card_number:
                      type:
                      - integer
                      - 'null'
                      description: The card number of the virtual card.
                    virtual_card_facility_code:
                      type:
                      - integer
                      - 'null'
                      description: The facility code of the virtual card.
                    virtual_card_card_id:
                      type:
                      - integer
                      - 'null'
                      description: The card id of the virtual card. Only applies to
                        `EM_410X_32_34` cards.
                    virtual_card_oem:
                      type:
                      - integer
                      - 'null'
                      description: The oem of the virtual card. Only applies to `KEYSCAN_C15001`
                        cards.
                    virtual_card_uid:
                      type:
                      - string
                      - 'null'
                      pattern: "^([0-9a-fA-F]){6,16}$"
                      description: The uid of the virtual card.
                    virtual_card_length:
                      type:
                      - integer
                      - 'null'
                      description: The bit length of the virtual card's uid.
                  required: []
              required:
              - controller_wiegand_connection
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/controller_wiegands":
    get:
      operationId: fetchControllerWiegands
      summary: Fetch controller wiegands
      tags:
      - Controller Wiegands
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: controller_id
        in: query
        schema:
          type: integer
        required: true
        description: Filter by controller ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Controller Wiegand
                  properties:
                    id:
                      type: integer
                      description: The ID of the controller wiegand
                    channel:
                      type: number
                      description: The channel of the controller wiegand
                    name:
                      type: string
                      description: The name of the controller wiegand
                    created_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the controller wiegand was updated
                    controller_id:
                      type: integer
                      description: The controller ID of the controller wiegand
                    controller_wiegand_connection_id:
                      type:
                      - integer
                      - 'null'
                      description: The controller_wiegand_connection ID of the controller
                        wiegand
                  required:
                  - id
                  - channel
                  - name
                  - created_at
                  - updated_at
                  - controller_id
                  - controller_wiegand_connection_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/csv_card_imports":
    post:
      operationId: createCsvCardImport
      summary: Create CsvCardImport
      tags:
      - CSV card imports
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Csv Card Import
              properties:
                csv_card_import:
                  type: object
                  properties:
                    file_name:
                      type: string
                      description: |
                        The name of the CSV file. The file can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the file."
                  required:
                  - file_name
              required:
              - csv_card_import
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Csv Card Import
                properties:
                  id:
                    type: integer
                    description: The ID of the csv import
                  name:
                    type: string
                    description: The name of the csv import
                  created_at:
                    type: string
                    format: date-time
                    description: When the csv import was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the csv import was updated
                  import_errors:
                    type: object
                    description: Imported errors.
                  file_name:
                    type: string
                    description: |
                      The name of the CSV file. The file can be uploaded by first using the
                      <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                      to generate a signed URL and then using the URL to upload the file."
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the import.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the csv import
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the csv import
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - name
                - created_at
                - updated_at
                - import_errors
                - file_name
                - status
                - organization_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/csv_card_imports/{id}":
    get:
      operationId: fetchCsvCardImport
      summary: Fetch CsvCardImport
      tags:
      - CSV card imports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Csv Card Import
                properties:
                  id:
                    type: integer
                    description: The ID of the csv import
                  name:
                    type: string
                    description: The name of the csv import
                  created_at:
                    type: string
                    format: date-time
                    description: When the csv import was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the csv import was updated
                  import_errors:
                    type: object
                    description: Imported errors.
                  file_name:
                    type: string
                    description: |
                      The name of the CSV file. The file can be uploaded by first using the
                      <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                      to generate a signed URL and then using the URL to upload the file."
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the import.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the csv import
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the csv import
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - name
                - created_at
                - updated_at
                - import_errors
                - file_name
                - status
                - organization_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/csv_user_imports":
    post:
      operationId: createCsvUserImport
      summary: Create CsvUserImport
      tags:
      - CSV user imports
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Csv User Import
              properties:
                csv_user_import:
                  type: object
                  properties:
                    file_name:
                      type: string
                      description: |
                        The name of the CSV file. The file can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the file."
                  required:
                  - file_name
              required:
              - csv_user_import
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Csv User Import
                properties:
                  id:
                    type: integer
                    description: The ID of the csv import
                  name:
                    type: string
                    description: The name of the csv import
                  created_at:
                    type: string
                    format: date-time
                    description: When the csv import was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the csv import was updated
                  import_errors:
                    type: object
                    description: Imported errors.
                  file_name:
                    type: string
                    description: |
                      The name of the CSV file. The file can be uploaded by first using the
                      <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                      to generate a signed URL and then using the URL to upload the file."
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the import.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the csv import
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the csv import
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - name
                - created_at
                - updated_at
                - import_errors
                - file_name
                - status
                - organization_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/csv_user_imports/{id}":
    get:
      operationId: fetchCsvUserImport
      summary: Fetch CsvUserImport
      tags:
      - CSV user imports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Csv User Import
                properties:
                  id:
                    type: integer
                    description: The ID of the csv import
                  name:
                    type: string
                    description: The name of the csv import
                  created_at:
                    type: string
                    format: date-time
                    description: When the csv import was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the csv import was updated
                  import_errors:
                    type: object
                    description: Imported errors.
                  file_name:
                    type: string
                    description: |
                      The name of the CSV file. The file can be uploaded by first using the
                      <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                      to generate a signed URL and then using the URL to upload the file."
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the import.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the csv import
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the csv import
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - name
                - created_at
                - updated_at
                - import_errors
                - file_name
                - status
                - organization_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/elevators":
    get:
      operationId: fetchElevators
      summary: Fetch elevators
      tags:
      - Elevators
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Elevator
                  properties:
                    id:
                      type: integer
                      description: The ID of the elevator
                    resource_type:
                      type: string
                      description: The resource type of the elevator
                      const: Elevator
                    name:
                      type: string
                      description: The name of the elevator
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the elevator
                    created_at:
                      type: string
                      format: date-time
                      description: When the elevator was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the elevator was updated
                    place_id:
                      type: integer
                      description: The place ID of the elevator
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the elevator
                    integration:
                      type: object
                      title: Integration
                      description: The integration of the elevator
                      properties:
                        id:
                          type: integer
                          description: The ID of the integration
                        resource_type:
                          type: string
                          description: The resource type of the integration
                          const: Integration
                        type:
                          type: string
                          enum:
                          - active_directory_user_import
                          - braxos_elevator
                          - event_webhook
                          - jumpcloud_user_import
                          - rhombus_systems_camera
                          description: The type of the integration
                        name:
                          type: string
                          description: The name of the integration
                      required:
                      - id
                      - resource_type
                      - type
                      - name
                      additionalProperties: false
                    elevator_stops_count:
                      deprecated: true
                      type: integer
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - place_id
                  - integration_id
                  - elevator_stops_count
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createElevator
      summary: Create elevator
      tags:
      - Elevators
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Elevator
              properties:
                elevator:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the elevator
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the elevator
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the elevator
                    place_id:
                      type: integer
                      description: The place ID of the elevator
                  required:
                  - name
                  - place_id
              required:
              - elevator
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Elevator
                properties:
                  id:
                    type: integer
                    description: The ID of the elevator
                  resource_type:
                    type: string
                    description: The resource type of the elevator
                    const: Elevator
                  name:
                    type: string
                    description: The name of the elevator
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the elevator
                  created_at:
                    type: string
                    format: date-time
                    description: When the elevator was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the elevator was updated
                  place_id:
                    type: integer
                    description: The place ID of the elevator
                  integration_id:
                    type:
                    - integer
                    - 'null'
                    description: The integration ID of the elevator
                  integration:
                    type: object
                    title: Integration
                    description: The integration of the elevator
                    properties:
                      id:
                        type: integer
                        description: The ID of the integration
                      resource_type:
                        type: string
                        description: The resource type of the integration
                        const: Integration
                      type:
                        type: string
                        enum:
                        - active_directory_user_import
                        - braxos_elevator
                        - event_webhook
                        - jumpcloud_user_import
                        - rhombus_systems_camera
                        description: The type of the integration
                      name:
                        type: string
                        description: The name of the integration
                    required:
                    - id
                    - resource_type
                    - type
                    - name
                    additionalProperties: false
                  elevator_stops_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - place_id
                - integration_id
                - elevator_stops_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/elevators/{id}":
    get:
      operationId: fetchElevator
      summary: Fetch elevator
      tags:
      - Elevators
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Elevator
                properties:
                  id:
                    type: integer
                    description: The ID of the elevator
                  resource_type:
                    type: string
                    description: The resource type of the elevator
                    const: Elevator
                  name:
                    type: string
                    description: The name of the elevator
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the elevator
                  created_at:
                    type: string
                    format: date-time
                    description: When the elevator was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the elevator was updated
                  place_id:
                    type: integer
                    description: The place ID of the elevator
                  integration_id:
                    type:
                    - integer
                    - 'null'
                    description: The integration ID of the elevator
                  integration:
                    type: object
                    title: Integration
                    description: The integration of the elevator
                    properties:
                      id:
                        type: integer
                        description: The ID of the integration
                      resource_type:
                        type: string
                        description: The resource type of the integration
                        const: Integration
                      type:
                        type: string
                        enum:
                        - active_directory_user_import
                        - braxos_elevator
                        - event_webhook
                        - jumpcloud_user_import
                        - rhombus_systems_camera
                        description: The type of the integration
                      name:
                        type: string
                        description: The name of the integration
                    required:
                    - id
                    - resource_type
                    - type
                    - name
                    additionalProperties: false
                  elevator_stops_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - place_id
                - integration_id
                - elevator_stops_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateElevator
      summary: Update Elevator
      tags:
      - Elevators
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Elevator
              properties:
                elevator:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the elevator
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the elevator
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the elevator
                  required: []
              required:
              - elevator
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteElevator
      summary: Delete elevator
      tags:
      - Elevators
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/elevator_stops":
    get:
      operationId: fetchElevatorStops
      summary: Fetch elevator stops
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: place_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the place to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: elevator_id
        in: query
        schema:
          type: string
        description: Filter by elevator ID
      - name: floor_id
        in: query
        schema:
          type: integer
        description: Filter by floor ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Elevator Stop
                  properties:
                    id:
                      type: integer
                      description: The ID of the elevator stop
                    resource_type:
                      type: string
                      description: The resource type of the elevator stop
                      const: ElevatorStop
                    created_at:
                      type: string
                      format: date-time
                      description: When the elevator stop was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the elevator stop was updated
                    name:
                      type: string
                      description: The name of the elevator stop
                    locked_down:
                      type: boolean
                      description: 'Whether the elevator stop is currently locked
                        down. When locked down the elevator stop is locked for everyone

                        '
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the elevator stop has been locked down

                        '
                    on_scheduled_permit:
                      type: boolean
                      description: If the elevator stop is on a scheduled unlock
                    permitted:
                      type: boolean
                      description: Whether the elevator stop is currently permitted
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the elevator stop is time restricted.
                        Time restriction enforces that users may only permit at specific
                        hours

                        '
                    elevator_id:
                      type: integer
                      description: The elevator ID of the elevator stop
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    floor_id:
                      type: integer
                      description: The floor ID of the elevator stop
                    floor:
                      type: object
                      title: Floor
                      description: The floor of the elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the floor
                        resource_type:
                          type: string
                          description: The resource type of the floor
                          const: Floor
                        name:
                          type: string
                          description: The name of the floor
                        number:
                          type: integer
                          description: The number of the floor
                      required:
                      - id
                      - resource_type
                      - name
                      - number
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the elevator stop
                    place:
                      type: object
                      title: Place
                      description: The place of the elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - locked_down
                  - locked_down_since
                  - on_scheduled_permit
                  - permitted
                  - time_restriction_enabled
                  - elevator_id
                  - elevator
                  - floor_id
                  - floor
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createElevatorStop
      summary: Create elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Elevator Stop
              properties:
                elevator_stop:
                  type: object
                  properties:
                    elevator_id:
                      type: integer
                      description: The elevator ID of the elevator stop
                    floor_id:
                      type: integer
                      description: The floor ID of the elevator stop
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the elevator stop is time restricted.
                        Time restriction enforces that users may only permit at specific
                        hours

                        '
                  required:
                  - elevator_id
                  - floor_id
              required:
              - elevator_stop
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Elevator Stop
                properties:
                  id:
                    type: integer
                    description: The ID of the elevator stop
                  resource_type:
                    type: string
                    description: The resource type of the elevator stop
                    const: ElevatorStop
                  created_at:
                    type: string
                    format: date-time
                    description: When the elevator stop was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the elevator stop was updated
                  name:
                    type: string
                    description: The name of the elevator stop
                  locked_down:
                    type: boolean
                    description: 'Whether the elevator stop is currently locked down.
                      When locked down the elevator stop is locked for everyone

                      '
                  locked_down_since:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: 'Since when the elevator stop has been locked down

                      '
                  on_scheduled_permit:
                    type: boolean
                    description: If the elevator stop is on a scheduled unlock
                  permitted:
                    type: boolean
                    description: Whether the elevator stop is currently permitted
                  time_restriction_enabled:
                    type:
                    - boolean
                    - 'null'
                    description: 'Whether the elevator stop is time restricted. Time
                      restriction enforces that users may only permit at specific
                      hours

                      '
                  elevator_id:
                    type: integer
                    description: The elevator ID of the elevator stop
                  elevator:
                    type: object
                    title: Elevator
                    description: The elevator of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  floor_id:
                    type: integer
                    description: The floor ID of the elevator stop
                  floor:
                    type: object
                    title: Floor
                    description: The floor of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      number:
                        type: integer
                        description: The number of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - number
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the elevator stop
                  place:
                    type: object
                    title: Place
                    description: The place of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - name
                - locked_down
                - locked_down_since
                - on_scheduled_permit
                - permitted
                - time_restriction_enabled
                - elevator_id
                - elevator
                - floor_id
                - floor
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/elevator_stops/{id}":
    get:
      operationId: fetchElevatorStop
      summary: Fetch elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Elevator Stop
                properties:
                  id:
                    type: integer
                    description: The ID of the elevator stop
                  resource_type:
                    type: string
                    description: The resource type of the elevator stop
                    const: ElevatorStop
                  created_at:
                    type: string
                    format: date-time
                    description: When the elevator stop was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the elevator stop was updated
                  name:
                    type: string
                    description: The name of the elevator stop
                  locked_down:
                    type: boolean
                    description: 'Whether the elevator stop is currently locked down.
                      When locked down the elevator stop is locked for everyone

                      '
                  locked_down_since:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: 'Since when the elevator stop has been locked down

                      '
                  on_scheduled_permit:
                    type: boolean
                    description: If the elevator stop is on a scheduled unlock
                  permitted:
                    type: boolean
                    description: Whether the elevator stop is currently permitted
                  time_restriction_enabled:
                    type:
                    - boolean
                    - 'null'
                    description: 'Whether the elevator stop is time restricted. Time
                      restriction enforces that users may only permit at specific
                      hours

                      '
                  elevator_id:
                    type: integer
                    description: The elevator ID of the elevator stop
                  elevator:
                    type: object
                    title: Elevator
                    description: The elevator of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  floor_id:
                    type: integer
                    description: The floor ID of the elevator stop
                  floor:
                    type: object
                    title: Floor
                    description: The floor of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      number:
                        type: integer
                        description: The number of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - number
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the elevator stop
                  place:
                    type: object
                    title: Place
                    description: The place of the elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - name
                - locked_down
                - locked_down_since
                - on_scheduled_permit
                - permitted
                - time_restriction_enabled
                - elevator_id
                - elevator
                - floor_id
                - floor
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateElevatorStop
      summary: Update elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Elevator Stop
              properties:
                elevator_stop:
                  type: object
                  properties:
                    elevator_id:
                      type: integer
                      description: The elevator ID of the elevator stop
                    floor_id:
                      type: integer
                      description: The floor ID of the elevator stop
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the elevator stop is time restricted.
                        Time restriction enforces that users may only permit at specific
                        hours

                        '
                  required: []
              required:
              - elevator_stop
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteElevatorStop
      summary: Delete elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/elevator_stops/{id}/lock_down":
    post:
      operationId: lockDownElevatorStop
      summary: Lock down elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/elevator_stops/{id}/cancel_lockdown":
    post:
      operationId: cancelElevatorStopLockdown
      summary: Cancel lockdown of elevator stop
      tags:
      - Elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/event_sets":
    post:
      operationId: createEventSet
      summary: Create event set
      description: |
        This endpoint can be used to create an event set that can later be paginated through with a cursor. The set will be persisted and available for pagination for approximately 24 hours.

        When creating the event set the events may not be immediately available. Check the `status` property to determine if the events are available.
        - If `in_progress`, periodically check `GET /event_sets/{id}` until status is `finished`.
        - If `finished`, `events` will contain the events, and `cursor` will contain the cursor used to paginate the set.
      tags:
      - Event sets
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Event Set
              properties:
                event_set:
                  type: object
                  properties:
                    interval:
                      type: string
                      description: |
                        Filter by the creation date of the event. The timestamp is expected to be in ISO8601 format.

                        The interval defaults to the past 90 days. The interval cannot be wider than 90 days.

                        Supported patterns:
                        - Start/End, eg. `2019-03-09T13:00:00Z/2019-03-10T15:30:00Z`
                        - Start/Duration, eg. `2019-03-09T13:00:00Z/P1Y2M10D`
                        - Duration/End, eg. `PT2H30M/2019-03-09T15:30:00Z`

                        Duration on its own (eg. `P1Y2MT1H`) is not supported.
                    event_actor_id:
                      type:
                      - integer
                      - 'null'
                    event_actor_type:
                      type:
                      - string
                      - 'null'
                    event_authenticated_by_id:
                      type:
                      - integer
                      - 'null'
                    event_authenticated_by_type:
                      type:
                      - string
                      - 'null'
                    event_object_id:
                      type:
                      - integer
                      - 'null'
                    event_object_type:
                      type:
                      - string
                      - 'null'
                    event_place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID to filter events by. Only one of event_place_id
                        and place_id can be set.
                    event_success:
                      type:
                      - boolean
                      - 'null'
                    event_sequence:
                      type:
                      - string
                      - 'null'
                      description: Multiple sequences are separated with `,`
                    event_type:
                      type:
                      - string
                      - 'null'
                      description: Multiple types are separated with `,`
                    event_uuid:
                      type:
                      - string
                      - 'null'
                      description: Multiple UUIDs are separated with `,`
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of a place-scoped event set. Only
                        one of place_id and event_place_id can be set.
                  required: []
              required:
              - event_set
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Event Set
                properties:
                  id:
                    type: integer
                    description: The ID of the event set
                  created_at:
                    type: string
                    format: date-time
                    description: When the event set was created
                  status:
                    type: string
                    enum:
                    - in_progress
                    - finished
                    - failed
                    description: The status of the event set
                  interval:
                    type: string
                    description: |
                      Filter by the creation date of the event. The timestamp is expected to be in ISO8601 format.

                      The interval defaults to the past 90 days. The interval cannot be wider than 90 days.

                      Supported patterns:
                      - Start/End, eg. `2019-03-09T13:00:00Z/2019-03-10T15:30:00Z`
                      - Start/Duration, eg. `2019-03-09T13:00:00Z/P1Y2M10D`
                      - Duration/End, eg. `PT2H30M/2019-03-09T15:30:00Z`

                      Duration on its own (eg. `P1Y2MT1H`) is not supported.
                  event_actor_id:
                    type:
                    - integer
                    - 'null'
                  event_actor_type:
                    type:
                    - string
                    - 'null'
                  event_authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                  event_authenticated_by_type:
                    type:
                    - string
                    - 'null'
                  event_object_id:
                    type:
                    - integer
                    - 'null'
                  event_object_type:
                    type:
                    - string
                    - 'null'
                  event_place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID to filter events by. Only one of event_place_id
                      and place_id can be set.
                  event_success:
                    type:
                    - boolean
                    - 'null'
                  event_sequence:
                    type:
                    - string
                    - 'null'
                    description: Multiple sequences are separated with `,`
                  event_type:
                    type:
                    - string
                    - 'null'
                    description: Multiple types are separated with `,`
                  event_uuid:
                    type:
                    - string
                    - 'null'
                    description: Multiple UUIDs are separated with `,`
                  events:
                    type: array
                    items:
                      type: object
                      title: Event
                      properties:
                        uuid:
                          type: string
                          format: uuid
                          description: The UUID of the event
                        type:
                          type: string
                          description: The type of the event
                        actor_type:
                          type:
                          - string
                          - 'null'
                          enum:
                          -
                          - GroupLink
                          - MarketplaceInstallation
                          - User
                          - Guest
                          description: The type of the actor of the event
                        actor_id:
                          type:
                          - integer
                          - 'null'
                          description: The ID of the actor of the event
                        actor_name:
                          type:
                          - string
                          - 'null'
                          description: The name of the actor of the event
                        actor_email:
                          type:
                          - string
                          - 'null'
                          description: The email of the actor of the event
                        authenticated_by_type:
                          type:
                          - string
                          - 'null'
                          enum:
                          -
                          - ApplePassInstance
                          - Card
                          - GroupLink
                          - Login
                          - OauthAccessToken
                          - AccessKey
                          description: The type of the credential of the event
                        authenticated_by_id:
                          type:
                          - integer
                          - 'null'
                          description: The ID of the credential
                        authorized_by_type:
                          type:
                          - string
                          - 'null'
                        authorized_by_id:
                          type:
                          - integer
                          - 'null'
                        authorized_by_role_id:
                          type:
                          - string
                          - 'null'
                        object_type:
                          type: string
                          description: The type of the object of the event
                        object_id:
                          type: integer
                          description: The ID of the object of the event
                        object_name:
                          type: string
                          description: The name of the object of the event
                        object:
                          type: object
                          description: The object of the event
                        action:
                          type: string
                          description: The action of the event
                        created_at:
                          type: string
                          format: date-time
                          description: When the event was created
                        message:
                          type:
                          - string
                          - 'null'
                          description: The string representation of the event
                        success:
                          type: boolean
                          description: Whether the action was successful
                        code:
                          type:
                          - string
                          - 'null'
                          description: The code of the event
                        sequence:
                          type: string
                          description: The sequence used to group related events part
                            of the same action
                        organization_id:
                          type: integer
                          description: The organization ID of the event
                        place_id:
                          type:
                          - integer
                          - 'null'
                          description: The place ID of the event
                        error_code:
                          type:
                          - string
                          - 'null'
                          description: The error code of the event
                        error_message:
                          type:
                          - string
                          - 'null'
                          description: The error message of the event
                        details:
                          deprecated: true
                          type: object
                        via:
                          deprecated: true
                          type: object
                      required:
                      - uuid
                      - type
                      - actor_type
                      - actor_id
                      - actor_name
                      - actor_email
                      - authenticated_by_type
                      - authenticated_by_id
                      - authorized_by_type
                      - authorized_by_id
                      - authorized_by_role_id
                      - object_type
                      - object_id
                      - object_name
                      - action
                      - created_at
                      - message
                      - success
                      - code
                      - sequence
                      - organization_id
                      - place_id
                      - error_code
                      - error_message
                      - details
                      - via
                      additionalProperties: false
                    description: The events of the event. Is not included if `status`
                      is `in_progress`.
                  cursor:
                    type:
                    - string
                    - 'null'
                    description: The cursor of the event set. Will be `null` if `status`
                      is `in_progress` or if there are no more events.
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of a place-scoped event set. Only one
                      of place_id and event_place_id can be set.
                required:
                - id
                - created_at
                - status
                - interval
                - event_actor_id
                - event_actor_type
                - event_authenticated_by_id
                - event_authenticated_by_type
                - event_object_id
                - event_object_type
                - event_place_id
                - event_success
                - event_sequence
                - event_type
                - event_uuid
                - cursor
                - place_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/event_sets/{id}":
    get:
      operationId: fetchEventSet
      summary: Fetch event set
      tags:
      - Event sets
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Event Set
                properties:
                  id:
                    type: integer
                    description: The ID of the event set
                  created_at:
                    type: string
                    format: date-time
                    description: When the event set was created
                  status:
                    type: string
                    enum:
                    - in_progress
                    - finished
                    - failed
                    description: The status of the event set
                  interval:
                    type: string
                    description: |
                      Filter by the creation date of the event. The timestamp is expected to be in ISO8601 format.

                      The interval defaults to the past 90 days. The interval cannot be wider than 90 days.

                      Supported patterns:
                      - Start/End, eg. `2019-03-09T13:00:00Z/2019-03-10T15:30:00Z`
                      - Start/Duration, eg. `2019-03-09T13:00:00Z/P1Y2M10D`
                      - Duration/End, eg. `PT2H30M/2019-03-09T15:30:00Z`

                      Duration on its own (eg. `P1Y2MT1H`) is not supported.
                  event_actor_id:
                    type:
                    - integer
                    - 'null'
                  event_actor_type:
                    type:
                    - string
                    - 'null'
                  event_authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                  event_authenticated_by_type:
                    type:
                    - string
                    - 'null'
                  event_object_id:
                    type:
                    - integer
                    - 'null'
                  event_object_type:
                    type:
                    - string
                    - 'null'
                  event_place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID to filter events by. Only one of event_place_id
                      and place_id can be set.
                  event_success:
                    type:
                    - boolean
                    - 'null'
                  event_sequence:
                    type:
                    - string
                    - 'null'
                    description: Multiple sequences are separated with `,`
                  event_type:
                    type:
                    - string
                    - 'null'
                    description: Multiple types are separated with `,`
                  event_uuid:
                    type:
                    - string
                    - 'null'
                    description: Multiple UUIDs are separated with `,`
                  events:
                    type: array
                    items:
                      type: object
                      title: Event
                      properties:
                        uuid:
                          type: string
                          format: uuid
                          description: The UUID of the event
                        type:
                          type: string
                          description: The type of the event
                        actor_type:
                          type:
                          - string
                          - 'null'
                          enum:
                          -
                          - GroupLink
                          - MarketplaceInstallation
                          - User
                          - Guest
                          description: The type of the actor of the event
                        actor_id:
                          type:
                          - integer
                          - 'null'
                          description: The ID of the actor of the event
                        actor_name:
                          type:
                          - string
                          - 'null'
                          description: The name of the actor of the event
                        actor_email:
                          type:
                          - string
                          - 'null'
                          description: The email of the actor of the event
                        authenticated_by_type:
                          type:
                          - string
                          - 'null'
                          enum:
                          -
                          - ApplePassInstance
                          - Card
                          - GroupLink
                          - Login
                          - OauthAccessToken
                          - AccessKey
                          description: The type of the credential of the event
                        authenticated_by_id:
                          type:
                          - integer
                          - 'null'
                          description: The ID of the credential
                        authorized_by_type:
                          type:
                          - string
                          - 'null'
                        authorized_by_id:
                          type:
                          - integer
                          - 'null'
                        authorized_by_role_id:
                          type:
                          - string
                          - 'null'
                        object_type:
                          type: string
                          description: The type of the object of the event
                        object_id:
                          type: integer
                          description: The ID of the object of the event
                        object_name:
                          type: string
                          description: The name of the object of the event
                        object:
                          type: object
                          description: The object of the event
                        action:
                          type: string
                          description: The action of the event
                        created_at:
                          type: string
                          format: date-time
                          description: When the event was created
                        message:
                          type:
                          - string
                          - 'null'
                          description: The string representation of the event
                        success:
                          type: boolean
                          description: Whether the action was successful
                        code:
                          type:
                          - string
                          - 'null'
                          description: The code of the event
                        sequence:
                          type: string
                          description: The sequence used to group related events part
                            of the same action
                        organization_id:
                          type: integer
                          description: The organization ID of the event
                        place_id:
                          type:
                          - integer
                          - 'null'
                          description: The place ID of the event
                        error_code:
                          type:
                          - string
                          - 'null'
                          description: The error code of the event
                        error_message:
                          type:
                          - string
                          - 'null'
                          description: The error message of the event
                        details:
                          deprecated: true
                          type: object
                        via:
                          deprecated: true
                          type: object
                      required:
                      - uuid
                      - type
                      - actor_type
                      - actor_id
                      - actor_name
                      - actor_email
                      - authenticated_by_type
                      - authenticated_by_id
                      - authorized_by_type
                      - authorized_by_id
                      - authorized_by_role_id
                      - object_type
                      - object_id
                      - object_name
                      - action
                      - created_at
                      - message
                      - success
                      - code
                      - sequence
                      - organization_id
                      - place_id
                      - error_code
                      - error_message
                      - details
                      - via
                      additionalProperties: false
                    description: The events of the event. Is not included if `status`
                      is `in_progress`.
                  cursor:
                    type:
                    - string
                    - 'null'
                    description: The cursor of the event set. Will be `null` if `status`
                      is `in_progress` or if there are no more events.
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of a place-scoped event set. Only one
                      of place_id and event_place_id can be set.
                required:
                - id
                - created_at
                - status
                - interval
                - event_actor_id
                - event_actor_type
                - event_authenticated_by_id
                - event_authenticated_by_type
                - event_object_id
                - event_object_type
                - event_place_id
                - event_success
                - event_sequence
                - event_type
                - event_uuid
                - cursor
                - place_id
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/events/meta":
    get:
      operationId: fetchEventMetadata
      summary: Fetch Event Metadata
      tags:
      - Events
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object_type_to_action:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                required:
                - object_type_to_action
                description: A mapping between object type and action values
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/events/types":
    get:
      operationId: fetchEventTypes
      summary: Fetch Event Types
      tags:
      - Events
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                  description: An event type
                  enum:
                  - access_key.create
                  - access_key.destroy
                  - amenity.create
                  - amenity.destroy
                  - amenity.update
                  - apple_pass.destroy
                  - apple_pass_instance.destroy
                  - apple_pass_instance.resume
                  - apple_pass_instance.suspend
                  - beacon.update
                  - booking.cancel
                  - booking.create
                  - camera.create
                  - camera.destroy
                  - camera.import
                  - camera.rate_limited
                  - camera_snapshot_set.create
                  - camera.update
                  - card.activate_with_token
                  - card.activate
                  - card.assign
                  - card.create
                  - card.deactivate
                  - card.deassign
                  - card.destroy
                  - card.update
                  - communication_policy.update
                  - controller.assign
                  - controller.deassign
                  - controller_input.closed
                  - controller_input_connection.create
                  - controller_input_connection.destroy
                  - controller_input_connection.update
                  - controller_input.opened
                  - controller_input.tamper
                  - controller_input.triggered
                  - controller.reboot
                  - controller_relay_connection.create
                  - controller_relay_connection.destroy
                  - controller_relay_connection.update
                  - controller.tamper
                  - controller.update
                  - controller.wiegand_board_connect
                  - controller.wiegand_board_disconnect
                  - controller_wiegand_connection.create
                  - controller_wiegand_connection.destroy
                  - controller_wiegand_connection.excessive_pin_attempts
                  - controller_wiegand_connection.update
                  - csv_card_import.create
                  - csv_user_import.create
                  - custom_role.create
                  - custom_role.destroy
                  - custom_role.update
                  - elevator.create
                  - elevator.destroy
                  - elevator.permit
                  - elevator_stop.cancel_lockdown
                  - elevator_stop.create
                  - elevator_stop.destroy
                  - elevator_stop.lock_down
                  - elevator_stop.scheduled_permit_ended
                  - elevator_stop.scheduled_permit_started
                  - elevator_stop.update
                  - elevator.update
                  - event_retention_policy.create
                  - event_retention_policy.destroy
                  - event_retention_policy.update
                  - floor.create
                  - floor.destroy
                  - floor.update
                  - group.create
                  - group.destroy
                  - group_elevator_stop.create
                  - group_elevator_stop.destroy
                  - group_link.create
                  - group_link.destroy
                  - group_lock.create
                  - group_lock.destroy
                  - group_terminal.create
                  - group_terminal.destroy
                  - group.update
                  - group_zone.create
                  - group_zone.destroy
                  - guest.create
                  - guest.destroy
                  - incident.create
                  - incident_policy.create
                  - incident_policy.destroy
                  - incident_policy_subscription.create
                  - incident_policy_subscription.destroy
                  - incident_policy_subscription.update
                  - incident_policy.update
                  - incident.update
                  - integration.create
                  - integration.destroy
                  - integration.disable_due_to_error
                  - integration.update
                  - integration.warn_due_to_error
                  - intercom.answer_call
                  - intercom.assign
                  - intercom_assignment.create
                  - intercom_assignment.destroy
                  - intercom_completed_call.create
                  - intercom.deassign
                  - intercom.dismiss_call
                  - intercom.finish_call
                  - intercom.initiate_streaming
                  - intercom.miss_call
                  - intercom.timeout_call
                  - intercom.trigger_call
                  - intercom.update
                  - invite.create
                  - kiosk.assign
                  - kiosk.deassign
                  - kiosk_shortcut.create
                  - kiosk_shortcut.destroy
                  - kiosk.update
                  - lock.cancel_lockdown
                  - lock.closed
                  - lock.create
                  - lock.destroy
                  - lock.first_to_arrive
                  - lock.forced_open
                  - lock.held_open
                  - lock.last_to_leave
                  - lock.lock_down
                  - lock.locked
                  - lock.opened
                  - lock.scheduled_unlock_ended
                  - lock.scheduled_unlock_started
                  - lock.tailgate
                  - lock.unlock
                  - lock.update
                  - login.create
                  - login.destroy
                  - login.promote
                  - login.resolve
                  - marketplace_app_share.create
                  - marketplace_app_share.destroy
                  - marketplace_installation.create
                  - marketplace_installation.destroy
                  - marketplace_installation.request_uninstall
                  - marketplace_installation.update
                  - marketplace_shortcut.create
                  - marketplace_shortcut.destroy
                  - marketplace_shortcut.update
                  - member.create
                  - member.destroy
                  - member.update
                  - third_party_hf_uid_read_configuration.create
                  - third_party_hf_uid_read_configuration.destroy
                  - mifare_classic_data_block_configuration.create
                  - mifare_classic_data_block_configuration.destroy
                  - mifare_desfire_extra_application_configuration.create
                  - mifare_desfire_master_key_configuration.create
                  - mobile_cache_policy.update
                  - mobile_cache_policy.invalidate
                  - organization.accept_transfer
                  - organization.cancel_transfer
                  - organization.create
                  - organization.generate_next_certificate
                  - organization.reject_transfer
                  - organization.request_transfer
                  - organization.reset_scim_token
                  - organization.rotate_certificate
                  - organization.update
                  - place.cancel_lockdown
                  - place_card.create
                  - place_card.destroy
                  - place.create
                  - place.destroy
                  - place.lock_down
                  - place.occupancy_rate_limit_reach
                  - place.update
                  - reader.access
                  - reader.assign
                  - reader.deassign
                  - reader.reboot
                  - reader.reset_tamper
                  - reader.tamper
                  - reader.update
                  - report.create
                  - report.destroy
                  - report.download
                  - report.finish
                  - role_assignment.create
                  - role_assignment.destroy
                  - role_assignment.update
                  - schedule.create
                  - schedule.destroy
                  - schedule.update
                  - scheduled_report.create
                  - scheduled_report.destroy
                  - scheduled_report.update
                  - share.create
                  - share.destroy
                  - share.update
                  - subscription.update
                  - team.create
                  - team.destroy
                  - team_membership.create
                  - team_membership.destroy
                  - team.update
                  - terminal.create
                  - terminal.destroy
                  - terminal.trigger
                  - terminal.update
                  - user.activate_2fa
                  - user.create_backup_codes
                  - user.create_password
                  - user.create
                  - user.deactivate_2fa
                  - user.destroy
                  - user.show_confirmation
                  - user.update_password
                  - user.update
                  - visualization_page_reporter.create
                  - visualization_page_reporter.destroy
                  - visualization_page_share.create
                  - visualization_page_share.destroy
                  - wireless_lock.battery_warning
                  - wireless_lock.closed
                  - wireless_lock_connection.create
                  - wireless_lock_connection.destroy
                  - wireless_lock_connection.update
                  - wireless_lock.disenroll
                  - wireless_lock.locked
                  - wireless_lock.opened
                  - wireless_lock.tampered
                  - wireless_lock.unlocked
                  - wireless_lock.update
                  - zone.create
                  - zone.destroy
                  - zone.external_mode_override
                  - zone.override
                  - zone.policy_activate
                  - zone.policy_override
                  - zone.policy_transition
                  - zone.policy_violate
                  - zone.reset
                  - zone.update
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/favorites":
    get:
      operationId: fetchFavorites
      summary: Fetch favorites
      tags:
      - Favorites
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: favoritable_type
        in: query
        schema:
          type: string
          enum:
          - Place
          - Lock
        description: Filter by favoritable type
      - name: favoritable_id
        in: query
        schema:
          type: integer
        description: Filter by favoritable ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Favorite
                  properties:
                    id:
                      type: integer
                      description: The ID of the favorite
                    resource_type:
                      type: string
                      description: The resource type of the favorite
                      const: Favorite
                    created_at:
                      type: string
                      format: date-time
                      description: When the favorite was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the favorite was updated
                    favoritable_type:
                      type: string
                      enum:
                      - Place
                      - Lock
                      description: The favoritable type of the favorite
                    favoritable_id:
                      type: integer
                      description: The favoritable ID of the favorite
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - favoritable_type
                  - favoritable_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createFavorite
      summary: Create favorite
      tags:
      - Favorites
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Favorite
              properties:
                favorite:
                  type: object
                  properties:
                    favoritable_type:
                      type: string
                      enum:
                      - Place
                      - Lock
                      description: The favoritable type of the favorite
                    favoritable_id:
                      type: integer
                      description: The favoritable ID of the favorite
                  required:
                  - favoritable_type
                  - favoritable_id
              required:
              - favorite
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Favorite
                properties:
                  id:
                    type: integer
                    description: The ID of the favorite
                  resource_type:
                    type: string
                    description: The resource type of the favorite
                    const: Favorite
                  created_at:
                    type: string
                    format: date-time
                    description: When the favorite was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the favorite was updated
                  favoritable_type:
                    type: string
                    enum:
                    - Place
                    - Lock
                    description: The favoritable type of the favorite
                  favoritable_id:
                    type: integer
                    description: The favoritable ID of the favorite
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - favoritable_type
                - favoritable_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/favorites/{id}":
    delete:
      operationId: deleteFavorite
      summary: Delete favorite
      tags:
      - Favorites
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/floors":
    get:
      operationId: fetchFloors
      summary: Fetch floors
      tags:
      - Floors
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: place_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the place to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Floor
                  properties:
                    id:
                      type: integer
                      description: The ID of the floor
                    resource_type:
                      type: string
                      description: The resource type of the floor
                      const: Floor
                    name:
                      type: string
                      description: The name of the floor
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the floor
                    number:
                      type: integer
                      description: The number of the floor
                    created_at:
                      type: string
                      format: date-time
                      description: When the floor was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the floor was updated
                    place_id:
                      type: integer
                      description: The place ID of the floor
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - number
                  - created_at
                  - updated_at
                  - place_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createFloor
      summary: Create floor
      tags:
      - Floors
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Floor
              properties:
                floor:
                  type: object
                  properties:
                    number:
                      type: integer
                      description: The number of the floor
                    name:
                      type: string
                      description: The name of the floor
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the floor
                    place_id:
                      type: integer
                      description: The place ID of the floor
                  required:
                  - number
                  - name
                  - place_id
              required:
              - floor
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Floor
                properties:
                  id:
                    type: integer
                    description: The ID of the floor
                  resource_type:
                    type: string
                    description: The resource type of the floor
                    const: Floor
                  name:
                    type: string
                    description: The name of the floor
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the floor
                  number:
                    type: integer
                    description: The number of the floor
                  created_at:
                    type: string
                    format: date-time
                    description: When the floor was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the floor was updated
                  place_id:
                    type: integer
                    description: The place ID of the floor
                required:
                - id
                - resource_type
                - name
                - description
                - number
                - created_at
                - updated_at
                - place_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/floors/{id}":
    get:
      operationId: fetchFloor
      summary: Fetch floor
      tags:
      - Floors
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Floor
                properties:
                  id:
                    type: integer
                    description: The ID of the floor
                  resource_type:
                    type: string
                    description: The resource type of the floor
                    const: Floor
                  name:
                    type: string
                    description: The name of the floor
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the floor
                  number:
                    type: integer
                    description: The number of the floor
                  created_at:
                    type: string
                    format: date-time
                    description: When the floor was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the floor was updated
                  place_id:
                    type: integer
                    description: The place ID of the floor
                required:
                - id
                - resource_type
                - name
                - description
                - number
                - created_at
                - updated_at
                - place_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateFloor
      summary: Update floor
      tags:
      - Floors
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Floor
              properties:
                floor:
                  type: object
                  properties:
                    number:
                      type: integer
                      description: The number of the floor
                    name:
                      type: string
                      description: The name of the floor
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the floor
                  required: []
              required:
              - floor
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_elevator_stops":
    get:
      operationId: fetchGroupElevatorStops
      summary: Fetch group elevator stops
      tags:
      - Group elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: group_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the group to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: elevator_stop_id
        in: query
        schema:
          type: integer
        description: Filter by elevator stop ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group Elevator Stop
                  properties:
                    id:
                      type: integer
                      description: The ID of the group elevator stop
                    resource_type:
                      type: string
                      description: The resource type of the group elevator stop
                      const: GroupElevatorStop
                    created_at:
                      type: string
                      format: date-time
                      description: When the group elevator stop was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group elevator stop was updated
                    elevator_id:
                      type: integer
                      description: The elevator ID of the group elevator stop
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the group elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    elevator_stop_id:
                      type: integer
                      description: The elevator_stop ID of the group elevator stop
                    floor_id:
                      type: integer
                      description: The floor ID of the group elevator stop
                    floor:
                      type: object
                      title: Floor
                      description: The floor of the group elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the floor
                        resource_type:
                          type: string
                          description: The resource type of the floor
                          const: Floor
                        name:
                          type: string
                          description: The name of the floor
                        number:
                          type: integer
                          description: The number of the floor
                      required:
                      - id
                      - resource_type
                      - name
                      - number
                      additionalProperties: false
                    group_id:
                      type: integer
                      description: The group ID of the group elevator stop
                    group:
                      type: object
                      title: Group
                      description: The group of the group elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the group elevator stop
                    place:
                      type: object
                      title: Place
                      description: The place of the group elevator stop
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - elevator_id
                  - elevator
                  - elevator_stop_id
                  - floor_id
                  - floor
                  - group_id
                  - group
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroupElevatorStop
      summary: Create group elevator stop
      tags:
      - Group elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: group_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the group to scope by
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group Elevator Stop
              properties:
                group_elevator_stop:
                  type: object
                  properties:
                    elevator_stop_id:
                      type: integer
                      description: The elevator_stop ID of the group elevator stop
                  required:
                  - elevator_stop_id
              required:
              - group_elevator_stop
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Elevator Stop
                properties:
                  id:
                    type: integer
                    description: The ID of the group elevator stop
                  resource_type:
                    type: string
                    description: The resource type of the group elevator stop
                    const: GroupElevatorStop
                  created_at:
                    type: string
                    format: date-time
                    description: When the group elevator stop was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group elevator stop was updated
                  elevator_id:
                    type: integer
                    description: The elevator ID of the group elevator stop
                  elevator:
                    type: object
                    title: Elevator
                    description: The elevator of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  elevator_stop_id:
                    type: integer
                    description: The elevator_stop ID of the group elevator stop
                  floor_id:
                    type: integer
                    description: The floor ID of the group elevator stop
                  floor:
                    type: object
                    title: Floor
                    description: The floor of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      number:
                        type: integer
                        description: The number of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - number
                    additionalProperties: false
                  group_id:
                    type: integer
                    description: The group ID of the group elevator stop
                  group:
                    type: object
                    title: Group
                    description: The group of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group elevator stop
                  place:
                    type: object
                    title: Place
                    description: The place of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - elevator_id
                - elevator
                - elevator_stop_id
                - floor_id
                - floor
                - group_id
                - group
                - place_id
                - place
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_elevator_stops/{id}":
    get:
      operationId: fetchGroupElevatorStop
      summary: Fetch group elevator stop
      tags:
      - Group elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Elevator Stop
                properties:
                  id:
                    type: integer
                    description: The ID of the group elevator stop
                  resource_type:
                    type: string
                    description: The resource type of the group elevator stop
                    const: GroupElevatorStop
                  created_at:
                    type: string
                    format: date-time
                    description: When the group elevator stop was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group elevator stop was updated
                  elevator_id:
                    type: integer
                    description: The elevator ID of the group elevator stop
                  elevator:
                    type: object
                    title: Elevator
                    description: The elevator of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  elevator_stop_id:
                    type: integer
                    description: The elevator_stop ID of the group elevator stop
                  floor_id:
                    type: integer
                    description: The floor ID of the group elevator stop
                  floor:
                    type: object
                    title: Floor
                    description: The floor of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      number:
                        type: integer
                        description: The number of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - number
                    additionalProperties: false
                  group_id:
                    type: integer
                    description: The group ID of the group elevator stop
                  group:
                    type: object
                    title: Group
                    description: The group of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group elevator stop
                  place:
                    type: object
                    title: Place
                    description: The place of the group elevator stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - elevator_id
                - elevator
                - elevator_stop_id
                - floor_id
                - floor
                - group_id
                - group
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGroupElevatorStop
      summary: Delete group elevator stop
      tags:
      - Group elevator stops
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_links":
    get:
      operationId: fetchGroup_links
      summary: Fetch group links
      tags:
      - Group links
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by the name, email or phone of the record. Also filters
          on the group''s name.

          '
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
          - unlock
          - "-unlock"
          - valid_until
          - "-valid_until"
          - group_name
          - "-group_name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by group link name, alphabetically<br>
          `unlock` - sort by last unlock; no unlocks first, then oldest to most recent<br>
          `valid_until` - Sort by group link valid_until; earliest to final, then no expiration
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group Link
                  properties:
                    id:
                      type: integer
                      description: The ID of the group link
                    resource_type:
                      type: string
                      description: The resource type of the group link
                      const: GroupLink
                    name:
                      type: string
                      description: The name of the group link
                    email:
                      type:
                      - string
                      - 'null'
                      format: email
                      description: The email to the person who should have access.
                    phone:
                      type:
                      - string
                      - 'null'
                      description: |-
                        The phone number of the person who should have access. Only US, Canadian and Puerto Rican numbers in
                            the format +11234567890 (E.164) are accepted.
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the group link was last used.
                    link_enabled:
                      type: boolean
                      default: true
                      description: Will generate a link that can be used for access.
                    quick_response_code_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - online
                      - offline
                      -
                      description: Will generate a QR code (optionally offline capable)
                        that can be scanned with compatible Kisi readers. Will be
                        sent as part of the access link email, if an email address
                        is provided. Will never be sent as part of SMS.
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                    created_at:
                      type: string
                      format: date-time
                      description: When the group link was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group link was updated
                    group_id:
                      type: integer
                      description: The group ID of the group link
                    group:
                      type: object
                      title: Group
                      description: The group of the group link
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the group link
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the group link
                    created_by:
                      type: object
                      description: The created_by of the group link
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Marketplace Installation
                        properties:
                          id:
                            type: integer
                            description: The ID of the marketplace installation
                          resource_type:
                            type: string
                            description: The resource type of the marketplace installation
                            const: MarketplaceInstallation
                        required:
                        - id
                        - resource_type
                        additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The issued_by ID of the group link
                      deprecated: true
                    issued_by:
                      type: object
                      title: User
                      description: The issued_by of the group link
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - email
                  - phone
                  - last_used_at
                  - link_enabled
                  - quick_response_code_type
                  - valid_from
                  - valid_until
                  - created_at
                  - updated_at
                  - group_id
                  - group
                  - created_by_type
                  - created_by_id
                  - issued_by_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroupLink
      summary: Create group link
      tags:
      - Group links
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group Link
              properties:
                group_link:
                  type: object
                  properties:
                    email:
                      type:
                      - string
                      - 'null'
                      format: email
                      description: The email to the person who should have access.
                    group_id:
                      type: integer
                      description: The group ID of the group link
                    name:
                      type: string
                      description: The name of the group link
                    phone:
                      type:
                      - string
                      - 'null'
                      description: |-
                        The phone number of the person who should have access. Only US, Canadian and Puerto Rican numbers in
                            the format +11234567890 (E.164) are accepted.
                    quick_response_code_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      - online
                      - offline
                      -
                      description: Will generate a QR code (optionally offline capable)
                        that can be scanned with compatible Kisi readers. Will be
                        sent as part of the access link email, if an email address
                        is provided. Will never be sent as part of SMS.
                    link_enabled:
                      type: boolean
                      default: true
                      description: Will generate a link that can be used for access.
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                  required:
                  - group_id
                  - name
              required:
              - group_link
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Link
                properties:
                  id:
                    type: integer
                    description: The ID of the group link
                  resource_type:
                    type: string
                    description: The resource type of the group link
                    const: GroupLink
                  name:
                    type: string
                    description: The name of the group link
                  email:
                    type:
                    - string
                    - 'null'
                    format: email
                    description: The email to the person who should have access.
                  phone:
                    type:
                    - string
                    - 'null'
                    description: |-
                      The phone number of the person who should have access. Only US, Canadian and Puerto Rican numbers in
                          the format +11234567890 (E.164) are accepted.
                  last_used_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the group link was last used.
                  link_enabled:
                    type: boolean
                    default: true
                    description: Will generate a link that can be used for access.
                  quick_response_code_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    - online
                    - offline
                    -
                    description: Will generate a QR code (optionally offline capable)
                      that can be scanned with compatible Kisi readers. Will be sent
                      as part of the access link email, if an email address is provided.
                      Will never be sent as part of SMS.
                  valid_from:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  valid_until:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  created_at:
                    type: string
                    format: date-time
                    description: When the group link was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group link was updated
                  group_id:
                    type: integer
                    description: The group ID of the group link
                  group:
                    type: object
                    title: Group
                    description: The group of the group link
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  created_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - User
                    - MarketplaceInstallation
                    description: The created_by type of the group link
                  created_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The created_by ID of the group link
                  created_by:
                    type: object
                    description: The created_by of the group link
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    - type: object
                      title: Marketplace Installation
                      properties:
                        id:
                          type: integer
                          description: The ID of the marketplace installation
                        resource_type:
                          type: string
                          description: The resource type of the marketplace installation
                          const: MarketplaceInstallation
                      required:
                      - id
                      - resource_type
                      additionalProperties: false
                  issued_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The issued_by ID of the group link
                    deprecated: true
                  issued_by:
                    type: object
                    title: User
                    description: The issued_by of the group link
                    deprecated: true
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  secret:
                    type:
                    - string
                    - 'null'
                    description: The secret value used for authentication.
                  quick_response_code_token:
                    type:
                    - string
                    - 'null'
                    description: The quick response code token.
                  quick_response_code_image:
                    type:
                    - string
                    - 'null'
                    description: The quick response code token rendered as a Base64-encoded
                      PNG image.
                required:
                - id
                - resource_type
                - name
                - email
                - phone
                - last_used_at
                - link_enabled
                - quick_response_code_type
                - valid_from
                - valid_until
                - created_at
                - updated_at
                - group_id
                - group
                - created_by_type
                - created_by_id
                - issued_by_id
                - secret
                - quick_response_code_token
                - quick_response_code_image
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/group_links/{id}":
    delete:
      operationId: deleteGroupLink
      summary: Delete group link
      tags:
      - Group links
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_locks":
    get:
      operationId: fetchGroupLocks
      summary: Fetch group locks
      tags:
      - Group locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: group_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the group to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by lock ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group Lock
                  properties:
                    id:
                      type: integer
                      description: The ID of the group lock
                    resource_type:
                      type: string
                      description: The resource type of the group lock
                      const: GroupLock
                    created_at:
                      type: string
                      format: date-time
                      description: When the group lock was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group lock was updated
                    group_id:
                      type: integer
                      description: The group ID of the group lock
                    group:
                      type: object
                      title: Group
                      description: The group of the group lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    lock_id:
                      type: integer
                      description: The lock ID of the group lock
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the group lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        description:
                          type:
                          - string
                          - 'null'
                          description: The description of the lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - description
                      - name
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the group lock
                    place:
                      type: object
                      title: Place
                      description: The place of the group lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - group_id
                  - group
                  - lock_id
                  - lock
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroupLock
      summary: Create group lock
      tags:
      - Group locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group Lock
              properties:
                group_lock:
                  type: object
                  properties:
                    group_id:
                      type: integer
                      description: The group ID of the group lock
                    lock_id:
                      type: integer
                      description: The lock ID of the group lock
                  required:
                  - group_id
                  - lock_id
              required:
              - group_lock
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Lock
                properties:
                  id:
                    type: integer
                    description: The ID of the group lock
                  resource_type:
                    type: string
                    description: The resource type of the group lock
                    const: GroupLock
                  created_at:
                    type: string
                    format: date-time
                    description: When the group lock was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group lock was updated
                  group_id:
                    type: integer
                    description: The group ID of the group lock
                  group:
                    type: object
                    title: Group
                    description: The group of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  lock_id:
                    type: integer
                    description: The lock ID of the group lock
                  lock:
                    type: object
                    title: Lock
                    description: The lock of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the lock
                      name:
                        type: string
                        description: The name of the lock
                    required:
                    - id
                    - description
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group lock
                  place:
                    type: object
                    title: Place
                    description: The place of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - lock_id
                - lock
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/group_locks/{id}":
    get:
      operationId: fetchGroupLock
      summary: Fetch group lock
      tags:
      - Group locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Lock
                properties:
                  id:
                    type: integer
                    description: The ID of the group lock
                  resource_type:
                    type: string
                    description: The resource type of the group lock
                    const: GroupLock
                  created_at:
                    type: string
                    format: date-time
                    description: When the group lock was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group lock was updated
                  group_id:
                    type: integer
                    description: The group ID of the group lock
                  group:
                    type: object
                    title: Group
                    description: The group of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  lock_id:
                    type: integer
                    description: The lock ID of the group lock
                  lock:
                    type: object
                    title: Lock
                    description: The lock of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the lock
                      name:
                        type: string
                        description: The name of the lock
                    required:
                    - id
                    - description
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group lock
                  place:
                    type: object
                    title: Place
                    description: The place of the group lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - lock_id
                - lock
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGroupLock
      summary: Delete group lock
      tags:
      - Group locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/groups":
    get:
      operationId: fetchGroups
      summary: Fetch groups
      tags:
      - Groups
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: scope
        in: query
        schema:
          type: string
          enum:
          - organization
          - place
        description: Filter by scope
      - name: place_id
        in: query
        schema:
          type: string
        description: Filter by place ID
      - name: elevator_stop_id
        in: query
        schema:
          type: string
        description: Filter by elevator stop ID
      - name: lock_id
        in: query
        schema:
          type: string
        description: Filter by lock ID
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by group name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group
                  properties:
                    id:
                      type: integer
                      description: The ID of the group
                    resource_type:
                      type: string
                      description: The resource type of the group
                      const: Group
                    name:
                      type: string
                      description: The name of the group
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the group
                    created_at:
                      type: string
                      format: date-time
                      description: When the group was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group was updated
                    geofence_restriction_enabled:
                      type: boolean
                      description: Whether geofence restriction is enabled
                    geofence_restriction_radius:
                      type: number
                    primary_device_restriction_enabled:
                      type: boolean
                      description: Whether primary device restriction is enabled
                    managed_device_restriction_enabled:
                      type: boolean
                      description: Whether managed device restriction is enabled
                    reader_restriction_enabled:
                      type: boolean
                      description: Whether reader proximity restriction is enabled
                    time_restriction_enabled:
                      type: boolean
                      description: Whether time restriction is enabled
                    tap_to_access_restriction_enabled:
                      type: boolean
                      description: Whether reader unlock restriction is enabled
                    login_enabled:
                      type: boolean
                      description: Whether app access is enabled
                    users_count:
                      type: integer
                      description: The number of users in the group
                    locks_count:
                      type: integer
                      description: The number of locks in the group
                    elevator_stops_count:
                      type: integer
                      description: The number of elevator stops in the group
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the group
                    place:
                      type: object
                      title: Place
                      description: The place of the group
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    time_restriction_time_zone:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    members_count:
                      deprecated: true
                      type: integer
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - geofence_restriction_enabled
                  - geofence_restriction_radius
                  - primary_device_restriction_enabled
                  - managed_device_restriction_enabled
                  - reader_restriction_enabled
                  - time_restriction_enabled
                  - tap_to_access_restriction_enabled
                  - login_enabled
                  - users_count
                  - locks_count
                  - elevator_stops_count
                  - place_id
                  - time_restriction_time_zone
                  - members_count
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroup
      summary: Create group
      tags:
      - Groups
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group
              properties:
                group:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the group
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the group
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the group
                    login_enabled:
                      type: boolean
                      description: Whether app access is enabled
                    time_restriction_time_zone:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    geofence_restriction_enabled:
                      type: boolean
                      description: Whether geofence restriction is enabled
                    primary_device_restriction_enabled:
                      type: boolean
                      description: Whether primary device restriction is enabled
                    managed_device_restriction_enabled:
                      type: boolean
                      description: Whether managed device restriction is enabled
                    reader_restriction_enabled:
                      type: boolean
                      description: Whether reader proximity restriction is enabled
                    time_restriction_enabled:
                      type: boolean
                      description: Whether time restriction is enabled
                    tap_to_access_restriction_enabled:
                      type: boolean
                      description: Whether reader unlock restriction is enabled
                  required:
                  - name
              required:
              - group
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group
                properties:
                  id:
                    type: integer
                    description: The ID of the group
                  resource_type:
                    type: string
                    description: The resource type of the group
                    const: Group
                  name:
                    type: string
                    description: The name of the group
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the group
                  created_at:
                    type: string
                    format: date-time
                    description: When the group was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group was updated
                  geofence_restriction_enabled:
                    type: boolean
                    description: Whether geofence restriction is enabled
                  geofence_restriction_radius:
                    type: number
                  primary_device_restriction_enabled:
                    type: boolean
                    description: Whether primary device restriction is enabled
                  managed_device_restriction_enabled:
                    type: boolean
                    description: Whether managed device restriction is enabled
                  reader_restriction_enabled:
                    type: boolean
                    description: Whether reader proximity restriction is enabled
                  time_restriction_enabled:
                    type: boolean
                    description: Whether time restriction is enabled
                  tap_to_access_restriction_enabled:
                    type: boolean
                    description: Whether reader unlock restriction is enabled
                  login_enabled:
                    type: boolean
                    description: Whether app access is enabled
                  users_count:
                    type: integer
                    description: The number of users in the group
                  locks_count:
                    type: integer
                    description: The number of locks in the group
                  elevator_stops_count:
                    type: integer
                    description: The number of elevator stops in the group
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the group
                  place:
                    type: object
                    title: Place
                    description: The place of the group
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  time_restriction_time_zone:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  members_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - geofence_restriction_enabled
                - geofence_restriction_radius
                - primary_device_restriction_enabled
                - managed_device_restriction_enabled
                - reader_restriction_enabled
                - time_restriction_enabled
                - tap_to_access_restriction_enabled
                - login_enabled
                - users_count
                - locks_count
                - elevator_stops_count
                - place_id
                - time_restriction_time_zone
                - members_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/groups/{id}":
    get:
      operationId: fetchGroup
      summary: Fetch group
      tags:
      - Groups
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group
                properties:
                  id:
                    type: integer
                    description: The ID of the group
                  resource_type:
                    type: string
                    description: The resource type of the group
                    const: Group
                  name:
                    type: string
                    description: The name of the group
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the group
                  created_at:
                    type: string
                    format: date-time
                    description: When the group was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group was updated
                  geofence_restriction_enabled:
                    type: boolean
                    description: Whether geofence restriction is enabled
                  geofence_restriction_radius:
                    type: number
                  primary_device_restriction_enabled:
                    type: boolean
                    description: Whether primary device restriction is enabled
                  managed_device_restriction_enabled:
                    type: boolean
                    description: Whether managed device restriction is enabled
                  reader_restriction_enabled:
                    type: boolean
                    description: Whether reader proximity restriction is enabled
                  time_restriction_enabled:
                    type: boolean
                    description: Whether time restriction is enabled
                  tap_to_access_restriction_enabled:
                    type: boolean
                    description: Whether reader unlock restriction is enabled
                  login_enabled:
                    type: boolean
                    description: Whether app access is enabled
                  users_count:
                    type: integer
                    description: The number of users in the group
                  locks_count:
                    type: integer
                    description: The number of locks in the group
                  elevator_stops_count:
                    type: integer
                    description: The number of elevator stops in the group
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the group
                  place:
                    type: object
                    title: Place
                    description: The place of the group
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  time_restriction_time_zone:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  members_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - geofence_restriction_enabled
                - geofence_restriction_radius
                - primary_device_restriction_enabled
                - managed_device_restriction_enabled
                - reader_restriction_enabled
                - time_restriction_enabled
                - tap_to_access_restriction_enabled
                - login_enabled
                - users_count
                - locks_count
                - elevator_stops_count
                - place_id
                - time_restriction_time_zone
                - members_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateGroup
      summary: Update group
      tags:
      - Groups
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group
              properties:
                group:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the group
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the group
                    login_enabled:
                      type: boolean
                      description: Whether app access is enabled
                    time_restriction_time_zone:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    geofence_restriction_enabled:
                      type: boolean
                      description: Whether geofence restriction is enabled
                    primary_device_restriction_enabled:
                      type: boolean
                      description: Whether primary device restriction is enabled
                    managed_device_restriction_enabled:
                      type: boolean
                      description: Whether managed device restriction is enabled
                    reader_restriction_enabled:
                      type: boolean
                      description: Whether reader proximity restriction is enabled
                    time_restriction_enabled:
                      type: boolean
                      description: Whether time restriction is enabled
                    tap_to_access_restriction_enabled:
                      type: boolean
                      description: Whether reader unlock restriction is enabled
                  required: []
              required:
              - group
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGroup
      summary: Delete group
      tags:
      - Groups
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_terminals":
    get:
      operationId: fetchGroupTerminals
      summary: Fetch group terminals
      tags:
      - Group terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: group_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the group to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: terminal_id
        in: query
        schema:
          type: integer
        description: Filter by terminal ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group Terminal
                  properties:
                    id:
                      type: integer
                      description: The ID of the group terminal
                    resource_type:
                      type: string
                      description: The resource type of the group terminal
                      const: GroupTerminal
                    created_at:
                      type: string
                      format: date-time
                      description: When the group terminal was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group terminal was updated
                    group_id:
                      type: integer
                      description: The group ID of the group terminal
                    group:
                      type: object
                      title: Group
                      description: The group of the group terminal
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    terminal_id:
                      type: integer
                      description: The terminal ID of the group terminal
                    terminal:
                      type: object
                      title: Terminal
                      description: The terminal of the group terminal
                      properties:
                        id:
                          type: integer
                          description: The ID of the terminal
                        description:
                          type:
                          - string
                          - 'null'
                          description: The description of the terminal
                        name:
                          type: string
                          description: The name of the terminal
                      required:
                      - id
                      - description
                      - name
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the group terminal
                    place:
                      type: object
                      title: Place
                      description: The place of the group terminal
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - group_id
                  - group
                  - terminal_id
                  - terminal
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroupTerminal
      summary: Create group terminal
      tags:
      - Group terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group Terminal
              properties:
                group_terminal:
                  type: object
                  properties:
                    group_id:
                      type: integer
                      description: The group ID of the group terminal
                    terminal_id:
                      type: integer
                      description: The terminal ID of the group terminal
                  required:
                  - group_id
                  - terminal_id
              required:
              - group_terminal
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Terminal
                properties:
                  id:
                    type: integer
                    description: The ID of the group terminal
                  resource_type:
                    type: string
                    description: The resource type of the group terminal
                    const: GroupTerminal
                  created_at:
                    type: string
                    format: date-time
                    description: When the group terminal was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group terminal was updated
                  group_id:
                    type: integer
                    description: The group ID of the group terminal
                  group:
                    type: object
                    title: Group
                    description: The group of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  terminal_id:
                    type: integer
                    description: The terminal ID of the group terminal
                  terminal:
                    type: object
                    title: Terminal
                    description: The terminal of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the terminal
                      name:
                        type: string
                        description: The name of the terminal
                    required:
                    - id
                    - description
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group terminal
                  place:
                    type: object
                    title: Place
                    description: The place of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - terminal_id
                - terminal
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/group_terminals/{id}":
    get:
      operationId: fetchGroupTerminal
      summary: Fetch group terminal
      tags:
      - Group terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Terminal
                properties:
                  id:
                    type: integer
                    description: The ID of the group terminal
                  resource_type:
                    type: string
                    description: The resource type of the group terminal
                    const: GroupTerminal
                  created_at:
                    type: string
                    format: date-time
                    description: When the group terminal was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group terminal was updated
                  group_id:
                    type: integer
                    description: The group ID of the group terminal
                  group:
                    type: object
                    title: Group
                    description: The group of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  terminal_id:
                    type: integer
                    description: The terminal ID of the group terminal
                  terminal:
                    type: object
                    title: Terminal
                    description: The terminal of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the terminal
                      name:
                        type: string
                        description: The name of the terminal
                    required:
                    - id
                    - description
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group terminal
                  place:
                    type: object
                    title: Place
                    description: The place of the group terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - terminal_id
                - terminal
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGroupTerminal
      summary: Delete group terminal
      tags:
      - Group terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/group_zones":
    get:
      operationId: fetchGroupZones
      summary: Fetch group zones
      tags:
      - Group zones
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: group_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the group to scope by
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: zone_id
        in: query
        schema:
          type: integer
        description: Filter by zone ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Group Zone
                  properties:
                    id:
                      type: integer
                      description: The ID of the group zone
                    resource_type:
                      type: string
                      description: The resource type of the group zone
                      const: GroupZone
                    created_at:
                      type: string
                      format: date-time
                      description: When the group zone was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the group zone was updated
                    group_id:
                      type: integer
                      description: The group ID of the group zone
                    group:
                      type: object
                      title: Group
                      description: The group of the group zone
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    zone_id:
                      type: integer
                      description: The zone ID of the group zone
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the group zone
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the group zone
                    place:
                      type: object
                      title: Place
                      description: The place of the group zone
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - group_id
                  - group
                  - zone_id
                  - zone
                  - place_id
                  - place
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGroupZone
      summary: Create group zone
      tags:
      - Group zones
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Group Zone
              properties:
                group_zone:
                  type: object
                  properties:
                    group_id:
                      type: integer
                      description: The group ID of the group zone
                    zone_id:
                      type: integer
                      description: The zone ID of the group zone
                  required:
                  - group_id
                  - zone_id
              required:
              - group_zone
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Zone
                properties:
                  id:
                    type: integer
                    description: The ID of the group zone
                  resource_type:
                    type: string
                    description: The resource type of the group zone
                    const: GroupZone
                  created_at:
                    type: string
                    format: date-time
                    description: When the group zone was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group zone was updated
                  group_id:
                    type: integer
                    description: The group ID of the group zone
                  group:
                    type: object
                    title: Group
                    description: The group of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  zone_id:
                    type: integer
                    description: The zone ID of the group zone
                  zone:
                    type: object
                    title: Zone
                    description: The zone of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the zone
                      name:
                        type: string
                        description: The name of the zone
                    required:
                    - id
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group zone
                  place:
                    type: object
                    title: Place
                    description: The place of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - zone_id
                - zone
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/group_zones/{id}":
    get:
      operationId: fetchGroupZone
      summary: Fetch group zone
      tags:
      - Group zones
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Group Zone
                properties:
                  id:
                    type: integer
                    description: The ID of the group zone
                  resource_type:
                    type: string
                    description: The resource type of the group zone
                    const: GroupZone
                  created_at:
                    type: string
                    format: date-time
                    description: When the group zone was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the group zone was updated
                  group_id:
                    type: integer
                    description: The group ID of the group zone
                  group:
                    type: object
                    title: Group
                    description: The group of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  zone_id:
                    type: integer
                    description: The zone ID of the group zone
                  zone:
                    type: object
                    title: Zone
                    description: The zone of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the zone
                      name:
                        type: string
                        description: The name of the zone
                    required:
                    - id
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the group zone
                  place:
                    type: object
                    title: Place
                    description: The place of the group zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - group_id
                - group
                - zone_id
                - zone
                - place_id
                - place
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGroupZone
      summary: Delete group zone
      tags:
      - Group zones
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/guests":
    get:
      operationId: fetchGuests
      summary: Fetch guests
      tags:
      - Guests
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Guest
                  properties:
                    id:
                      type: integer
                      description: The ID of the guest
                    resource_type:
                      type: string
                      description: The resource type of the guest
                      const: Guest
                    name:
                      type: string
                      description: The name of the guest
                    email:
                      type:
                      - string
                      - 'null'
                      format: email
                      description: The email of the guest.
                    phone_number:
                      type:
                      - string
                      - 'null'
                      description: 'The phone number of the guest. Only US, Canadian
                        and Puerto Rican numbers in the format +11234567890 (E.164)
                        are accepted.

                        '
                    created_at:
                      type: string
                      format: date-time
                      description: When the guest was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the guest was updated
                  required:
                  - id
                  - resource_type
                  - name
                  - email
                  - phone_number
                  - created_at
                  - updated_at
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createGuest
      summary: Create guest
      tags:
      - Guests
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Guest
              properties:
                guest:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the guest
                    email:
                      type:
                      - string
                      - 'null'
                      format: email
                      description: The email of the guest.
                    phone_number:
                      type:
                      - string
                      - 'null'
                      description: 'The phone number of the guest. Only US, Canadian
                        and Puerto Rican numbers in the format +11234567890 (E.164)
                        are accepted.

                        '
                  required:
                  - name
              required:
              - guest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Guest
                properties:
                  id:
                    type: integer
                    description: The ID of the guest
                  resource_type:
                    type: string
                    description: The resource type of the guest
                    const: Guest
                  name:
                    type: string
                    description: The name of the guest
                  email:
                    type:
                    - string
                    - 'null'
                    format: email
                    description: The email of the guest.
                  phone_number:
                    type:
                    - string
                    - 'null'
                    description: 'The phone number of the guest. Only US, Canadian
                      and Puerto Rican numbers in the format +11234567890 (E.164)
                      are accepted.

                      '
                  created_at:
                    type: string
                    format: date-time
                    description: When the guest was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the guest was updated
                required:
                - id
                - resource_type
                - name
                - email
                - phone_number
                - created_at
                - updated_at
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/guests/{id}":
    get:
      operationId: fetchGuest
      summary: Fetch guest
      tags:
      - Guests
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Guest
                properties:
                  id:
                    type: integer
                    description: The ID of the guest
                  resource_type:
                    type: string
                    description: The resource type of the guest
                    const: Guest
                  name:
                    type: string
                    description: The name of the guest
                  email:
                    type:
                    - string
                    - 'null'
                    format: email
                    description: The email of the guest.
                  phone_number:
                    type:
                    - string
                    - 'null'
                    description: 'The phone number of the guest. Only US, Canadian
                      and Puerto Rican numbers in the format +11234567890 (E.164)
                      are accepted.

                      '
                  created_at:
                    type: string
                    format: date-time
                    description: When the guest was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the guest was updated
                required:
                - id
                - resource_type
                - name
                - email
                - phone_number
                - created_at
                - updated_at
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteGuest
      summary: Delete guest
      tags:
      - Guests
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/holiday_calendars/{region}/holidays":
    get:
      operationId: fetchHolidays
      summary: Fetch holidays
      tags:
      - Holiday calendars
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: region
        in: path
        schema:
          type: string
        description: Specifies the region
        required: true
      - name: year
        in: query
        schema:
          type: string
        description: Specifies the year
        required: true
      - name: observed
        in: query
        schema:
          type: boolean
        description: Specifies the observance
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Holiday
                  properties:
                    date:
                      type: string
                      format: date
                      description: The date of the holiday
                    name:
                      type: string
                      description: The name of the holiday
                  required:
                  - date
                  - name
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/holiday_calendars/regions":
    get:
      operationId: fetchRegions
      summary: Fetch regions
      tags:
      - Holiday calendars
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                patternProperties:
                  ? ar|at|au|br|bg|by|ca|us|ch|cl|co|cr|cy|cz|dk|de|ee|es|fi|fr|gb|ge|gr|hr|hk|hu|ie|il|in|is|it|ke|kr|kz|li|lt|lv|ma|mc|mx|nl|lu|no|nz|pe|ph|pl|pt|ro|ru|se|tn|tr|ua|za|jp|vn|sg|my|th|ng
                  : type: object
                    title: Holiday Calendar Region
                    properties:
                      alpha2:
                        type: string
                        enum:
                        - AR
                        - AT
                        - AU
                        - BR
                        - BG
                        - BY
                        - CA
                        - US
                        - CH
                        - CL
                        - CO
                        - CR
                        - CY
                        - CZ
                        - DK
                        - DE
                        - EE
                        - ES
                        - FI
                        - FR
                        - GB
                        - GE
                        - GR
                        - HR
                        - HK
                        - HU
                        - IE
                        - IL
                        - IN
                        - IS
                        - IT
                        - KE
                        - KR
                        - KZ
                        - LI
                        - LT
                        - LV
                        - MA
                        - MC
                        - MX
                        - NL
                        - LU
                        - 'NO'
                        - NZ
                        - PE
                        - PH
                        - PL
                        - PT
                        - RO
                        - RU
                        - SE
                        - TN
                        - TR
                        - UA
                        - ZA
                        - JP
                        - VN
                        - SG
                        - MY
                        - TH
                        - NG
                        description: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
                      alpha3:
                        type: string
                        enum:
                        - ARG
                        - AUT
                        - AUS
                        - BRA
                        - BGR
                        - BLR
                        - CAN
                        - USA
                        - CHE
                        - CHL
                        - COL
                        - CRI
                        - CYP
                        - CZE
                        - DNK
                        - DEU
                        - EST
                        - ESP
                        - FIN
                        - FRA
                        - GBR
                        - GEO
                        - GRC
                        - HRV
                        - HKG
                        - HUN
                        - IRL
                        - ISR
                        - IND
                        - ISL
                        - ITA
                        - KEN
                        - KOR
                        - KAZ
                        - LIE
                        - LTU
                        - LVA
                        - MAR
                        - MCO
                        - MEX
                        - NLD
                        - LUX
                        - NOR
                        - NZL
                        - PER
                        - PHL
                        - POL
                        - PRT
                        - ROU
                        - RUS
                        - SWE
                        - TUN
                        - TUR
                        - UKR
                        - ZAF
                        - JPN
                        - VNM
                        - SGP
                        - MYS
                        - THA
                        - NGA
                        description: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
                      name:
                        type: string
                        description: Name of the region, typically country
                      continent:
                        type: string
                        description: The continent of the region
                      country_code:
                        type: string
                        description: The country code of this region
                      world_region:
                        type: string
                        description: The world region encompassing this region
                      subregions:
                        type: object
                        patternProperties:
                          ".+":
                            type: object
                            properties:
                              code:
                                type: string
                                description: The subregion code
                              name:
                                type: string
                                description: The subregion name
                            description: Different keys for different regions
                            required:
                            - code
                            - name
                    required:
                    - alpha2
                    - alpha3
                    - name
                    - continent
                    - country_code
                    - world_region
                    - subregions
                    additionalProperties: false
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/integrations":
    get:
      operationId: fetchIntegrations
      summary: Fetch integrations
      tags:
      - Integrations
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: scope
        in: query
        schema:
          type: string
          enum:
          - organization
          - place
        description: Filter by scope
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
      - name: enabled
        in: query
        schema:
          type: boolean
        description: Filter by enabled
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      enum:
                      - active_directory_user_import
                      - braxos_elevator
                      - event_webhook
                      - jumpcloud_user_import
                      - rhombus_systems_camera
                      description: The type of the integration
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createIntegration
      summary: Create integration
      tags:
      - Integrations
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Active Directory User Import Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      type:
                        type: string
                        const: active_directory_user_import
                        description: 'The type of the integration

                          '
                      active_directory_group_id:
                        type: string
                        description: The group ID of the Active Directory
                      active_directory_tenant_id:
                        type: string
                        description: The tenant ID of the Active Directory
                      active_directory_user_email_property:
                        type: string
                        enum:
                        - mail
                        - userPrincipalName
                        default: userPrincipalName
                        description: Which property match against when importing users
                      group_id:
                        type:
                        - integer
                        - 'null'
                        description: The group ID of the integration
                      import_members_only:
                        type: boolean
                        description: 'Whether users should be imported to the place
                          or organization, without adding them to a group

                          '
                    required:
                    - name
                    - type
                    - active_directory_group_id
                    - active_directory_tenant_id
                required:
                - integration
              - type: object
                title: Braxos Elevator Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      type:
                        type: string
                        const: braxos_elevator
                        description: 'The type of the integration

                          '
                      place_id:
                        type: integer
                        description: The place ID of the integration
                      api_key:
                        type: string
                        description: The Braxos API key
                    required:
                    - name
                    - type
                    - place_id
                    - api_key
                required:
                - integration
              - type: object
                title: Event Webhook Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      type:
                        type: string
                        const: event_webhook
                        description: 'The type of the integration

                          '
                      url:
                        type: string
                        format: uri
                        description: 'The URL to call when events are triggered

                          '
                      enabled_events:
                        type: array
                        items:
                          type: string
                          enum:
                          - access_key.create
                          - access_key.destroy
                          - amenity.create
                          - amenity.destroy
                          - amenity.update
                          - apple_pass.destroy
                          - apple_pass_instance.destroy
                          - apple_pass_instance.resume
                          - apple_pass_instance.suspend
                          - beacon.update
                          - booking.cancel
                          - booking.create
                          - camera.create
                          - camera.destroy
                          - camera.import
                          - camera.rate_limited
                          - camera_snapshot_set.create
                          - camera.update
                          - card.activate_with_token
                          - card.activate
                          - card.assign
                          - card.create
                          - card.deactivate
                          - card.deassign
                          - card.destroy
                          - card.update
                          - communication_policy.update
                          - controller.assign
                          - controller.deassign
                          - controller_input.closed
                          - controller_input_connection.create
                          - controller_input_connection.destroy
                          - controller_input_connection.update
                          - controller_input.opened
                          - controller_input.tamper
                          - controller_input.triggered
                          - controller.reboot
                          - controller_relay_connection.create
                          - controller_relay_connection.destroy
                          - controller_relay_connection.update
                          - controller.tamper
                          - controller.update
                          - controller.wiegand_board_connect
                          - controller.wiegand_board_disconnect
                          - controller_wiegand_connection.create
                          - controller_wiegand_connection.destroy
                          - controller_wiegand_connection.excessive_pin_attempts
                          - controller_wiegand_connection.update
                          - csv_card_import.create
                          - csv_user_import.create
                          - custom_role.create
                          - custom_role.destroy
                          - custom_role.update
                          - elevator.create
                          - elevator.destroy
                          - elevator.permit
                          - elevator_stop.cancel_lockdown
                          - elevator_stop.create
                          - elevator_stop.destroy
                          - elevator_stop.lock_down
                          - elevator_stop.scheduled_permit_ended
                          - elevator_stop.scheduled_permit_started
                          - elevator_stop.update
                          - elevator.update
                          - event_retention_policy.create
                          - event_retention_policy.destroy
                          - event_retention_policy.update
                          - floor.create
                          - floor.destroy
                          - floor.update
                          - group.create
                          - group.destroy
                          - group_elevator_stop.create
                          - group_elevator_stop.destroy
                          - group_link.create
                          - group_link.destroy
                          - group_lock.create
                          - group_lock.destroy
                          - group_terminal.create
                          - group_terminal.destroy
                          - group.update
                          - group_zone.create
                          - group_zone.destroy
                          - guest.create
                          - guest.destroy
                          - incident.create
                          - incident_policy.create
                          - incident_policy.destroy
                          - incident_policy_subscription.create
                          - incident_policy_subscription.destroy
                          - incident_policy_subscription.update
                          - incident_policy.update
                          - incident.update
                          - integration.create
                          - integration.destroy
                          - integration.disable_due_to_error
                          - integration.update
                          - integration.warn_due_to_error
                          - intercom.answer_call
                          - intercom.assign
                          - intercom_assignment.create
                          - intercom_assignment.destroy
                          - intercom_completed_call.create
                          - intercom.deassign
                          - intercom.dismiss_call
                          - intercom.finish_call
                          - intercom.initiate_streaming
                          - intercom.miss_call
                          - intercom.timeout_call
                          - intercom.trigger_call
                          - intercom.update
                          - invite.create
                          - kiosk.assign
                          - kiosk.deassign
                          - kiosk_shortcut.create
                          - kiosk_shortcut.destroy
                          - kiosk.update
                          - lock.cancel_lockdown
                          - lock.closed
                          - lock.create
                          - lock.destroy
                          - lock.first_to_arrive
                          - lock.forced_open
                          - lock.held_open
                          - lock.last_to_leave
                          - lock.lock_down
                          - lock.locked
                          - lock.opened
                          - lock.scheduled_unlock_ended
                          - lock.scheduled_unlock_started
                          - lock.tailgate
                          - lock.unlock
                          - lock.update
                          - login.create
                          - login.destroy
                          - login.promote
                          - login.resolve
                          - marketplace_app_share.create
                          - marketplace_app_share.destroy
                          - marketplace_installation.create
                          - marketplace_installation.destroy
                          - marketplace_installation.request_uninstall
                          - marketplace_installation.update
                          - marketplace_shortcut.create
                          - marketplace_shortcut.destroy
                          - marketplace_shortcut.update
                          - member.create
                          - member.destroy
                          - member.update
                          - third_party_hf_uid_read_configuration.create
                          - third_party_hf_uid_read_configuration.destroy
                          - mifare_classic_data_block_configuration.create
                          - mifare_classic_data_block_configuration.destroy
                          - mifare_desfire_extra_application_configuration.create
                          - mifare_desfire_master_key_configuration.create
                          - mobile_cache_policy.update
                          - mobile_cache_policy.invalidate
                          - organization.accept_transfer
                          - organization.cancel_transfer
                          - organization.create
                          - organization.generate_next_certificate
                          - organization.reject_transfer
                          - organization.request_transfer
                          - organization.reset_scim_token
                          - organization.rotate_certificate
                          - organization.update
                          - place.cancel_lockdown
                          - place_card.create
                          - place_card.destroy
                          - place.create
                          - place.destroy
                          - place.lock_down
                          - place.occupancy_rate_limit_reach
                          - place.update
                          - reader.access
                          - reader.assign
                          - reader.deassign
                          - reader.reboot
                          - reader.reset_tamper
                          - reader.tamper
                          - reader.update
                          - report.create
                          - report.destroy
                          - report.download
                          - report.finish
                          - role_assignment.create
                          - role_assignment.destroy
                          - role_assignment.update
                          - schedule.create
                          - schedule.destroy
                          - schedule.update
                          - scheduled_report.create
                          - scheduled_report.destroy
                          - scheduled_report.update
                          - share.create
                          - share.destroy
                          - share.update
                          - subscription.update
                          - team.create
                          - team.destroy
                          - team_membership.create
                          - team_membership.destroy
                          - team.update
                          - terminal.create
                          - terminal.destroy
                          - terminal.trigger
                          - terminal.update
                          - user.activate_2fa
                          - user.create_backup_codes
                          - user.create_password
                          - user.create
                          - user.deactivate_2fa
                          - user.destroy
                          - user.show_confirmation
                          - user.update_password
                          - user.update
                          - visualization_page_reporter.create
                          - visualization_page_reporter.destroy
                          - visualization_page_share.create
                          - visualization_page_share.destroy
                          - wireless_lock.battery_warning
                          - wireless_lock.closed
                          - wireless_lock_connection.create
                          - wireless_lock_connection.destroy
                          - wireless_lock_connection.update
                          - wireless_lock.disenroll
                          - wireless_lock.locked
                          - wireless_lock.opened
                          - wireless_lock.tampered
                          - wireless_lock.unlocked
                          - wireless_lock.update
                          - zone.create
                          - zone.destroy
                          - zone.external_mode_override
                          - zone.override
                          - zone.policy_activate
                          - zone.policy_override
                          - zone.policy_transition
                          - zone.policy_violate
                          - zone.reset
                          - zone.update
                        description: The event types for which the webhook would be
                          enabled.
                      signature_key:
                        type: string
                        description: |
                          The key to use for webhook payload signatures. We build and
                          attach the signature as follows:

                          - Take the body
                          - Calculate the HMAC-SHA256 MAC using the body as payload and
                            the signature key as key
                          - Set the "X-Signature" header to `sha256=<MAC>`
                    required:
                    - name
                    - type
                    - url
                required:
                - integration
              - type: object
                title: Jumpcloud User Import Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      type:
                        type: string
                        const: jumpcloud_user_import
                        description: 'The type of the integration

                          '
                      jumpcloud_organization_id:
                        type:
                        - string
                        - 'null'
                        description: 'The ID of the organization in JumpCloud to import
                          from. Required for multi-tenant JumpCloud users.

                          '
                      jumpcloud_group_id:
                        type:
                        - string
                        - 'null'
                        description: 'The ID of the group in JumpCloud to import from.
                          Required to enable integration

                          '
                      group_id:
                        type:
                        - integer
                        - 'null'
                        description: The group ID of the integration
                      import_members_only:
                        type: boolean
                        description: 'Whether users should be imported to the place
                          or organization, without adding them to a group

                          '
                      api_key:
                        type: string
                        description: The JumpCloud API key
                    required:
                    - name
                    - type
                    - api_key
                required:
                - integration
              - type: object
                title: Rhombus Systems Camera Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      type:
                        type: string
                        const: rhombus_systems_camera
                        description: 'The type of the integration

                          '
                      place_id:
                        type: integer
                        description: The place ID of the integration
                      api_key:
                        type: string
                        description: The Rhombus Systems API key
                      certificate:
                        type: string
                        description: The Rhombus Systems certificate
                      private_key:
                        type: string
                        description: The Rhombus Systems private key
                    required:
                    - name
                    - type
                    - place_id
                    - api_key
                    - certificate
                    - private_key
                required:
                - integration
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Active Directory User Import Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: active_directory_user_import
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    active_directory_tenant_id:
                      type: string
                      description: The tenant ID of the Active Directory
                    active_directory_group_id:
                      type: string
                      description: The group ID of the Active Directory
                    active_directory_user_email_property:
                      type: string
                      enum:
                      - mail
                      - userPrincipalName
                      default: userPrincipalName
                      description: Which property match against when importing users
                    import_members_only:
                      type: boolean
                      description: 'Whether users should be imported to the place
                        or organization, without adding them to a group

                        '
                    group_id:
                      type:
                      - integer
                      - 'null'
                      description: The group ID of the integration
                    group:
                      type: object
                      title: Group
                      description: The group of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - active_directory_tenant_id
                  - active_directory_group_id
                  - active_directory_user_email_property
                  - import_members_only
                  - group_id
                  additionalProperties: false
                - type: object
                  title: Braxos Elevator Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: braxos_elevator
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Event Webhook Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: event_webhook
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    url:
                      type: string
                      format: uri
                      description: 'The URL to call when events are triggered

                        '
                    enabled_events:
                      type: array
                      items:
                        type: string
                        enum:
                        - access_key.create
                        - access_key.destroy
                        - amenity.create
                        - amenity.destroy
                        - amenity.update
                        - apple_pass.destroy
                        - apple_pass_instance.destroy
                        - apple_pass_instance.resume
                        - apple_pass_instance.suspend
                        - beacon.update
                        - booking.cancel
                        - booking.create
                        - camera.create
                        - camera.destroy
                        - camera.import
                        - camera.rate_limited
                        - camera_snapshot_set.create
                        - camera.update
                        - card.activate_with_token
                        - card.activate
                        - card.assign
                        - card.create
                        - card.deactivate
                        - card.deassign
                        - card.destroy
                        - card.update
                        - communication_policy.update
                        - controller.assign
                        - controller.deassign
                        - controller_input.closed
                        - controller_input_connection.create
                        - controller_input_connection.destroy
                        - controller_input_connection.update
                        - controller_input.opened
                        - controller_input.tamper
                        - controller_input.triggered
                        - controller.reboot
                        - controller_relay_connection.create
                        - controller_relay_connection.destroy
                        - controller_relay_connection.update
                        - controller.tamper
                        - controller.update
                        - controller.wiegand_board_connect
                        - controller.wiegand_board_disconnect
                        - controller_wiegand_connection.create
                        - controller_wiegand_connection.destroy
                        - controller_wiegand_connection.excessive_pin_attempts
                        - controller_wiegand_connection.update
                        - csv_card_import.create
                        - csv_user_import.create
                        - custom_role.create
                        - custom_role.destroy
                        - custom_role.update
                        - elevator.create
                        - elevator.destroy
                        - elevator.permit
                        - elevator_stop.cancel_lockdown
                        - elevator_stop.create
                        - elevator_stop.destroy
                        - elevator_stop.lock_down
                        - elevator_stop.scheduled_permit_ended
                        - elevator_stop.scheduled_permit_started
                        - elevator_stop.update
                        - elevator.update
                        - event_retention_policy.create
                        - event_retention_policy.destroy
                        - event_retention_policy.update
                        - floor.create
                        - floor.destroy
                        - floor.update
                        - group.create
                        - group.destroy
                        - group_elevator_stop.create
                        - group_elevator_stop.destroy
                        - group_link.create
                        - group_link.destroy
                        - group_lock.create
                        - group_lock.destroy
                        - group_terminal.create
                        - group_terminal.destroy
                        - group.update
                        - group_zone.create
                        - group_zone.destroy
                        - guest.create
                        - guest.destroy
                        - incident.create
                        - incident_policy.create
                        - incident_policy.destroy
                        - incident_policy_subscription.create
                        - incident_policy_subscription.destroy
                        - incident_policy_subscription.update
                        - incident_policy.update
                        - incident.update
                        - integration.create
                        - integration.destroy
                        - integration.disable_due_to_error
                        - integration.update
                        - integration.warn_due_to_error
                        - intercom.answer_call
                        - intercom.assign
                        - intercom_assignment.create
                        - intercom_assignment.destroy
                        - intercom_completed_call.create
                        - intercom.deassign
                        - intercom.dismiss_call
                        - intercom.finish_call
                        - intercom.initiate_streaming
                        - intercom.miss_call
                        - intercom.timeout_call
                        - intercom.trigger_call
                        - intercom.update
                        - invite.create
                        - kiosk.assign
                        - kiosk.deassign
                        - kiosk_shortcut.create
                        - kiosk_shortcut.destroy
                        - kiosk.update
                        - lock.cancel_lockdown
                        - lock.closed
                        - lock.create
                        - lock.destroy
                        - lock.first_to_arrive
                        - lock.forced_open
                        - lock.held_open
                        - lock.last_to_leave
                        - lock.lock_down
                        - lock.locked
                        - lock.opened
                        - lock.scheduled_unlock_ended
                        - lock.scheduled_unlock_started
                        - lock.tailgate
                        - lock.unlock
                        - lock.update
                        - login.create
                        - login.destroy
                        - login.promote
                        - login.resolve
                        - marketplace_app_share.create
                        - marketplace_app_share.destroy
                        - marketplace_installation.create
                        - marketplace_installation.destroy
                        - marketplace_installation.request_uninstall
                        - marketplace_installation.update
                        - marketplace_shortcut.create
                        - marketplace_shortcut.destroy
                        - marketplace_shortcut.update
                        - member.create
                        - member.destroy
                        - member.update
                        - third_party_hf_uid_read_configuration.create
                        - third_party_hf_uid_read_configuration.destroy
                        - mifare_classic_data_block_configuration.create
                        - mifare_classic_data_block_configuration.destroy
                        - mifare_desfire_extra_application_configuration.create
                        - mifare_desfire_master_key_configuration.create
                        - mobile_cache_policy.update
                        - mobile_cache_policy.invalidate
                        - organization.accept_transfer
                        - organization.cancel_transfer
                        - organization.create
                        - organization.generate_next_certificate
                        - organization.reject_transfer
                        - organization.request_transfer
                        - organization.reset_scim_token
                        - organization.rotate_certificate
                        - organization.update
                        - place.cancel_lockdown
                        - place_card.create
                        - place_card.destroy
                        - place.create
                        - place.destroy
                        - place.lock_down
                        - place.occupancy_rate_limit_reach
                        - place.update
                        - reader.access
                        - reader.assign
                        - reader.deassign
                        - reader.reboot
                        - reader.reset_tamper
                        - reader.tamper
                        - reader.update
                        - report.create
                        - report.destroy
                        - report.download
                        - report.finish
                        - role_assignment.create
                        - role_assignment.destroy
                        - role_assignment.update
                        - schedule.create
                        - schedule.destroy
                        - schedule.update
                        - scheduled_report.create
                        - scheduled_report.destroy
                        - scheduled_report.update
                        - share.create
                        - share.destroy
                        - share.update
                        - subscription.update
                        - team.create
                        - team.destroy
                        - team_membership.create
                        - team_membership.destroy
                        - team.update
                        - terminal.create
                        - terminal.destroy
                        - terminal.trigger
                        - terminal.update
                        - user.activate_2fa
                        - user.create_backup_codes
                        - user.create_password
                        - user.create
                        - user.deactivate_2fa
                        - user.destroy
                        - user.show_confirmation
                        - user.update_password
                        - user.update
                        - visualization_page_reporter.create
                        - visualization_page_reporter.destroy
                        - visualization_page_share.create
                        - visualization_page_share.destroy
                        - wireless_lock.battery_warning
                        - wireless_lock.closed
                        - wireless_lock_connection.create
                        - wireless_lock_connection.destroy
                        - wireless_lock_connection.update
                        - wireless_lock.disenroll
                        - wireless_lock.locked
                        - wireless_lock.opened
                        - wireless_lock.tampered
                        - wireless_lock.unlocked
                        - wireless_lock.update
                        - zone.create
                        - zone.destroy
                        - zone.external_mode_override
                        - zone.override
                        - zone.policy_activate
                        - zone.policy_override
                        - zone.policy_transition
                        - zone.policy_violate
                        - zone.reset
                        - zone.update
                      description: The event types for which the webhook would be
                        enabled.
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - url
                  - enabled_events
                  additionalProperties: false
                - type: object
                  title: Jumpcloud User Import Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: jumpcloud_user_import
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    jumpcloud_group_id:
                      type:
                      - string
                      - 'null'
                      description: 'The ID of the group in JumpCloud to import from.
                        Required to enable integration

                        '
                    jumpcloud_organization_id:
                      type:
                      - string
                      - 'null'
                      description: 'The ID of the organization in JumpCloud to import
                        from. Required for multi-tenant JumpCloud users.

                        '
                    import_members_only:
                      type: boolean
                      description: 'Whether users should be imported to the place
                        or organization, without adding them to a group

                        '
                    group_id:
                      type:
                      - integer
                      - 'null'
                      description: The group ID of the integration
                    group:
                      type: object
                      title: Group
                      description: The group of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - jumpcloud_group_id
                  - jumpcloud_organization_id
                  - import_members_only
                  - group_id
                  additionalProperties: false
                - type: object
                  title: Rhombus Systems Camera Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: rhombus_systems_camera
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - place
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/integrations/{id}":
    get:
      operationId: fetchIntegration
      summary: Fetch integration
      tags:
      - Integrations
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Active Directory User Import Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: active_directory_user_import
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    active_directory_tenant_id:
                      type: string
                      description: The tenant ID of the Active Directory
                    active_directory_group_id:
                      type: string
                      description: The group ID of the Active Directory
                    active_directory_user_email_property:
                      type: string
                      enum:
                      - mail
                      - userPrincipalName
                      default: userPrincipalName
                      description: Which property match against when importing users
                    import_members_only:
                      type: boolean
                      description: 'Whether users should be imported to the place
                        or organization, without adding them to a group

                        '
                    group_id:
                      type:
                      - integer
                      - 'null'
                      description: The group ID of the integration
                    group:
                      type: object
                      title: Group
                      description: The group of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - active_directory_tenant_id
                  - active_directory_group_id
                  - active_directory_user_email_property
                  - import_members_only
                  - group_id
                  additionalProperties: false
                - type: object
                  title: Braxos Elevator Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: braxos_elevator
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Event Webhook Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: event_webhook
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    url:
                      type: string
                      format: uri
                      description: 'The URL to call when events are triggered

                        '
                    enabled_events:
                      type: array
                      items:
                        type: string
                        enum:
                        - access_key.create
                        - access_key.destroy
                        - amenity.create
                        - amenity.destroy
                        - amenity.update
                        - apple_pass.destroy
                        - apple_pass_instance.destroy
                        - apple_pass_instance.resume
                        - apple_pass_instance.suspend
                        - beacon.update
                        - booking.cancel
                        - booking.create
                        - camera.create
                        - camera.destroy
                        - camera.import
                        - camera.rate_limited
                        - camera_snapshot_set.create
                        - camera.update
                        - card.activate_with_token
                        - card.activate
                        - card.assign
                        - card.create
                        - card.deactivate
                        - card.deassign
                        - card.destroy
                        - card.update
                        - communication_policy.update
                        - controller.assign
                        - controller.deassign
                        - controller_input.closed
                        - controller_input_connection.create
                        - controller_input_connection.destroy
                        - controller_input_connection.update
                        - controller_input.opened
                        - controller_input.tamper
                        - controller_input.triggered
                        - controller.reboot
                        - controller_relay_connection.create
                        - controller_relay_connection.destroy
                        - controller_relay_connection.update
                        - controller.tamper
                        - controller.update
                        - controller.wiegand_board_connect
                        - controller.wiegand_board_disconnect
                        - controller_wiegand_connection.create
                        - controller_wiegand_connection.destroy
                        - controller_wiegand_connection.excessive_pin_attempts
                        - controller_wiegand_connection.update
                        - csv_card_import.create
                        - csv_user_import.create
                        - custom_role.create
                        - custom_role.destroy
                        - custom_role.update
                        - elevator.create
                        - elevator.destroy
                        - elevator.permit
                        - elevator_stop.cancel_lockdown
                        - elevator_stop.create
                        - elevator_stop.destroy
                        - elevator_stop.lock_down
                        - elevator_stop.scheduled_permit_ended
                        - elevator_stop.scheduled_permit_started
                        - elevator_stop.update
                        - elevator.update
                        - event_retention_policy.create
                        - event_retention_policy.destroy
                        - event_retention_policy.update
                        - floor.create
                        - floor.destroy
                        - floor.update
                        - group.create
                        - group.destroy
                        - group_elevator_stop.create
                        - group_elevator_stop.destroy
                        - group_link.create
                        - group_link.destroy
                        - group_lock.create
                        - group_lock.destroy
                        - group_terminal.create
                        - group_terminal.destroy
                        - group.update
                        - group_zone.create
                        - group_zone.destroy
                        - guest.create
                        - guest.destroy
                        - incident.create
                        - incident_policy.create
                        - incident_policy.destroy
                        - incident_policy_subscription.create
                        - incident_policy_subscription.destroy
                        - incident_policy_subscription.update
                        - incident_policy.update
                        - incident.update
                        - integration.create
                        - integration.destroy
                        - integration.disable_due_to_error
                        - integration.update
                        - integration.warn_due_to_error
                        - intercom.answer_call
                        - intercom.assign
                        - intercom_assignment.create
                        - intercom_assignment.destroy
                        - intercom_completed_call.create
                        - intercom.deassign
                        - intercom.dismiss_call
                        - intercom.finish_call
                        - intercom.initiate_streaming
                        - intercom.miss_call
                        - intercom.timeout_call
                        - intercom.trigger_call
                        - intercom.update
                        - invite.create
                        - kiosk.assign
                        - kiosk.deassign
                        - kiosk_shortcut.create
                        - kiosk_shortcut.destroy
                        - kiosk.update
                        - lock.cancel_lockdown
                        - lock.closed
                        - lock.create
                        - lock.destroy
                        - lock.first_to_arrive
                        - lock.forced_open
                        - lock.held_open
                        - lock.last_to_leave
                        - lock.lock_down
                        - lock.locked
                        - lock.opened
                        - lock.scheduled_unlock_ended
                        - lock.scheduled_unlock_started
                        - lock.tailgate
                        - lock.unlock
                        - lock.update
                        - login.create
                        - login.destroy
                        - login.promote
                        - login.resolve
                        - marketplace_app_share.create
                        - marketplace_app_share.destroy
                        - marketplace_installation.create
                        - marketplace_installation.destroy
                        - marketplace_installation.request_uninstall
                        - marketplace_installation.update
                        - marketplace_shortcut.create
                        - marketplace_shortcut.destroy
                        - marketplace_shortcut.update
                        - member.create
                        - member.destroy
                        - member.update
                        - third_party_hf_uid_read_configuration.create
                        - third_party_hf_uid_read_configuration.destroy
                        - mifare_classic_data_block_configuration.create
                        - mifare_classic_data_block_configuration.destroy
                        - mifare_desfire_extra_application_configuration.create
                        - mifare_desfire_master_key_configuration.create
                        - mobile_cache_policy.update
                        - mobile_cache_policy.invalidate
                        - organization.accept_transfer
                        - organization.cancel_transfer
                        - organization.create
                        - organization.generate_next_certificate
                        - organization.reject_transfer
                        - organization.request_transfer
                        - organization.reset_scim_token
                        - organization.rotate_certificate
                        - organization.update
                        - place.cancel_lockdown
                        - place_card.create
                        - place_card.destroy
                        - place.create
                        - place.destroy
                        - place.lock_down
                        - place.occupancy_rate_limit_reach
                        - place.update
                        - reader.access
                        - reader.assign
                        - reader.deassign
                        - reader.reboot
                        - reader.reset_tamper
                        - reader.tamper
                        - reader.update
                        - report.create
                        - report.destroy
                        - report.download
                        - report.finish
                        - role_assignment.create
                        - role_assignment.destroy
                        - role_assignment.update
                        - schedule.create
                        - schedule.destroy
                        - schedule.update
                        - scheduled_report.create
                        - scheduled_report.destroy
                        - scheduled_report.update
                        - share.create
                        - share.destroy
                        - share.update
                        - subscription.update
                        - team.create
                        - team.destroy
                        - team_membership.create
                        - team_membership.destroy
                        - team.update
                        - terminal.create
                        - terminal.destroy
                        - terminal.trigger
                        - terminal.update
                        - user.activate_2fa
                        - user.create_backup_codes
                        - user.create_password
                        - user.create
                        - user.deactivate_2fa
                        - user.destroy
                        - user.show_confirmation
                        - user.update_password
                        - user.update
                        - visualization_page_reporter.create
                        - visualization_page_reporter.destroy
                        - visualization_page_share.create
                        - visualization_page_share.destroy
                        - wireless_lock.battery_warning
                        - wireless_lock.closed
                        - wireless_lock_connection.create
                        - wireless_lock_connection.destroy
                        - wireless_lock_connection.update
                        - wireless_lock.disenroll
                        - wireless_lock.locked
                        - wireless_lock.opened
                        - wireless_lock.tampered
                        - wireless_lock.unlocked
                        - wireless_lock.update
                        - zone.create
                        - zone.destroy
                        - zone.external_mode_override
                        - zone.override
                        - zone.policy_activate
                        - zone.policy_override
                        - zone.policy_transition
                        - zone.policy_violate
                        - zone.reset
                        - zone.update
                      description: The event types for which the webhook would be
                        enabled.
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - url
                  - enabled_events
                  additionalProperties: false
                - type: object
                  title: Jumpcloud User Import Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: jumpcloud_user_import
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    jumpcloud_group_id:
                      type:
                      - string
                      - 'null'
                      description: 'The ID of the group in JumpCloud to import from.
                        Required to enable integration

                        '
                    jumpcloud_organization_id:
                      type:
                      - string
                      - 'null'
                      description: 'The ID of the organization in JumpCloud to import
                        from. Required for multi-tenant JumpCloud users.

                        '
                    import_members_only:
                      type: boolean
                      description: 'Whether users should be imported to the place
                        or organization, without adding them to a group

                        '
                    group_id:
                      type:
                      - integer
                      - 'null'
                      description: The group ID of the integration
                    group:
                      type: object
                      title: Group
                      description: The group of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - jumpcloud_group_id
                  - jumpcloud_organization_id
                  - import_members_only
                  - group_id
                  additionalProperties: false
                - type: object
                  title: Rhombus Systems Camera Integration
                  properties:
                    id:
                      type: integer
                      description: The ID of the integration
                    resource_type:
                      type: string
                      description: The resource type of the integration
                      const: Integration
                    name:
                      type: string
                      description: The name of the integration
                    type:
                      type: string
                      const: rhombus_systems_camera
                      description: 'The type of the integration

                        '
                    enabled:
                      type: boolean
                      description: Whether the integration is enabled
                    disabled_due_to_error:
                      type: boolean
                      description: Whether the integration was disabled automatically
                        due to an error
                    disabled_due_to_error_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the integration was disabled automatically
                        due to an error
                    created_at:
                      type: string
                      format: date-time
                      description: When the integration was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the integration was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the integration
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the integration
                    place:
                      type: object
                      title: Place
                      description: The place of the integration
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - type
                  - enabled
                  - disabled_due_to_error
                  - disabled_due_to_error_at
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - place
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateIntegration
      summary: Update integration
      tags:
      - Integrations
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Active Directory User Import Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      active_directory_group_id:
                        type: string
                        description: The group ID of the Active Directory
                      active_directory_tenant_id:
                        type: string
                        description: The tenant ID of the Active Directory
                      active_directory_user_email_property:
                        type: string
                        enum:
                        - mail
                        - userPrincipalName
                        default: userPrincipalName
                        description: Which property match against when importing users
                      group_id:
                        type:
                        - integer
                        - 'null'
                        description: The group ID of the integration
                      import_members_only:
                        type: boolean
                        description: 'Whether users should be imported to the place
                          or organization, without adding them to a group

                          '
                    required: []
                required:
                - integration
              - type: object
                title: Braxos Elevator Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      place_id:
                        type: integer
                        description: The place ID of the integration
                      api_key:
                        type: string
                        description: The Braxos API key
                    required: []
                required:
                - integration
              - type: object
                title: Event Webhook Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      url:
                        type: string
                        format: uri
                        description: 'The URL to call when events are triggered

                          '
                      enabled_events:
                        type: array
                        items:
                          type: string
                          enum:
                          - access_key.create
                          - access_key.destroy
                          - amenity.create
                          - amenity.destroy
                          - amenity.update
                          - apple_pass.destroy
                          - apple_pass_instance.destroy
                          - apple_pass_instance.resume
                          - apple_pass_instance.suspend
                          - beacon.update
                          - booking.cancel
                          - booking.create
                          - camera.create
                          - camera.destroy
                          - camera.import
                          - camera.rate_limited
                          - camera_snapshot_set.create
                          - camera.update
                          - card.activate_with_token
                          - card.activate
                          - card.assign
                          - card.create
                          - card.deactivate
                          - card.deassign
                          - card.destroy
                          - card.update
                          - communication_policy.update
                          - controller.assign
                          - controller.deassign
                          - controller_input.closed
                          - controller_input_connection.create
                          - controller_input_connection.destroy
                          - controller_input_connection.update
                          - controller_input.opened
                          - controller_input.tamper
                          - controller_input.triggered
                          - controller.reboot
                          - controller_relay_connection.create
                          - controller_relay_connection.destroy
                          - controller_relay_connection.update
                          - controller.tamper
                          - controller.update
                          - controller.wiegand_board_connect
                          - controller.wiegand_board_disconnect
                          - controller_wiegand_connection.create
                          - controller_wiegand_connection.destroy
                          - controller_wiegand_connection.excessive_pin_attempts
                          - controller_wiegand_connection.update
                          - csv_card_import.create
                          - csv_user_import.create
                          - custom_role.create
                          - custom_role.destroy
                          - custom_role.update
                          - elevator.create
                          - elevator.destroy
                          - elevator.permit
                          - elevator_stop.cancel_lockdown
                          - elevator_stop.create
                          - elevator_stop.destroy
                          - elevator_stop.lock_down
                          - elevator_stop.scheduled_permit_ended
                          - elevator_stop.scheduled_permit_started
                          - elevator_stop.update
                          - elevator.update
                          - event_retention_policy.create
                          - event_retention_policy.destroy
                          - event_retention_policy.update
                          - floor.create
                          - floor.destroy
                          - floor.update
                          - group.create
                          - group.destroy
                          - group_elevator_stop.create
                          - group_elevator_stop.destroy
                          - group_link.create
                          - group_link.destroy
                          - group_lock.create
                          - group_lock.destroy
                          - group_terminal.create
                          - group_terminal.destroy
                          - group.update
                          - group_zone.create
                          - group_zone.destroy
                          - guest.create
                          - guest.destroy
                          - incident.create
                          - incident_policy.create
                          - incident_policy.destroy
                          - incident_policy_subscription.create
                          - incident_policy_subscription.destroy
                          - incident_policy_subscription.update
                          - incident_policy.update
                          - incident.update
                          - integration.create
                          - integration.destroy
                          - integration.disable_due_to_error
                          - integration.update
                          - integration.warn_due_to_error
                          - intercom.answer_call
                          - intercom.assign
                          - intercom_assignment.create
                          - intercom_assignment.destroy
                          - intercom_completed_call.create
                          - intercom.deassign
                          - intercom.dismiss_call
                          - intercom.finish_call
                          - intercom.initiate_streaming
                          - intercom.miss_call
                          - intercom.timeout_call
                          - intercom.trigger_call
                          - intercom.update
                          - invite.create
                          - kiosk.assign
                          - kiosk.deassign
                          - kiosk_shortcut.create
                          - kiosk_shortcut.destroy
                          - kiosk.update
                          - lock.cancel_lockdown
                          - lock.closed
                          - lock.create
                          - lock.destroy
                          - lock.first_to_arrive
                          - lock.forced_open
                          - lock.held_open
                          - lock.last_to_leave
                          - lock.lock_down
                          - lock.locked
                          - lock.opened
                          - lock.scheduled_unlock_ended
                          - lock.scheduled_unlock_started
                          - lock.tailgate
                          - lock.unlock
                          - lock.update
                          - login.create
                          - login.destroy
                          - login.promote
                          - login.resolve
                          - marketplace_app_share.create
                          - marketplace_app_share.destroy
                          - marketplace_installation.create
                          - marketplace_installation.destroy
                          - marketplace_installation.request_uninstall
                          - marketplace_installation.update
                          - marketplace_shortcut.create
                          - marketplace_shortcut.destroy
                          - marketplace_shortcut.update
                          - member.create
                          - member.destroy
                          - member.update
                          - third_party_hf_uid_read_configuration.create
                          - third_party_hf_uid_read_configuration.destroy
                          - mifare_classic_data_block_configuration.create
                          - mifare_classic_data_block_configuration.destroy
                          - mifare_desfire_extra_application_configuration.create
                          - mifare_desfire_master_key_configuration.create
                          - mobile_cache_policy.update
                          - mobile_cache_policy.invalidate
                          - organization.accept_transfer
                          - organization.cancel_transfer
                          - organization.create
                          - organization.generate_next_certificate
                          - organization.reject_transfer
                          - organization.request_transfer
                          - organization.reset_scim_token
                          - organization.rotate_certificate
                          - organization.update
                          - place.cancel_lockdown
                          - place_card.create
                          - place_card.destroy
                          - place.create
                          - place.destroy
                          - place.lock_down
                          - place.occupancy_rate_limit_reach
                          - place.update
                          - reader.access
                          - reader.assign
                          - reader.deassign
                          - reader.reboot
                          - reader.reset_tamper
                          - reader.tamper
                          - reader.update
                          - report.create
                          - report.destroy
                          - report.download
                          - report.finish
                          - role_assignment.create
                          - role_assignment.destroy
                          - role_assignment.update
                          - schedule.create
                          - schedule.destroy
                          - schedule.update
                          - scheduled_report.create
                          - scheduled_report.destroy
                          - scheduled_report.update
                          - share.create
                          - share.destroy
                          - share.update
                          - subscription.update
                          - team.create
                          - team.destroy
                          - team_membership.create
                          - team_membership.destroy
                          - team.update
                          - terminal.create
                          - terminal.destroy
                          - terminal.trigger
                          - terminal.update
                          - user.activate_2fa
                          - user.create_backup_codes
                          - user.create_password
                          - user.create
                          - user.deactivate_2fa
                          - user.destroy
                          - user.show_confirmation
                          - user.update_password
                          - user.update
                          - visualization_page_reporter.create
                          - visualization_page_reporter.destroy
                          - visualization_page_share.create
                          - visualization_page_share.destroy
                          - wireless_lock.battery_warning
                          - wireless_lock.closed
                          - wireless_lock_connection.create
                          - wireless_lock_connection.destroy
                          - wireless_lock_connection.update
                          - wireless_lock.disenroll
                          - wireless_lock.locked
                          - wireless_lock.opened
                          - wireless_lock.tampered
                          - wireless_lock.unlocked
                          - wireless_lock.update
                          - zone.create
                          - zone.destroy
                          - zone.external_mode_override
                          - zone.override
                          - zone.policy_activate
                          - zone.policy_override
                          - zone.policy_transition
                          - zone.policy_violate
                          - zone.reset
                          - zone.update
                        description: The event types for which the webhook would be
                          enabled.
                      signature_key:
                        type: string
                        description: |
                          The key to use for webhook payload signatures. We build and
                          attach the signature as follows:

                          - Take the body
                          - Calculate the HMAC-SHA256 MAC using the body as payload and
                            the signature key as key
                          - Set the "X-Signature" header to `sha256=<MAC>`
                    required: []
                required:
                - integration
              - type: object
                title: Jumpcloud User Import Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      jumpcloud_organization_id:
                        type:
                        - string
                        - 'null'
                        description: 'The ID of the organization in JumpCloud to import
                          from. Required for multi-tenant JumpCloud users.

                          '
                      jumpcloud_group_id:
                        type:
                        - string
                        - 'null'
                        description: 'The ID of the group in JumpCloud to import from.
                          Required to enable integration

                          '
                      group_id:
                        type:
                        - integer
                        - 'null'
                        description: The group ID of the integration
                      import_members_only:
                        type: boolean
                        description: 'Whether users should be imported to the place
                          or organization, without adding them to a group

                          '
                      api_key:
                        type: string
                        description: The JumpCloud API key
                    required: []
                required:
                - integration
              - type: object
                title: Rhombus Systems Camera Integration
                properties:
                  integration:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the integration
                      enabled:
                        type: boolean
                        description: Whether the integration is enabled
                      place_id:
                        type: integer
                        description: The place ID of the integration
                      api_key:
                        type: string
                        description: The Rhombus Systems API key
                      certificate:
                        type: string
                        description: The Rhombus Systems certificate
                      private_key:
                        type: string
                        description: The Rhombus Systems private key
                    required: []
                required:
                - integration
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteIntegration
      summary: Delete integration
      tags:
      - Integrations
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/invites":
    post:
      operationId: createInvite
      summary: Create invite
      tags:
      - Invites
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Place Invite
                properties:
                  invite:
                    type: object
                    properties:
                      notify:
                        type: boolean
                        description: Whether to notify the invitee
                        default: true
                      invites_to_type:
                        type: string
                        const: Place
                      invites_to_id:
                        type: integer
                        description: The ID of the place
                      invitee:
                        type: object
                        description: The resource invited
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      access_key:
                        properties:
                          link_enabled:
                            type: boolean
                            default: true
                            description: Will generate a link that can be used for
                              access.
                          qr_code_enabled:
                            type: boolean
                            default: false
                            description: Will generate a QR code that can be used
                              for access.
                        description: Access key for the invitee. Only to be used when
                          invitee is a guest.
                      role_assignment:
                        type: object
                        title: RoleAssignment
                        properties:
                          role_id:
                            type: string
                            description: The role ID of the role assignment.
                    required:
                    - invites_to_type
                    - invites_to_id
                    - invitee
                    - role_assignment
                required:
                - invite
              - type: object
                title: Group Invite
                properties:
                  invite:
                    type: object
                    properties:
                      notify:
                        type: boolean
                        description: Whether to notify the invitee
                        default: true
                      invites_to_type:
                        type: string
                        const: Group
                      invites_to_id:
                        type: integer
                        description: The ID of the group
                      invitee:
                        type: object
                        description: The resource invited
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      access_key:
                        properties:
                          link_enabled:
                            type: boolean
                            default: true
                            description: Will generate a link that can be used for
                              access.
                          qr_code_enabled:
                            type: boolean
                            default: false
                            description: Will generate a QR code that can be used
                              for access.
                        description: Access key for the invitee. Only to be used when
                          invitee is a guest.
                      role_assignment:
                        type: object
                        title: RoleAssignment
                        properties:
                          role_id:
                            type: string
                            description: The role ID of the role assignment.
                          valid_from:
                            type:
                            - string
                            - 'null'
                            format: date-time
                            description: When the role assignment starts to be valid.
                          valid_until:
                            type:
                            - string
                            - 'null'
                            format: date-time
                            description: When the role assignment stops to be valid.
                    required:
                    - invites_to_type
                    - invites_to_id
                    - invitee
                    - role_assignment
                required:
                - invite
              - type: object
                title: Team Invite
                properties:
                  invite:
                    type: object
                    properties:
                      notify:
                        type: boolean
                        description: Whether to notify the invitee
                        default: true
                      invites_to_type:
                        type: string
                        const: Team
                      invites_to_id:
                        type: integer
                        description: The ID of the team
                      invitee:
                        type: object
                        description: The resource invited
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      access_key:
                        properties:
                          link_enabled:
                            type: boolean
                            default: true
                            description: Will generate a link that can be used for
                              access.
                          qr_code_enabled:
                            type: boolean
                            default: false
                            description: Will generate a QR code that can be used
                              for access.
                        description: Access key for the invitee. Only to be used when
                          invitee is a guest.
                    required:
                    - invites_to_type
                    - invites_to_id
                    - invitee
                required:
                - invite
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Place Invite
                  properties:
                    id:
                      type: integer
                      description: The ID of the invite
                    resource_type:
                      type: string
                      description: The resource type of the invite
                      const: Invite
                    notify:
                      type: boolean
                      description: Whether to notify the invitee
                      default: true
                    created_at:
                      type: string
                      format: date-time
                      description: When the invite was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the invite was updated
                    invites_to_type:
                      type: string
                      const: Place
                    invites_to_id:
                      type: integer
                      description: The ID of the place
                    invitee_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The invitee type of the invite
                    invitee_id:
                      type: integer
                      description: The invitee ID of the invite
                    invitee:
                      type: object
                      description: The invitee of the invite
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    access_key:
                      type: object
                      title: Access Key
                      description: Access key for the invitee. Only to be used when
                        invitee is a guest.
                      properties:
                        id:
                          type: integer
                          description: The ID of the access key
                        resource_type:
                          type: string
                          description: The resource type of the access key
                          const: AccessKey
                        link_enabled:
                          type: boolean
                          default: true
                          description: Will generate a link that can be used for access.
                        qr_code_enabled:
                          type: boolean
                          default: false
                          description: Will generate a QR code that can be used for
                            access.
                      required:
                      - id
                      - resource_type
                      - link_enabled
                      - qr_code_enabled
                      additionalProperties: false
                    role_assignment_id:
                      type: integer
                      description: The role_assignment ID of the invite
                    role_assignment:
                      type: object
                      title: Role Assignment
                      description: The role_assignment of the invite
                      properties:
                        id:
                          type: integer
                          description: The ID of the role assignment
                        resource_type:
                          type: string
                          description: The resource type of the role assignment
                          const: RoleAssignment
                        role_id:
                          type: string
                          description: The role ID of the role assignment.
                      required:
                      - id
                      - resource_type
                      - role_id
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - notify
                  - created_at
                  - updated_at
                  - invites_to_type
                  - invites_to_id
                  - invitee_type
                  - invitee_id
                  - invitee
                  - role_assignment_id
                  - role_assignment
                  additionalProperties: false
                - type: object
                  title: Group Invite
                  properties:
                    id:
                      type: integer
                      description: The ID of the invite
                    resource_type:
                      type: string
                      description: The resource type of the invite
                      const: Invite
                    notify:
                      type: boolean
                      description: Whether to notify the invitee
                      default: true
                    created_at:
                      type: string
                      format: date-time
                      description: When the invite was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the invite was updated
                    invites_to_type:
                      type: string
                      const: Group
                    invites_to_id:
                      type: integer
                      description: The ID of the group
                    invitee_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The invitee type of the invite
                    invitee_id:
                      type: integer
                      description: The invitee ID of the invite
                    invitee:
                      type: object
                      description: The invitee of the invite
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    access_key:
                      type: object
                      title: Access Key
                      description: Access key for the invitee. Only to be used when
                        invitee is a guest.
                      properties:
                        id:
                          type: integer
                          description: The ID of the access key
                        resource_type:
                          type: string
                          description: The resource type of the access key
                          const: AccessKey
                        link_enabled:
                          type: boolean
                          default: true
                          description: Will generate a link that can be used for access.
                        qr_code_enabled:
                          type: boolean
                          default: false
                          description: Will generate a QR code that can be used for
                            access.
                      required:
                      - id
                      - resource_type
                      - link_enabled
                      - qr_code_enabled
                      additionalProperties: false
                    role_assignment_id:
                      type: integer
                      description: The role_assignment ID of the invite
                    role_assignment:
                      type: object
                      title: Role Assignment
                      description: The role_assignment of the invite
                      properties:
                        id:
                          type: integer
                          description: The ID of the role assignment
                        resource_type:
                          type: string
                          description: The resource type of the role assignment
                          const: RoleAssignment
                        role_id:
                          type: string
                          description: The role ID of the role assignment.
                        valid_from:
                          type:
                          - string
                          - 'null'
                          format: date-time
                          description: When the role assignment starts to be valid.
                        valid_until:
                          type:
                          - string
                          - 'null'
                          format: date-time
                          description: When the role assignment stops to be valid.
                      required:
                      - id
                      - resource_type
                      - role_id
                      - valid_from
                      - valid_until
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - notify
                  - created_at
                  - updated_at
                  - invites_to_type
                  - invites_to_id
                  - invitee_type
                  - invitee_id
                  - invitee
                  - role_assignment_id
                  - role_assignment
                  additionalProperties: false
                - type: object
                  title: Team Invite
                  properties:
                    id:
                      type: integer
                      description: The ID of the invite
                    resource_type:
                      type: string
                      description: The resource type of the invite
                      const: Invite
                    notify:
                      type: boolean
                      description: Whether to notify the invitee
                      default: true
                    created_at:
                      type: string
                      format: date-time
                      description: When the invite was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the invite was updated
                    invites_to_type:
                      type: string
                      const: Team
                    invites_to_id:
                      type: integer
                      description: The ID of the team
                    invitee_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The invitee type of the invite
                    invitee_id:
                      type: integer
                      description: The invitee ID of the invite
                    invitee:
                      type: object
                      description: The invitee of the invite
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    access_key:
                      type: object
                      title: Access Key
                      description: Access key for the invitee. Only to be used when
                        invitee is a guest.
                      properties:
                        id:
                          type: integer
                          description: The ID of the access key
                        resource_type:
                          type: string
                          description: The resource type of the access key
                          const: AccessKey
                        link_enabled:
                          type: boolean
                          default: true
                          description: Will generate a link that can be used for access.
                        qr_code_enabled:
                          type: boolean
                          default: false
                          description: Will generate a QR code that can be used for
                            access.
                      required:
                      - id
                      - resource_type
                      - link_enabled
                      - qr_code_enabled
                      additionalProperties: false
                    team_membership_id:
                      type: integer
                      description: The ID of the team membership
                  required:
                  - id
                  - resource_type
                  - notify
                  - created_at
                  - updated_at
                  - invites_to_type
                  - invites_to_id
                  - invitee_type
                  - invitee_id
                  - invitee
                  - team_membership_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/locks":
    get:
      operationId: fetchLocks
      summary: Fetch locks
      description: |
        Returns a list of locks.

        When authenticating with a GroupLink, a subset of the Lock resource is returned.
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: floor_id
        in: query
        schema:
          type: integer
        description: Filter by floor ID
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: configured
        in: query
        schema:
          type: boolean
        description: Filter by whether the lock has been configured.
      - name: online
        in: query
        schema:
          type: boolean
        description: Filter by whether the lock is online.
      - name: unlocked
        in: query
        schema:
          type: boolean
        description: Filter by whether the lock is unlocked or locked.
      - name: locked_down
        in: query
        schema:
          type: boolean
        description: Filter by whether the lock is locked down.
      - name: favorite
        in: query
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
          - "*"
        description: |
          Include favorite status in response and/or filter by it.

          `*` - include `favorite` field in response<br>
          `true` - include `favorite` field in response and return favorites<br>
          `false` - include `favorite` field in response and return non-favorites<br>
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - favorite
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `favorite` - sort by favorite, most recent favorites first<br>
          `name` - sort by lock name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Lock - when authenticated by group link
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      configured:
                        type: boolean
                        description: Whether the lock has been configured.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the lock
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the lock has been locked down.

                          '
                      locked_down:
                        type: boolean
                        description: 'Whether the lock is locked down. When locked
                          down the lock is locked for everyone.

                          '
                      name:
                        type: string
                        description: The name of the lock
                      online:
                        type:
                        - boolean
                        - 'null'
                        description: Whether the lock is online.
                      open:
                        type: boolean
                        description: Whether the lock is open
                      unlocked_until:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                      unlocked:
                        type: boolean
                        description: Whether the lock is unlocked.
                      place_id:
                        type: integer
                        description: The place ID of the lock
                      place:
                        type: object
                        title: Place
                        description: The place of the lock
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          name:
                            type: string
                            description: The name of the place
                          latitude:
                            type:
                            - number
                            - 'null'
                            format: float
                            description: The latitude of the place
                          longitude:
                            type:
                            - number
                            - 'null'
                            format: float
                            description: The longitude of the place
                        required:
                        - id
                        - name
                        - latitude
                        - longitude
                        additionalProperties: false
                    required:
                    - id
                    - configured
                    - description
                    - locked_down_since
                    - locked_down
                    - name
                    - online
                    - open
                    - unlocked_until
                    - unlocked
                    - place_id
                    - place
                    additionalProperties: false
                  - type: object
                    title: Lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      resource_type:
                        type: string
                        description: The resource type of the lock
                        const: Lock
                      created_at:
                        type: string
                        format: date-time
                        description: When the lock was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the lock was updated
                      configured:
                        type: boolean
                        description: Whether the lock has been configured.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the lock
                      first_to_arrive_required_until:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: Until when the first to arrive trigger is required
                          to be satisfied.
                      first_to_arrive_satisfied:
                        type: boolean
                        description: Whether the first to arrive condition is currently
                          satisfied.
                      latitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The latitude of the lock.
                      locked_down:
                        type: boolean
                        description: 'Whether the lock is locked down. When locked
                          down the lock is locked for everyone.

                          '
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the lock has been locked down.

                          '
                      longitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The longitude of the lock.
                      name:
                        type: string
                        description: The name of the lock
                      on_scheduled_unlock:
                        type: boolean
                        description: If the lock is on a scheduled unlock.
                      online:
                        type:
                        - boolean
                        - 'null'
                        description: Whether the lock is online.
                      open:
                        type: boolean
                        description: Whether the lock is open
                      order_id:
                        type:
                        - integer
                        - 'null'
                        description: 'The position of the lock, determining the sort
                          order of the locks.

                          '
                      unlocked:
                        type: boolean
                        description: Whether the lock is unlocked.
                      geofence_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether the lock is geofence restricted. Geofence
                          restriction enforces that users may only unlock when they
                          are near the lock.

                          '
                      geofence_restriction_radius:
                        type: number
                        description: The radius of the geofence restriction.
                      reader_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether reader restriction is enabled. Reader
                          restriction enforces that users may only unlock when standing
                          in front of the door.

                          '
                      time_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether the lock is time restricted. Time restriction
                          enforces that users may only unlock at specific hours.

                          '
                      time_restriction_time_zone:
                        type:
                        - string
                        - 'null'
                        example: Europe/London
                        description: 'What time zone the time restriction applies
                          to.

                          '
                      favorite:
                        type: boolean
                        description: 'Whether the lock is marked as a favorite by
                          the user. Only shown if requested.

                          '
                      place_id:
                        type: integer
                        description: The place ID of the lock
                      place:
                        type: object
                        title: Place
                        description: The place of the lock
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          name:
                            type: string
                            description: The name of the place
                          latitude:
                            type:
                            - number
                            - 'null'
                            format: float
                            description: The latitude of the place
                          longitude:
                            type:
                            - number
                            - 'null'
                            format: float
                            description: The longitude of the place
                        required:
                        - id
                        - name
                        - latitude
                        - longitude
                        additionalProperties: false
                      floor_id:
                        type:
                        - integer
                        - 'null'
                        description: The floor ID of the lock
                      groups_count:
                        deprecated: true
                        type: integer
                      unlocked_until:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                        format: date-time
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - configured
                    - description
                    - first_to_arrive_required_until
                    - first_to_arrive_satisfied
                    - latitude
                    - locked_down
                    - locked_down_since
                    - longitude
                    - name
                    - on_scheduled_unlock
                    - online
                    - open
                    - order_id
                    - unlocked
                    - geofence_restriction_enabled
                    - geofence_restriction_radius
                    - reader_restriction_enabled
                    - time_restriction_enabled
                    - time_restriction_time_zone
                    - place_id
                    - place
                    - floor_id
                    - groups_count
                    - unlocked_until
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createLock
      summary: Create lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Lock
              properties:
                lock:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the lock
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the lock.
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the lock.
                    geofence_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is geofence restricted. Geofence
                        restriction enforces that users may only unlock when they
                        are near the lock.

                        '
                    reader_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether reader restriction is enabled. Reader
                        restriction enforces that users may only unlock when standing
                        in front of the door.

                        '
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is time restricted. Time restriction
                        enforces that users may only unlock at specific hours.

                        '
                    order_id:
                      type:
                      - integer
                      - 'null'
                      description: 'The position of the lock, determining the sort
                        order of the locks.

                        '
                    floor_id:
                      type:
                      - integer
                      - 'null'
                      description: The floor ID of the lock
                    place_id:
                      type: integer
                      description: The place ID of the lock
                    favorite:
                      type: boolean
                      description: 'Whether the lock is marked as a favorite by the
                        user. Only shown if requested.

                        '
                  required:
                  - name
                  - place_id
              required:
              - lock
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Lock - when authenticated by group link
                  properties:
                    id:
                      type: integer
                      description: The ID of the lock
                    configured:
                      type: boolean
                      description: Whether the lock has been configured.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the lock has been locked down.

                        '
                    locked_down:
                      type: boolean
                      description: 'Whether the lock is locked down. When locked down
                        the lock is locked for everyone.

                        '
                    name:
                      type: string
                      description: The name of the lock
                    online:
                      type:
                      - boolean
                      - 'null'
                      description: Whether the lock is online.
                    open:
                      type: boolean
                      description: Whether the lock is open
                    unlocked_until:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                    unlocked:
                      type: boolean
                      description: Whether the lock is unlocked.
                    place_id:
                      type: integer
                      description: The place ID of the lock
                    place:
                      type: object
                      title: Place
                      description: The place of the lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        name:
                          type: string
                          description: The name of the place
                        latitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The latitude of the place
                        longitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The longitude of the place
                      required:
                      - id
                      - name
                      - latitude
                      - longitude
                      additionalProperties: false
                  required:
                  - id
                  - configured
                  - description
                  - locked_down_since
                  - locked_down
                  - name
                  - online
                  - open
                  - unlocked_until
                  - unlocked
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Lock
                  properties:
                    id:
                      type: integer
                      description: The ID of the lock
                    resource_type:
                      type: string
                      description: The resource type of the lock
                      const: Lock
                    created_at:
                      type: string
                      format: date-time
                      description: When the lock was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the lock was updated
                    configured:
                      type: boolean
                      description: Whether the lock has been configured.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    first_to_arrive_required_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: Until when the first to arrive trigger is required
                        to be satisfied.
                    first_to_arrive_satisfied:
                      type: boolean
                      description: Whether the first to arrive condition is currently
                        satisfied.
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the lock.
                    locked_down:
                      type: boolean
                      description: 'Whether the lock is locked down. When locked down
                        the lock is locked for everyone.

                        '
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the lock has been locked down.

                        '
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the lock.
                    name:
                      type: string
                      description: The name of the lock
                    on_scheduled_unlock:
                      type: boolean
                      description: If the lock is on a scheduled unlock.
                    online:
                      type:
                      - boolean
                      - 'null'
                      description: Whether the lock is online.
                    open:
                      type: boolean
                      description: Whether the lock is open
                    order_id:
                      type:
                      - integer
                      - 'null'
                      description: 'The position of the lock, determining the sort
                        order of the locks.

                        '
                    unlocked:
                      type: boolean
                      description: Whether the lock is unlocked.
                    geofence_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is geofence restricted. Geofence
                        restriction enforces that users may only unlock when they
                        are near the lock.

                        '
                    geofence_restriction_radius:
                      type: number
                      description: The radius of the geofence restriction.
                    reader_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether reader restriction is enabled. Reader
                        restriction enforces that users may only unlock when standing
                        in front of the door.

                        '
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is time restricted. Time restriction
                        enforces that users may only unlock at specific hours.

                        '
                    time_restriction_time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: 'What time zone the time restriction applies to.

                        '
                    favorite:
                      type: boolean
                      description: 'Whether the lock is marked as a favorite by the
                        user. Only shown if requested.

                        '
                    place_id:
                      type: integer
                      description: The place ID of the lock
                    place:
                      type: object
                      title: Place
                      description: The place of the lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        name:
                          type: string
                          description: The name of the place
                        latitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The latitude of the place
                        longitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The longitude of the place
                      required:
                      - id
                      - name
                      - latitude
                      - longitude
                      additionalProperties: false
                    floor_id:
                      type:
                      - integer
                      - 'null'
                      description: The floor ID of the lock
                    groups_count:
                      deprecated: true
                      type: integer
                    unlocked_until:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - configured
                  - description
                  - first_to_arrive_required_until
                  - first_to_arrive_satisfied
                  - latitude
                  - locked_down
                  - locked_down_since
                  - longitude
                  - name
                  - on_scheduled_unlock
                  - online
                  - open
                  - order_id
                  - unlocked
                  - geofence_restriction_enabled
                  - geofence_restriction_radius
                  - reader_restriction_enabled
                  - time_restriction_enabled
                  - time_restriction_time_zone
                  - place_id
                  - place
                  - floor_id
                  - groups_count
                  - unlocked_until
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/locks/{id}":
    get:
      operationId: fetchLock
      summary: Fetch lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      - name: favorite
        in: query
        schema:
          type:
          - boolean
          - 'null'
        description: Include favorite status in response
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Lock - when authenticated by group link
                  properties:
                    id:
                      type: integer
                      description: The ID of the lock
                    configured:
                      type: boolean
                      description: Whether the lock has been configured.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the lock has been locked down.

                        '
                    locked_down:
                      type: boolean
                      description: 'Whether the lock is locked down. When locked down
                        the lock is locked for everyone.

                        '
                    name:
                      type: string
                      description: The name of the lock
                    online:
                      type:
                      - boolean
                      - 'null'
                      description: Whether the lock is online.
                    open:
                      type: boolean
                      description: Whether the lock is open
                    unlocked_until:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                    unlocked:
                      type: boolean
                      description: Whether the lock is unlocked.
                    place_id:
                      type: integer
                      description: The place ID of the lock
                    place:
                      type: object
                      title: Place
                      description: The place of the lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        name:
                          type: string
                          description: The name of the place
                        latitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The latitude of the place
                        longitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The longitude of the place
                      required:
                      - id
                      - name
                      - latitude
                      - longitude
                      additionalProperties: false
                  required:
                  - id
                  - configured
                  - description
                  - locked_down_since
                  - locked_down
                  - name
                  - online
                  - open
                  - unlocked_until
                  - unlocked
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Lock
                  properties:
                    id:
                      type: integer
                      description: The ID of the lock
                    resource_type:
                      type: string
                      description: The resource type of the lock
                      const: Lock
                    created_at:
                      type: string
                      format: date-time
                      description: When the lock was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the lock was updated
                    configured:
                      type: boolean
                      description: Whether the lock has been configured.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    first_to_arrive_required_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: Until when the first to arrive trigger is required
                        to be satisfied.
                    first_to_arrive_satisfied:
                      type: boolean
                      description: Whether the first to arrive condition is currently
                        satisfied.
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the lock.
                    locked_down:
                      type: boolean
                      description: 'Whether the lock is locked down. When locked down
                        the lock is locked for everyone.

                        '
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the lock has been locked down.

                        '
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the lock.
                    name:
                      type: string
                      description: The name of the lock
                    on_scheduled_unlock:
                      type: boolean
                      description: If the lock is on a scheduled unlock.
                    online:
                      type:
                      - boolean
                      - 'null'
                      description: Whether the lock is online.
                    open:
                      type: boolean
                      description: Whether the lock is open
                    order_id:
                      type:
                      - integer
                      - 'null'
                      description: 'The position of the lock, determining the sort
                        order of the locks.

                        '
                    unlocked:
                      type: boolean
                      description: Whether the lock is unlocked.
                    geofence_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is geofence restricted. Geofence
                        restriction enforces that users may only unlock when they
                        are near the lock.

                        '
                    geofence_restriction_radius:
                      type: number
                      description: The radius of the geofence restriction.
                    reader_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether reader restriction is enabled. Reader
                        restriction enforces that users may only unlock when standing
                        in front of the door.

                        '
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is time restricted. Time restriction
                        enforces that users may only unlock at specific hours.

                        '
                    time_restriction_time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: 'What time zone the time restriction applies to.

                        '
                    favorite:
                      type: boolean
                      description: 'Whether the lock is marked as a favorite by the
                        user. Only shown if requested.

                        '
                    place_id:
                      type: integer
                      description: The place ID of the lock
                    place:
                      type: object
                      title: Place
                      description: The place of the lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        name:
                          type: string
                          description: The name of the place
                        latitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The latitude of the place
                        longitude:
                          type:
                          - number
                          - 'null'
                          format: float
                          description: The longitude of the place
                      required:
                      - id
                      - name
                      - latitude
                      - longitude
                      additionalProperties: false
                    floor_id:
                      type:
                      - integer
                      - 'null'
                      description: The floor ID of the lock
                    groups_count:
                      deprecated: true
                      type: integer
                    unlocked_until:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - configured
                  - description
                  - first_to_arrive_required_until
                  - first_to_arrive_satisfied
                  - latitude
                  - locked_down
                  - locked_down_since
                  - longitude
                  - name
                  - on_scheduled_unlock
                  - online
                  - open
                  - order_id
                  - unlocked
                  - geofence_restriction_enabled
                  - geofence_restriction_radius
                  - reader_restriction_enabled
                  - time_restriction_enabled
                  - time_restriction_time_zone
                  - place_id
                  - place
                  - floor_id
                  - groups_count
                  - unlocked_until
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateLock
      summary: Update lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Lock
              properties:
                lock:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the lock
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the lock
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the lock.
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the lock.
                    geofence_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is geofence restricted. Geofence
                        restriction enforces that users may only unlock when they
                        are near the lock.

                        '
                    reader_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether reader restriction is enabled. Reader
                        restriction enforces that users may only unlock when standing
                        in front of the door.

                        '
                    time_restriction_enabled:
                      type:
                      - boolean
                      - 'null'
                      description: 'Whether the lock is time restricted. Time restriction
                        enforces that users may only unlock at specific hours.

                        '
                    order_id:
                      type:
                      - integer
                      - 'null'
                      description: 'The position of the lock, determining the sort
                        order of the locks.

                        '
                    floor_id:
                      type:
                      - integer
                      - 'null'
                      description: The floor ID of the lock
                    favorite:
                      type: boolean
                      description: 'Whether the lock is marked as a favorite by the
                        user. Only shown if requested.

                        '
                  required: []
              required:
              - lock
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteLock
      summary: Delete lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/first_to_arrive":
    post:
      operationId: firstToArriveLock
      summary: Activate first to arrive side effects
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/last_to_leave":
    post:
      operationId: lastToLeaveLock
      summary: Reset first to arrive and disable scheduled unlock side effects
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/unlock":
    post:
      operationId: unlockLock
      summary: Unlock lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Lock
              properties:
                context:
                  type: object
                  properties:
                    location:
                      type: object
                      description: The user's current location (based on the WGS 84
                        coordinate system) for geo-fence restricted locks.
                      properties:
                        longitude:
                          type: number
                          format: float
                          description: The longitude of the user's location
                        latitude:
                          type: number
                          format: float
                          description: The latitude of the user's location
                      required:
                      - longitude
                      - latitude
                    services:
                      type: array
                      items:
                        type: object
                        description: The state of a service on the user's device,
                          used to evaluate restrictions during unlock.
                        properties:
                          type:
                            type: string
                            enum:
                            - BLE
                            - GPS
                            - NFC
                            description: The type of the service.
                          available:
                            type: boolean
                            description: Whether the service is available on the device.
                          enabled:
                            type: boolean
                            description: Whether the service is enabled by the user.
                          authorized:
                            type: boolean
                            description: Whether the app is authorized to use the
                              service.
                        required:
                        - type
                      description: The state of services on the user's device.
                  required: []
                lock:
                  type: object
                  properties:
                    proximity_proof:
                      type:
                      - string
                      - 'null'
                      description: Proximity proof to verify proximity to lock.
                  required:
                  - proximity_proof
              required: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    const: Unlocked!
                required:
                - message
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/lock_down":
    post:
      operationId: lockDownLock
      summary: Lock down lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/cancel_lockdown":
    post:
      operationId: cancelLockLockdown
      summary: Cancel lockdown of lock
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/favorite":
    post:
      operationId: favoriteLock
      summary: Favorite a lock
      description: |
        <!-- theme: warning -->
        > This endpoint is deprecated. Use `POST /favorites` instead.
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/locks/{id}/unfavorite":
    post:
      operationId: unfavoriteLock
      summary: Unfavorite a lock
      description: |
        <!-- theme: warning -->
        > This endpoint is deprecated. Use `DELETE /favorites/{id}` instead.
      tags:
      - Locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/logins":
    get:
      operationId: fetchLogins
      summary: Fetch logins
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`. If not
          used, it will default to `me`.
      - name: scope
        in: query
        schema:
          type: string
          enum:
          - me
          - all
          default: me
        deprecated: true
        description: 'Filter by the scope of the record. Deprecated, use `user_id=me`
          to scope the logins to the current user.

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Login
                  properties:
                    id:
                      type: integer
                      description: The ID of the login
                    created_at:
                      type: string
                      format: date-time
                      description: When the login was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the login was updated
                    type:
                      type: string
                      description: The type of the login.
                      enum:
                      - api
                      - device
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name for the login.
                    primary:
                      type: boolean
                      description: Whether the login is the primary login.
                    expire:
                      type: boolean
                      default: true
                      description: Whether the login expires.
                    last_used_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the login was last used.
                    device_brand:
                      type:
                      - string
                      - 'null'
                      description: The brand of the device.
                    device_model:
                      type:
                      - string
                      - 'null'
                      description: The model of the device.
                    os_name:
                      type:
                      - string
                      - 'null'
                      description: The name of the OS.
                    user_id:
                      type: integer
                      description: The user ID of the login
                    user:
                      type: object
                      title: User
                      description: The user of the login
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    app:
                      type: object
                      properties:
                        name:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                        version:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                    user_agent:
                      type: object
                      properties:
                        name:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                        version:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                    device:
                      type: object
                      properties:
                        brand:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                        model:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                    os:
                      type: object
                      properties:
                        name:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                        version:
                          type:
                          - string
                          - 'null'
                          deprecated: true
                  required:
                  - id
                  - created_at
                  - updated_at
                  - type
                  - name
                  - primary
                  - expire
                  - last_used_at
                  - device_brand
                  - device_model
                  - os_name
                  - user_id
                  - user
                  - app
                  - user_agent
                  - device
                  - os
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createLogin
      summary: Create login
      description: |
        Logins can be of either type `device` or `api`.

        Logins of type `device` represent logins from a computer, phone, etc. They contain
        device information such as `device_brand`, `device_model` and `os_name`. Users can
        create device logins for themselves when password flow is enabled; for organization owners,
        password flow is always enabled.
        Users with an organization-scoped role containing the `logins_write`
        permission can create device logins for *other* users, provided those users do not have
        greater permissions than the creator.
        Users can have up to 40 device logins. When the limit
        is exceeded, the least recently used or oldest login will be removed.

        Logins of type `api` represent logins used by third party applications and integrations.
        Users can have up to 10 API logins. When the limit is exceeded, creation will fail.
      tags:
      - Logins
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Login
              properties:
                login:
                  type: object
                  description: Information about the login being created.
                  properties:
                    type:
                      type: string
                      description: The type of the login.
                      enum:
                      - api
                      - device
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name for the login.
                    device_brand:
                      type:
                      - string
                      - 'null'
                      description: The brand of the device.
                    device_model:
                      type:
                      - string
                      - 'null'
                      description: The model of the device.
                    device_uid:
                      type:
                      - string
                      - 'null'
                      description: The uid of the device. This field is experimental
                        and may change.
                    os_name:
                      type:
                      - string
                      - 'null'
                      description: The name of the OS.
                    push_token:
                      type: string
                      description: The push token of the login.
                    ios_voip_push_token:
                      type: string
                      description: Voice over IP push token for iOS devices..
                    email:
                      type: string
                      format: email
                      description: |
                        The email of the user to create the login for.
                        We do not allow creating API logins on behalf of other users.
                        Only logins with `type` set to `device` can be created on behalf of other users.
                    expire:
                      type: boolean
                      default: true
                      description: Whether the login expires.
                user:
                  type: object
                  description: Authentication information about the user making the
                    request to create a login.
                  properties:
                    domain:
                      type: string
                      description: The domain of the organization of the user. Required
                        when signing in with password.
                    email:
                      type: string
                      description: The email of the user. Required when signing in
                        with password.
                    password:
                      type: string
                      description: The password of the user. Required when signing
                        in with password.
                    authentication_info:
                      type: string
                      description: An authentication info token. Can be used as a
                        substitute for domain, email and password.
                    otp_attempt:
                      type: string
                      description: A one time password. Required when two factor authentication
                        is turned on.
              required:
              - login
              - user
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Login
                properties:
                  id:
                    type: integer
                    description: The ID of the login
                  created_at:
                    type: string
                    format: date-time
                    description: When the login was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the login was updated
                  type:
                    type: string
                    description: The type of the login.
                    enum:
                    - api
                    - device
                  name:
                    type:
                    - string
                    - 'null'
                    description: The name for the login.
                  primary:
                    type: boolean
                    description: Whether the login is the primary login.
                  expire:
                    type: boolean
                    default: true
                    description: Whether the login expires.
                  last_used_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the login was last used.
                  device_brand:
                    type:
                    - string
                    - 'null'
                    description: The brand of the device.
                  device_model:
                    type:
                    - string
                    - 'null'
                    description: The model of the device.
                  os_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the OS.
                  user_id:
                    type: integer
                    description: The user ID of the login
                  user:
                    type: object
                    title: User
                    description: The user of the login
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  app:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  user_agent:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  device:
                    type: object
                    properties:
                      brand:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      model:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  os:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  scram_credentials:
                    type:
                    - object
                    - 'null'
                    properties:
                      phone_key:
                        type: string
                        format: hex
                      online_certificate:
                        type: string
                        format: hex
                  secret:
                    type: string
                    description: |
                      The secret value used for authentication.
                      Returned when creating API logins;
                      Returned for device logins when resolving and creating logins.
                  authentication_token:
                    type: string
                    deprecated: true
                    description: Alias for secret
                  has_primary_device:
                    type: boolean
                    description: Whether the user has a primary device.
                  email:
                    type: string
                    format: email
                    description: The email of the user.
                  notifications_unread_count:
                    type: integer
                    minimum: 0
                    description: The count of unread notifications.
                  otp_required_for_login:
                    type: boolean
                    description: Whether OTP/2FA is required for login.
                  otp_enabled_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When was the OTP/2FA enabled.
                  image:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The url to the image of the user.
                  primary_login_exists:
                    type: boolean
                    description: Whether the user has a primary login.
                required:
                - id
                - created_at
                - updated_at
                - type
                - name
                - primary
                - expire
                - last_used_at
                - device_brand
                - device_model
                - os_name
                - user_id
                - user
                - app
                - user_agent
                - device
                - os
                - scram_credentials
                - secret
                - authentication_token
                - has_primary_device
                - email
                - notifications_unread_count
                - otp_required_for_login
                - otp_enabled_at
                - image
                - primary_login_exists
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/logins/{id}":
    delete:
      operationId: deleteLogin
      summary: Delete login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/logins/{id}/promote":
    post:
      operationId: promoteLogin
      summary: Promote login
      description: 'Promote login to primary login. Demotes other primary logins.

        '
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/logins/resolve":
    post:
      operationId: resolveLogin
      summary: Resolve provisional login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Login
              properties:
                login:
                  type: object
                  properties:
                    resolution_token:
                      type: string
                      description: The resolution token of the login.
                    device_uid:
                      type:
                      - string
                      - 'null'
                      description: The uid of the device. This field is experimental
                        and may change.
                  required:
                  - resolution_token
              required:
              - login
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Login
                properties:
                  id:
                    type: integer
                    description: The ID of the login
                  created_at:
                    type: string
                    format: date-time
                    description: When the login was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the login was updated
                  type:
                    type: string
                    description: The type of the login.
                    enum:
                    - api
                    - device
                  name:
                    type:
                    - string
                    - 'null'
                    description: The name for the login.
                  primary:
                    type: boolean
                    description: Whether the login is the primary login.
                  expire:
                    type: boolean
                    default: true
                    description: Whether the login expires.
                  last_used_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the login was last used.
                  device_brand:
                    type:
                    - string
                    - 'null'
                    description: The brand of the device.
                  device_model:
                    type:
                    - string
                    - 'null'
                    description: The model of the device.
                  os_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the OS.
                  user_id:
                    type: integer
                    description: The user ID of the login
                  user:
                    type: object
                    title: User
                    description: The user of the login
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  app:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  user_agent:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  device:
                    type: object
                    properties:
                      brand:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      model:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  os:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  scram_credentials:
                    type:
                    - object
                    - 'null'
                    properties:
                      phone_key:
                        type: string
                        format: hex
                      online_certificate:
                        type: string
                        format: hex
                  secret:
                    type: string
                    description: |
                      The secret value used for authentication.
                      Returned when creating API logins;
                      Returned for device logins when resolving and creating logins.
                required:
                - id
                - created_at
                - updated_at
                - type
                - name
                - primary
                - expire
                - last_used_at
                - device_brand
                - device_model
                - os_name
                - user_id
                - user
                - app
                - user_agent
                - device
                - os
                - scram_credentials
                - secret
                additionalProperties: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/login":
    get:
      operationId: fetchCurrentLogin
      summary: Fetch current login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Login
                properties:
                  id:
                    type: integer
                    description: The ID of the login
                  created_at:
                    type: string
                    format: date-time
                    description: When the login was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the login was updated
                  type:
                    type: string
                    description: The type of the login.
                    enum:
                    - api
                    - device
                  name:
                    type:
                    - string
                    - 'null'
                    description: The name for the login.
                  primary:
                    type: boolean
                    description: Whether the login is the primary login.
                  expire:
                    type: boolean
                    default: true
                    description: Whether the login expires.
                  last_used_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the login was last used.
                  device_brand:
                    type:
                    - string
                    - 'null'
                    description: The brand of the device.
                  device_model:
                    type:
                    - string
                    - 'null'
                    description: The model of the device.
                  os_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the OS.
                  user_id:
                    type: integer
                    description: The user ID of the login
                  user:
                    type: object
                    title: User
                    description: The user of the login
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  app:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  user_agent:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  device:
                    type: object
                    properties:
                      brand:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      model:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  os:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                      version:
                        type:
                        - string
                        - 'null'
                        deprecated: true
                  scram_credentials:
                    type:
                    - object
                    - 'null'
                    properties:
                      phone_key:
                        type: string
                        format: hex
                      online_certificate:
                        type: string
                        format: hex
                required:
                - id
                - created_at
                - updated_at
                - type
                - name
                - primary
                - expire
                - last_used_at
                - device_brand
                - device_model
                - os_name
                - user_id
                - user
                - app
                - user_agent
                - device
                - os
                - scram_credentials
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    put:
      operationId: updateCurrentLogin
      summary: Update current login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Login
              properties:
                login:
                  type: object
                  properties:
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name for the login.
                    push_token:
                      type: string
                      description: The push token used to send push messages to the
                        device the login was created for.
                    ios_voip_push_token:
                      type: string
                      description: Voice over IP push token for iOS devices..
                  required: []
              required:
              - login
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteCurrentLogin
      summary: Delete current login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/login/elsewhere":
    delete:
      operationId: deleteAllExceptCurrentLogin
      summary: Delete any but the current login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/login/promote":
    post:
      operationId: promoteCurrentLogin
      summary: Promote current login to the primary login
      tags:
      - Logins
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/login/offline_certificate":
    post:
      operationId: fetchOfflineCertificate
      summary: Show current login's offline certificate
      tags:
      - SCRAM
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Login
              properties:
                login:
                  type: object
                  properties:
                    beacon_id:
                      type: string
                      description: The beacon id of the offline certificate.
                  required:
                  - beacon_id
              required:
              - login
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  offline_certificate:
                    type: string
                    format: hex
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/members":
    get:
      operationId: fetchMembers
      summary: Fetch members
      tags:
      - Members
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: place_id
        in: query
        schema:
          type: integer
        description: 'Filters members that have access to given place.

          '
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
          - unlock
          - "-unlock"
          - access_enabled
          - "-access_enabled"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by member name, alphabetically<br>
          `unlock` - sort by last unlock; no unlocks first, then oldest to most recent
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `user.email`,
          `user.name`, `user.notes`

          '
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 100
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Member
                  properties:
                    id:
                      type: integer
                      description: The ID of the member
                    resource_type:
                      type: string
                      description: The resource type of the member
                      const: Member
                    name:
                      type: string
                      description: The name of the member
                    image:
                      type:
                      - string
                      - 'null'
                      description: The URL to the profile picture of the member.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the member can login with password flow.
                        Only relevant for organizations.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the member is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    scim_access_enabled:
                      type: boolean
                      description: |
                        Whether the member is allowed to access locks and elevators.

                        This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                        It will always be set to `true` if the member is not managed by SCIM.
                    last_accessed_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the user last accessed a door.
                    created_at:
                      type: string
                      format: date-time
                      description: When the member was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the member was updated
                    role_id:
                      type: string
                      description: The role ID of the member.
                      deprecated: true
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the member.
                    metadata:
                      type:
                      - object
                      description: |
                        The metadata for the member.
                        - Nested values are not accepted.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    organization_id:
                      type:
                      - integer
                      - 'null'
                      description: The organization ID of the member
                    user_id:
                      type: integer
                      description: The user ID of the member
                    user:
                      type: object
                      title: User
                      description: The user of the member
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                        otp_required_for_login:
                          type: boolean
                          description: Whether OTP/2FA is required for login.
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      - otp_required_for_login
                      additionalProperties: false
                    place_id:
                      deprecated: true
                      type: 'null'
                    shares_count:
                      deprecated: true
                      type: integer
                    confirmed:
                      deprecated: true
                      type: boolean
                  required:
                  - id
                  - resource_type
                  - name
                  - image
                  - password_flow_enabled
                  - access_enabled
                  - scim_access_enabled
                  - last_accessed_at
                  - created_at
                  - updated_at
                  - role_id
                  - notes
                  - metadata
                  - organization_id
                  - user_id
                  - user
                  - place_id
                  - shares_count
                  - confirmed
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createMember
      summary: Create Member
      tags:
      - Members
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Member
              properties:
                member:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the member
                    image:
                      type:
                      - string
                      - 'null'
                      description: The URL to the profile picture of the member.
                    send_emails:
                      type: boolean
                      description: Whether the member should receive emails. Can only
                        be specified for organization members.
                    confirm:
                      type: boolean
                      description: |
                        Whether the member's corresponding user should be auto-confirmed on creation.
                        Can only be specified for organization members.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the member is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the member can login with password flow.
                        Only relevant for organizations.
                    metadata:
                      type:
                      - object
                      description: |
                        The metadata for the member.
                        - Nested values are not accepted.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the member.
                    email:
                      type: string
                      format: email
                      description: The email of the member.
                  required:
                  - email
              required:
              - member
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Member
                properties:
                  id:
                    type: integer
                    description: The ID of the member
                  resource_type:
                    type: string
                    description: The resource type of the member
                    const: Member
                  name:
                    type: string
                    description: The name of the member
                  image:
                    type:
                    - string
                    - 'null'
                    description: The URL to the profile picture of the member.
                  password_flow_enabled:
                    type: boolean
                    description: Whether the member can login with password flow.
                      Only relevant for organizations.
                  access_enabled:
                    type: boolean
                    description: |
                      Whether the member is allowed to access locks and elevators.

                      If the user is managed by SCIM, user access will be disabled
                      unless *both* the `access_enabled` field and
                      `scim_access_enabled` fields are set to `true`.
                  scim_access_enabled:
                    type: boolean
                    description: |
                      Whether the member is allowed to access locks and elevators.

                      This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                      It will always be set to `true` if the member is not managed by SCIM.
                  last_accessed_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the user last accessed a door.
                  created_at:
                    type: string
                    format: date-time
                    description: When the member was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the member was updated
                  role_id:
                    type: string
                    description: The role ID of the member.
                    deprecated: true
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the member.
                  metadata:
                    type:
                    - object
                    description: |
                      The metadata for the member.
                      - Nested values are not accepted.
                      - Keys have a limit of 50 characters.
                      - Values have a limit of 500 characters.
                      - Keys number is limited to 50.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the member
                  user_id:
                    type: integer
                    description: The user ID of the member
                  user:
                    type: object
                    title: User
                    description: The user of the member
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                      otp_required_for_login:
                        type: boolean
                        description: Whether OTP/2FA is required for login.
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    - otp_required_for_login
                    additionalProperties: false
                  place_id:
                    deprecated: true
                    type: 'null'
                  shares_count:
                    deprecated: true
                    type: integer
                  confirmed:
                    deprecated: true
                    type: boolean
                required:
                - id
                - resource_type
                - name
                - image
                - password_flow_enabled
                - access_enabled
                - scim_access_enabled
                - last_accessed_at
                - created_at
                - updated_at
                - role_id
                - notes
                - metadata
                - organization_id
                - user_id
                - user
                - place_id
                - shares_count
                - confirmed
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/members/{id}":
    get:
      operationId: fetchMember
      summary: Fetch Member
      tags:
      - Members
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Member
                properties:
                  id:
                    type: integer
                    description: The ID of the member
                  resource_type:
                    type: string
                    description: The resource type of the member
                    const: Member
                  name:
                    type: string
                    description: The name of the member
                  image:
                    type:
                    - string
                    - 'null'
                    description: The URL to the profile picture of the member.
                  password_flow_enabled:
                    type: boolean
                    description: Whether the member can login with password flow.
                      Only relevant for organizations.
                  access_enabled:
                    type: boolean
                    description: |
                      Whether the member is allowed to access locks and elevators.

                      If the user is managed by SCIM, user access will be disabled
                      unless *both* the `access_enabled` field and
                      `scim_access_enabled` fields are set to `true`.
                  scim_access_enabled:
                    type: boolean
                    description: |
                      Whether the member is allowed to access locks and elevators.

                      This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                      It will always be set to `true` if the member is not managed by SCIM.
                  last_accessed_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the user last accessed a door.
                  created_at:
                    type: string
                    format: date-time
                    description: When the member was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the member was updated
                  role_id:
                    type: string
                    description: The role ID of the member.
                    deprecated: true
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the member.
                  metadata:
                    type:
                    - object
                    description: |
                      The metadata for the member.
                      - Nested values are not accepted.
                      - Keys have a limit of 50 characters.
                      - Values have a limit of 500 characters.
                      - Keys number is limited to 50.
                  organization_id:
                    type:
                    - integer
                    - 'null'
                    description: The organization ID of the member
                  user_id:
                    type: integer
                    description: The user ID of the member
                  user:
                    type: object
                    title: User
                    description: The user of the member
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                      otp_required_for_login:
                        type: boolean
                        description: Whether OTP/2FA is required for login.
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    - otp_required_for_login
                    additionalProperties: false
                  place_id:
                    deprecated: true
                    type: 'null'
                  shares_count:
                    deprecated: true
                    type: integer
                  confirmed:
                    deprecated: true
                    type: boolean
                required:
                - id
                - resource_type
                - name
                - image
                - password_flow_enabled
                - access_enabled
                - scim_access_enabled
                - last_accessed_at
                - created_at
                - updated_at
                - role_id
                - notes
                - metadata
                - organization_id
                - user_id
                - user
                - place_id
                - shares_count
                - confirmed
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateMember
      summary: Update Member
      tags:
      - Members
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Member
              properties:
                member:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the member
                    image:
                      type:
                      - string
                      - 'null'
                      description: The URL to the profile picture of the member.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the member is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the member can login with password flow.
                        Only relevant for organizations.
                    metadata:
                      type:
                      - object
                      description: |
                        The metadata for the member.
                        - Nested values are not accepted.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the member.
                  required: []
              required:
              - member
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteMember
      summary: Delete Member
      tags:
      - Members
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/organizations":
    get:
      operationId: fetchOrganizations
      summary: Fetch organizations
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Organization - when authenticated by group link
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                      logo:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: The URL to the logo of the organization.
                      address:
                        type:
                        - string
                        - 'null'
                        description: The address of the organization.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the organization
                      time_zone:
                        type:
                        - string
                        example: Europe/London
                        description: |
                          The time zone of the organization.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      transfer_to_id:
                        type:
                        - integer
                        - 'null'
                        description: The transfer_to ID of the organization
                      transfer_to:
                        type: object
                        title: User
                        description: The transfer_to of the organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      image:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    - logo
                    - address
                    - description
                    - time_zone
                    - transfer_to_id
                    - image
                    - color
                    additionalProperties: false
                  - type: object
                    title: Organization
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                      logo:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: The URL to the logo of the organization.
                      address:
                        type:
                        - string
                        - 'null'
                        description: The address of the organization.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the organization
                      device_logins_expire_after:
                        type:
                        - integer
                        - 'null'
                        default: 1209600
                        minimum: 0
                        maximum: 31536000
                        description: |
                          The device login expiration in seconds.
                          If not defined, it defaults to 2 weeks of inactivity.
                      places_count:
                        type: integer
                        description: Count of all the places within the organization.
                      scim_enabled:
                        type: boolean
                        description: Whether SCIM is enabled for the organization.
                      sso_flow_enabled:
                        type: boolean
                        description: 'Whether the organization has SSO flow enabled.
                          Mutually exclusive with password flow.

                          '
                      sso_expiration_override_enabled:
                        type: boolean
                        description: 'Whether the organization should override length
                          of SSO session.

                          '
                      sso_expiration_override:
                        type:
                        - integer
                        - 'null'
                        description: 'The length of the SSO session (in seconds) that
                          will override the default passed from Identity Provider.

                          '
                      metadata:
                        type:
                        - string
                        - 'null'
                        description: The SSO metadata of the organization.
                      time_zone:
                        type:
                        - string
                        example: Europe/London
                        description: |
                          The time zone of the organization.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      web_authentication_api_enabled:
                        type: boolean
                        description: |
                          Whether web authentication api is enabled.
                          Only for organizations using SSO and IdP authentication is done using WebAuthn.
                      apple_pass_enabled:
                        type: boolean
                        description: Whether Apple Pass is enabled for the organization.
                      created_at:
                        type: string
                        format: date-time
                        description: When the organization was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the organization was updated
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the organization
                      transfer_to_id:
                        type:
                        - integer
                        - 'null'
                        description: The transfer_to ID of the organization
                      transfer_to:
                        type: object
                        title: User
                        description: The transfer_to of the organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      image:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    - logo
                    - address
                    - description
                    - device_logins_expire_after
                    - places_count
                    - scim_enabled
                    - sso_flow_enabled
                    - sso_expiration_override_enabled
                    - sso_expiration_override
                    - metadata
                    - time_zone
                    - web_authentication_api_enabled
                    - apple_pass_enabled
                    - created_at
                    - updated_at
                    - user_id
                    - transfer_to_id
                    - image
                    - color
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organizations/{domain}/public":
    get:
      operationId: fetchPublicOrganization
      summary: Fetch public organization
      tags:
      - Organizations
      parameters:
      - name: domain
        in: path
        schema:
          type: string
        required: true
        description: The domain of the organization.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Organization
                properties:
                  id:
                    type: integer
                    description: The ID of the organization
                  resource_type:
                    type: string
                    description: The resource type of the organization
                    const: Organization
                  name:
                    type: string
                    description: The name of the organization
                  domain:
                    type: string
                    description: The domain of the organization.
                  places_count:
                    type: integer
                    description: Count of all the places within the organization.
                  logo:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The URL to the logo of the organization.
                  sso_flow_enabled:
                    type: boolean
                    description: 'Whether the organization has SSO flow enabled. Mutually
                      exclusive with password flow.

                      '
                  web_authentication_api_enabled:
                    type: boolean
                    description: |
                      Whether web authentication api is enabled.
                      Only for organizations using SSO and IdP authentication is done using WebAuthn.
                  image:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  color:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                required:
                - id
                - resource_type
                - name
                - domain
                - places_count
                - logo
                - sso_flow_enabled
                - web_authentication_api_enabled
                - image
                - color
                additionalProperties: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organizations/find":
    post:
      operationId: findOrganizations
      summary: Find my organizations
      description: Sends an email to the user including a list of all their organizations.
      tags:
      - Organizations
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user:
                  type: object
                  properties:
                    email:
                      type: string
                      format: email
                      description: The user's email.
                  required:
                  - email
              required:
              - user
      responses:
        '204':
          description: No Content
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/organization":
    get:
      operationId: fetchCurrentOrganization
      summary: Fetch current organization
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Organization - when authenticated by group link
                  properties:
                    id:
                      type: integer
                      description: The ID of the organization
                    resource_type:
                      type: string
                      description: The resource type of the organization
                      const: Organization
                    name:
                      type: string
                      description: The name of the organization
                    domain:
                      type: string
                      description: The domain of the organization.
                    logo:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The URL to the logo of the organization.
                    address:
                      type:
                      - string
                      - 'null'
                      description: The address of the organization.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the organization
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the organization.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    transfer_to_id:
                      type:
                      - integer
                      - 'null'
                      description: The transfer_to ID of the organization
                    transfer_to:
                      type: object
                      title: User
                      description: The transfer_to of the organization
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    image:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                  required:
                  - id
                  - resource_type
                  - name
                  - domain
                  - logo
                  - address
                  - description
                  - time_zone
                  - transfer_to_id
                  - image
                  - color
                  additionalProperties: false
                - type: object
                  title: Organization
                  properties:
                    id:
                      type: integer
                      description: The ID of the organization
                    resource_type:
                      type: string
                      description: The resource type of the organization
                      const: Organization
                    name:
                      type: string
                      description: The name of the organization
                    domain:
                      type: string
                      description: The domain of the organization.
                    logo:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The URL to the logo of the organization.
                    address:
                      type:
                      - string
                      - 'null'
                      description: The address of the organization.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the organization
                    device_logins_expire_after:
                      type:
                      - integer
                      - 'null'
                      default: 1209600
                      minimum: 0
                      maximum: 31536000
                      description: |
                        The device login expiration in seconds.
                        If not defined, it defaults to 2 weeks of inactivity.
                    places_count:
                      type: integer
                      description: Count of all the places within the organization.
                    scim_enabled:
                      type: boolean
                      description: Whether SCIM is enabled for the organization.
                    sso_flow_enabled:
                      type: boolean
                      description: 'Whether the organization has SSO flow enabled.
                        Mutually exclusive with password flow.

                        '
                    sso_expiration_override_enabled:
                      type: boolean
                      description: 'Whether the organization should override length
                        of SSO session.

                        '
                    sso_expiration_override:
                      type:
                      - integer
                      - 'null'
                      description: 'The length of the SSO session (in seconds) that
                        will override the default passed from Identity Provider.

                        '
                    metadata:
                      type:
                      - string
                      - 'null'
                      description: The SSO metadata of the organization.
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the organization.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    web_authentication_api_enabled:
                      type: boolean
                      description: |
                        Whether web authentication api is enabled.
                        Only for organizations using SSO and IdP authentication is done using WebAuthn.
                    apple_pass_enabled:
                      type: boolean
                      description: Whether Apple Pass is enabled for the organization.
                    created_at:
                      type: string
                      format: date-time
                      description: When the organization was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the organization was updated
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the organization
                    transfer_to_id:
                      type:
                      - integer
                      - 'null'
                      description: The transfer_to ID of the organization
                    transfer_to:
                      type: object
                      title: User
                      description: The transfer_to of the organization
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    image:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                  required:
                  - id
                  - resource_type
                  - name
                  - domain
                  - logo
                  - address
                  - description
                  - device_logins_expire_after
                  - places_count
                  - scim_enabled
                  - sso_flow_enabled
                  - sso_expiration_override_enabled
                  - sso_expiration_override
                  - metadata
                  - time_zone
                  - web_authentication_api_enabled
                  - apple_pass_enabled
                  - created_at
                  - updated_at
                  - user_id
                  - transfer_to_id
                  - image
                  - color
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateCurrentOrganization
      summary: Update current organization
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Organization
              properties:
                organization:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the organization
                    logo:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The URL to the logo of the organization.
                    address:
                      type:
                      - string
                      - 'null'
                      description: The address of the organization.
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the organization
                    device_logins_expire_after:
                      type:
                      - integer
                      - 'null'
                      default: 1209600
                      minimum: 0
                      maximum: 31536000
                      description: |
                        The device login expiration in seconds.
                        If not defined, it defaults to 2 weeks of inactivity.
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the organization.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    metadata:
                      type:
                      - string
                      - 'null'
                      description: The SSO metadata of the organization.
                    scim_enabled:
                      type: boolean
                      description: Whether SCIM is enabled for the organization.
                    web_authentication_api_enabled:
                      type: boolean
                      description: |
                        Whether web authentication api is enabled.
                        Only for organizations using SSO and IdP authentication is done using WebAuthn.
                    identity_provider_issuer_url:
                      type: string
                      format: uri
                      description: The identity provider issuer url for the organization.
                  required: []
              required:
              - organization
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/organization/settings":
    get:
      operationId: fetchCurrentOrganizationSettings
      summary: Fetch current organization settings
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Organization
                properties:
                  id:
                    type: integer
                    description: The ID of the organization
                  resource_type:
                    type: string
                    description: The resource type of the organization
                    const: Organization
                  name:
                    type: string
                    description: The name of the organization
                  domain:
                    type: string
                    description: The domain of the organization.
                  logo:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The URL to the logo of the organization.
                  address:
                    type:
                    - string
                    - 'null'
                    description: The address of the organization.
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the organization
                  device_logins_expire_after:
                    type:
                    - integer
                    - 'null'
                    default: 1209600
                    minimum: 0
                    maximum: 31536000
                    description: |
                      The device login expiration in seconds.
                      If not defined, it defaults to 2 weeks of inactivity.
                  places_count:
                    type: integer
                    description: Count of all the places within the organization.
                  scim_enabled:
                    type: boolean
                    description: Whether SCIM is enabled for the organization.
                  sso_flow_enabled:
                    type: boolean
                    description: 'Whether the organization has SSO flow enabled. Mutually
                      exclusive with password flow.

                      '
                  sso_expiration_override_enabled:
                    type: boolean
                    description: 'Whether the organization should override length
                      of SSO session.

                      '
                  sso_expiration_override:
                    type:
                    - integer
                    - 'null'
                    description: 'The length of the SSO session (in seconds) that
                      will override the default passed from Identity Provider.

                      '
                  metadata:
                    type:
                    - string
                    - 'null'
                    description: The SSO metadata of the organization.
                  time_zone:
                    type:
                    - string
                    example: Europe/London
                    description: |
                      The time zone of the organization.
                      It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  web_authentication_api_enabled:
                    type: boolean
                    description: |
                      Whether web authentication api is enabled.
                      Only for organizations using SSO and IdP authentication is done using WebAuthn.
                  apple_pass_enabled:
                    type: boolean
                    description: Whether Apple Pass is enabled for the organization.
                  created_at:
                    type: string
                    format: date-time
                    description: When the organization was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the organization was updated
                  user_id:
                    type: integer
                    description: The user ID of the organization
                  transfer_to_id:
                    type:
                    - integer
                    - 'null'
                    description: The transfer_to ID of the organization
                  transfer_to:
                    type: object
                    title: User
                    description: The transfer_to of the organization
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  image:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  color:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  sp_certificate_expires_at:
                    type:
                    - string
                    - 'null'
                    description: When the encryption certificate expires at.
                  sp_certificate_required:
                    type: boolean
                    description: 'Whether an encryption certificate is required.

                      '
                  sp_certificate:
                    type:
                    - string
                    - 'null'
                    description: The encryption certificate of the organization.
                  identity_provider_issuer_url:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: 'The identity provider issuer url for the organization.

                      '
                  sso_configured:
                    type:
                    - boolean
                    - 'null'
                    description: |
                      Whether the SSO configuration is set and working. It will be set to `true` after the first sign-in via SSO.
                      Changing the SSO configuration will reset it back to `false`.
                  scim_configured:
                    type:
                    - boolean
                    - 'null'
                    description: |
                      Whether the SCIM configuration is set and working. It will be set to `true` after first successful SCIM request.
                      Resetting the SCIM token will set it back to `false`.
                  user:
                    type: object
                    title: User
                    description: The user of the organization
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - name
                - domain
                - logo
                - address
                - description
                - device_logins_expire_after
                - places_count
                - scim_enabled
                - sso_flow_enabled
                - sso_expiration_override_enabled
                - sso_expiration_override
                - metadata
                - time_zone
                - web_authentication_api_enabled
                - apple_pass_enabled
                - created_at
                - updated_at
                - user_id
                - transfer_to_id
                - image
                - color
                - sp_certificate_expires_at
                - sp_certificate_required
                - sp_certificate
                - identity_provider_issuer_url
                - sso_configured
                - scim_configured
                - user
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/dashboard":
    get:
      operationId: fetchCurrentOrganizationDashboard
      summary: Fetch current organization dashboard
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Organization
                properties:
                  apple_passes_count:
                    type: integer
                    description: The count of Apple Passes within the organization.
                  cameras_count:
                    type: integer
                    description: The count of cameras within the organization.
                  users_count:
                    type: integer
                    description: The count of users within the organization.
                  places_count:
                    type: integer
                    description: The count of places within the organization.
                  locks_count:
                    type: integer
                    description: The count of locks within the organization.
                  groups_count:
                    type: integer
                    description: The count of groups within the organization.
                  members_count:
                    deprecated: true
                    type: integer
                    description: The count of members within the organization.
                required:
                - apple_passes_count
                - cameras_count
                - users_count
                - places_count
                - locks_count
                - groups_count
                - members_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/generate_next_certificate":
    post:
      operationId: generateNextCertificate
      summary: Generate next certificate
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Organization
                properties:
                  next_sp_certificate:
                    type: string
                    format: pem
                    description: 'The certificate generated by calling `POST /organization/generate_next_certificate`
                      will be used as the current encryption certificate.

                      '
                required:
                - next_sp_certificate
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/rotate_certificate":
    post:
      operationId: rotateCertificate
      summary: Rotate certificate
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/organization/transfers":
    get:
      operationId: fetchOrganizationTransfers
      summary: Fetch current user's organization transfers
      tags:
      - Organizations
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Organization - when authenticated by group link
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                      logo:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: The URL to the logo of the organization.
                      address:
                        type:
                        - string
                        - 'null'
                        description: The address of the organization.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the organization
                      time_zone:
                        type:
                        - string
                        example: Europe/London
                        description: |
                          The time zone of the organization.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      transfer_to_id:
                        type:
                        - integer
                        - 'null'
                        description: The transfer_to ID of the organization
                      transfer_to:
                        type: object
                        title: User
                        description: The transfer_to of the organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      image:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    - logo
                    - address
                    - description
                    - time_zone
                    - transfer_to_id
                    - image
                    - color
                    additionalProperties: false
                  - type: object
                    title: Organization
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                      logo:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: The URL to the logo of the organization.
                      address:
                        type:
                        - string
                        - 'null'
                        description: The address of the organization.
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the organization
                      device_logins_expire_after:
                        type:
                        - integer
                        - 'null'
                        default: 1209600
                        minimum: 0
                        maximum: 31536000
                        description: |
                          The device login expiration in seconds.
                          If not defined, it defaults to 2 weeks of inactivity.
                      places_count:
                        type: integer
                        description: Count of all the places within the organization.
                      scim_enabled:
                        type: boolean
                        description: Whether SCIM is enabled for the organization.
                      sso_flow_enabled:
                        type: boolean
                        description: 'Whether the organization has SSO flow enabled.
                          Mutually exclusive with password flow.

                          '
                      sso_expiration_override_enabled:
                        type: boolean
                        description: 'Whether the organization should override length
                          of SSO session.

                          '
                      sso_expiration_override:
                        type:
                        - integer
                        - 'null'
                        description: 'The length of the SSO session (in seconds) that
                          will override the default passed from Identity Provider.

                          '
                      metadata:
                        type:
                        - string
                        - 'null'
                        description: The SSO metadata of the organization.
                      time_zone:
                        type:
                        - string
                        example: Europe/London
                        description: |
                          The time zone of the organization.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      web_authentication_api_enabled:
                        type: boolean
                        description: |
                          Whether web authentication api is enabled.
                          Only for organizations using SSO and IdP authentication is done using WebAuthn.
                      apple_pass_enabled:
                        type: boolean
                        description: Whether Apple Pass is enabled for the organization.
                      created_at:
                        type: string
                        format: date-time
                        description: When the organization was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the organization was updated
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the organization
                      transfer_to_id:
                        type:
                        - integer
                        - 'null'
                        description: The transfer_to ID of the organization
                      transfer_to:
                        type: object
                        title: User
                        description: The transfer_to of the organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      image:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    - logo
                    - address
                    - description
                    - device_logins_expire_after
                    - places_count
                    - scim_enabled
                    - sso_flow_enabled
                    - sso_expiration_override_enabled
                    - sso_expiration_override
                    - metadata
                    - time_zone
                    - web_authentication_api_enabled
                    - apple_pass_enabled
                    - created_at
                    - updated_at
                    - user_id
                    - transfer_to_id
                    - image
                    - color
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/request_transfer":
    post:
      operationId: requestTransfer
      summary: Request transfer
      description: Request transfer of the organization ownership to another user
      tags:
      - Organizations
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Organization
              properties:
                organization:
                  type: object
                  properties:
                    transfer_to_id:
                      type: integer
                      description: The ID of the user to whom the organization will
                        be transfered(if user accepts the transfer). Not required
                        if `transfer_to_email` is provided.
                    transfer_to_email:
                      type: string
                      format: email
                      description: The email of the user to whom the organization
                        will be transfered(if user accepts the transfer). Not required
                        if `transfer_to_id` is provided.
                  required: []
              required:
              - organization
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/organization/accept_transfer":
    post:
      operationId: acceptTransfer
      summary: Accept transfer
      description: Accept transfer of the organization ownership
      tags:
      - Organizations
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/reject_transfer":
    post:
      operationId: rejectTransfer
      summary: Reject transfer
      description: Reject transfer of the organization ownership
      tags:
      - Organizations
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/organization/cancel_transfer":
    post:
      operationId: cancelTransfer
      summary: Cancel transfer
      description: Cancel transfer of the organization ownership
      tags:
      - Organizations
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/places":
    get:
      operationId: fetchPlaces
      summary: Fetch places
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: favorite
        in: query
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
          - "*"
        description: |
          Include favorite status in response and/or filter by it.

          `*` - include `favorite` field in response<br>
          `true` - include `favorite` field in response and return favorites<br>
          `false` - include `favorite` field in response and return non-favorites<br>
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - favorite
          - name
          - "-name"
        description: Sort the results
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Place - when authenticated by group link
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the place
                      address:
                        type:
                        - string
                        maxLength: 500
                        description: The address of the place
                      latitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The latitude of the place
                      longitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The longitude of the place
                      image:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: |
                          The URI to the image of the place. The image can be uploaded by first using the
                          <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                          to generate a signed URL and then using the URL to upload the image.
                      time_zone:
                        type:
                        - string
                        - 'null'
                        example: Europe/London
                        description: |
                          The time zone of the place.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      logo:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - address
                    - latitude
                    - longitude
                    - image
                    - time_zone
                    - color
                    - logo
                    additionalProperties: false
                  - type: object
                    title: Place
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the place
                      created_at:
                        type: string
                        format: date-time
                        description: When the place was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the place was updated
                      latitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The latitude of the place
                      longitude:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: The longitude of the place
                      address:
                        type:
                        - string
                        maxLength: 500
                        description: The address of the place
                      image:
                        type:
                        - string
                        - 'null'
                        format: uri
                        description: |
                          The URI to the image of the place. The image can be uploaded by first using the
                          <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                          to generate a signed URL and then using the URL to upload the image.
                      time_zone:
                        type:
                        - string
                        - 'null'
                        example: Europe/London
                        description: |
                          The time zone of the place.
                          It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                      tz_time_zone:
                        type:
                        - string
                        - 'null'
                        example: Europe/London
                        description: The time zone of the place
                      locks_count:
                        type: integer
                        description: The number of locks in the place
                      integrations_count:
                        type: integer
                        description: The number of integrations in the place
                      locked_down:
                        type: boolean
                        description: 'Whether the place is locked down. When locked
                          down the place is locked down for everyone.

                          '
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the place has been locked down.

                          '
                      occupancy_rate:
                        type:
                        - number
                        - 'null'
                        format: float
                        description: 'What is the occupancy rate for an associated
                          capacity record.

                          '
                      favorite:
                        type: boolean
                        description: Whether the place is marked as a favorite by
                          the user. Only shown if requested.
                      organization_id:
                        type: integer
                        description: The organization ID of the place
                      organization:
                        type: object
                        title: Organization
                        description: The organization of the place
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      color:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      logo:
                        deprecated: true
                        type:
                        - string
                        - 'null'
                      user_id:
                        deprecated: true
                        type: 'null'
                      members_count:
                        deprecated: true
                        type: integer
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - latitude
                    - longitude
                    - address
                    - image
                    - time_zone
                    - tz_time_zone
                    - locks_count
                    - integrations_count
                    - locked_down
                    - locked_down_since
                    - occupancy_rate
                    - organization_id
                    - organization
                    - color
                    - logo
                    - user_id
                    - members_count
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createPlace
      summary: Create place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Place
              properties:
                place:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  required:
                  - name
                  - address
              required:
              - place
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Place - when authenticated by group link
                  properties:
                    id:
                      type: integer
                      description: The ID of the place
                    resource_type:
                      type: string
                      description: The resource type of the place
                      const: Place
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    logo:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - address
                  - latitude
                  - longitude
                  - image
                  - time_zone
                  - color
                  - logo
                  additionalProperties: false
                - type: object
                  title: Place
                  properties:
                    id:
                      type: integer
                      description: The ID of the place
                    resource_type:
                      type: string
                      description: The resource type of the place
                      const: Place
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    created_at:
                      type: string
                      format: date-time
                      description: When the place was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the place was updated
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    tz_time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: The time zone of the place
                    locks_count:
                      type: integer
                      description: The number of locks in the place
                    integrations_count:
                      type: integer
                      description: The number of integrations in the place
                    locked_down:
                      type: boolean
                      description: 'Whether the place is locked down. When locked
                        down the place is locked down for everyone.

                        '
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the place has been locked down.

                        '
                    occupancy_rate:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: 'What is the occupancy rate for an associated capacity
                        record.

                        '
                    favorite:
                      type: boolean
                      description: Whether the place is marked as a favorite by the
                        user. Only shown if requested.
                    organization_id:
                      type: integer
                      description: The organization ID of the place
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the place
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    logo:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    user_id:
                      deprecated: true
                      type: 'null'
                    members_count:
                      deprecated: true
                      type: integer
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - latitude
                  - longitude
                  - address
                  - image
                  - time_zone
                  - tz_time_zone
                  - locks_count
                  - integrations_count
                  - locked_down
                  - locked_down_since
                  - occupancy_rate
                  - organization_id
                  - organization
                  - color
                  - logo
                  - user_id
                  - members_count
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/places/{id}":
    get:
      operationId: fetchPlace
      summary: Fetch place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - Kisi-Group-Link: []
      - Kisi-Access-Key: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      - name: favorite
        in: query
        schema:
          type:
          - boolean
          - 'null'
        description: Include favorite status in response
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Place - when authenticated by group link
                  properties:
                    id:
                      type: integer
                      description: The ID of the place
                    resource_type:
                      type: string
                      description: The resource type of the place
                      const: Place
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    logo:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - address
                  - latitude
                  - longitude
                  - image
                  - time_zone
                  - color
                  - logo
                  additionalProperties: false
                - type: object
                  title: Place
                  properties:
                    id:
                      type: integer
                      description: The ID of the place
                    resource_type:
                      type: string
                      description: The resource type of the place
                      const: Place
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    created_at:
                      type: string
                      format: date-time
                      description: When the place was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the place was updated
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    tz_time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: The time zone of the place
                    locks_count:
                      type: integer
                      description: The number of locks in the place
                    integrations_count:
                      type: integer
                      description: The number of integrations in the place
                    locked_down:
                      type: boolean
                      description: 'Whether the place is locked down. When locked
                        down the place is locked down for everyone.

                        '
                    locked_down_since:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: 'Since when the place has been locked down.

                        '
                    occupancy_rate:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: 'What is the occupancy rate for an associated capacity
                        record.

                        '
                    favorite:
                      type: boolean
                      description: Whether the place is marked as a favorite by the
                        user. Only shown if requested.
                    organization_id:
                      type: integer
                      description: The organization ID of the place
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the place
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    color:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    logo:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    user_id:
                      deprecated: true
                      type: 'null'
                    members_count:
                      deprecated: true
                      type: integer
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - latitude
                  - longitude
                  - address
                  - image
                  - time_zone
                  - tz_time_zone
                  - locks_count
                  - integrations_count
                  - locked_down
                  - locked_down_since
                  - occupancy_rate
                  - organization_id
                  - organization
                  - color
                  - logo
                  - user_id
                  - members_count
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updatePlace
      summary: Update place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Place
              properties:
                place:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the place
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the place
                    address:
                      type:
                      - string
                      maxLength: 500
                      description: The address of the place
                    latitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The latitude of the place
                    longitude:
                      type:
                      - number
                      - 'null'
                      format: float
                      description: The longitude of the place
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: |
                        The URI to the image of the place. The image can be uploaded by first using the
                        <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                        to generate a signed URL and then using the URL to upload the image.
                    time_zone:
                      type:
                      - string
                      - 'null'
                      example: Europe/London
                      description: |
                        The time zone of the place.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  required: []
              required:
              - place
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deletePlace
      summary: Delete place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/places/{id}/lock_down":
    post:
      operationId: lockDownPlace
      summary: Lock down place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/places/{id}/cancel_lockdown":
    post:
      operationId: cancelPlaceLockdown
      summary: Cancel lockdown of place
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/places/{id}/favorite":
    post:
      operationId: favoritePlace
      summary: Favorite a place
      description: |
        <!-- theme: warning -->
        > This endpoint is deprecated. Use `POST /favorites` instead.
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/places/{id}/unfavorite":
    post:
      operationId: unfavoritePlace
      summary: Unfavorite a place
      description: |
        <!-- theme: warning -->
        > This endpoint is deprecated. Use `DELETE /favorites/{id}` instead.
      tags:
      - Places
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/presences":
    get:
      operationId: fetchPresences
      summary: Fetch presences
      description: Represents information about the presence of users in a place for
        a given date.
      tags:
      - Presences
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: place_id
        in: query
        schema:
          type: integer
        required: true
        description: The ID of the place to scope by
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date-time
          description: Filters the presences by date. In the place's time zone.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Presence
                  properties:
                    actor_type:
                      type: string
                      description: The actor type of the Presence
                    actor_id:
                      type: integer
                      description: The actor id of the Presence
                    actor_name:
                      type: string
                      description: The actor name of the Presence
                    actor_email:
                      type: string
                      description: The actor email of the Presence
                    last_unlocked_lock_name:
                      type: string
                      description: The name of the lock that was unlocked last.
                    last_unlocked_lock_id:
                      type: integer
                      description: The ID of the lock that was unlocked last.
                    first_unlock_at:
                      type: string
                      format: date-time
                      description: The date-time of the member's first unlock for
                        the given date, in UTC.
                    last_unlock_at:
                      type: string
                      format: date-time
                      description: The date-time of the member's last unlock for the
                        given date, in UTC.
                    status:
                      type: string
                      enum:
                      - on_site
                      - inactive
                      - checked_out
                      - expired
                      description: 'The presence status of a user that was present
                        or is currently present at the place on the given date.

                        '
                    place_id:
                      type: integer
                      description: The place ID of the presence
                  required:
                  - actor_type
                  - actor_id
                  - actor_name
                  - actor_email
                  - last_unlocked_lock_name
                  - last_unlocked_lock_id
                  - first_unlock_at
                  - last_unlock_at
                  - status
                  - place_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/readers":
    get:
      operationId: fetchReaders
      summary: Fetch readers
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`, `device_id`,
          `token`

          '
      - name: model
        in: query
        schema:
          type: string
          enum:
          - reader-1.0
          - reader-2.0
          - reader-pro-2.1
          - reader-pro-2.1-hf
          - reader-pro-3.0
        description: Filter by model
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by lock ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: status
        in: query
        schema:
          type: string
          enum:
          - online
          - offline
        description: Filter by status
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by group name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Reader
                  properties:
                    id:
                      type: integer
                      description: The ID of the reader
                    resource_type:
                      type: string
                      description: The resource type of the reader
                      const: Reader
                    name:
                      type: string
                      description: The name of the reader
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the reader
                    created_at:
                      type: string
                      format: date-time
                      description: When the reader was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the reader was updated
                    broadcast_ip_address:
                      type:
                      - string
                      - 'null'
                      description: The broadcast IP address of the reader
                    configured:
                      type: boolean
                      description: Whether the reader is configured
                    device_id:
                      type: string
                      pattern: "^[a-fA-F0-9]{16}$"
                      minLength: 16
                      maxLength: 16
                      description: 'The device ID of the reader

                        '
                    ethernet_mac:
                      type: string
                      description: The ethernet MAC address of the reader
                    gateway_ip_address:
                      type:
                      - string
                      - 'null'
                      description: The gateway IP address of the reader
                    ip_address:
                      type:
                      - string
                      - 'null'
                      description: The IP address of the reader
                    model:
                      type: string
                      enum:
                      - reader-1.0
                      - reader-2.0
                      - reader-pro-2.1
                      - reader-pro-2.1-hf
                      - reader-pro-3.0
                      description: The model of the reader
                    network_interface:
                      type:
                      - string
                      - 'null'
                      enum:
                      - ethernet
                      - wifi
                      -
                      description: The network interface of the reader
                    network:
                      type:
                      - string
                      - 'null'
                      description: The network of the reader
                    online:
                      type: boolean
                      description: Whether the reader is online
                    revision:
                      type: string
                      description: The revision of the reader
                    token:
                      type: string
                      description: The token of the reader
                    wifi_mac:
                      type: string
                      description: The wifi MAC address of the reader
                    backplate:
                      type: string
                      enum:
                      - standard
                      - keypad_terminal
                      - quick_response_code_terminal
                      - keypad_and_quick_response_code_terminal
                      description: The backplate of the reader
                    buzzer_enabled:
                      type: boolean
                      description: Whether the reader is buzzer enabled
                    cards_enabled:
                      type: boolean
                      description: Whether the reader is cards enabled
                    checkout:
                      type: boolean
                      description: Whether the reader is checkout enabled
                    device_unlock_restriction_enabled:
                      type: boolean
                      description: 'Whether the reader is device unlock restriction
                        enabled

                        '
                    held_open_alarm_enabled:
                      type: boolean
                      description: 'Whether the reader is held_open_alarm enabled"

                        '
                    quick_response_code_enabled:
                      type: boolean
                      description: Whether the reader is quick response code enabled
                    tampered:
                      type: boolean
                      description: Whether the reader is in a tampered state
                    tamper_enabled:
                      type: boolean
                      description: Whether the reader is tamper enabled
                    wave_to_unlock_enabled:
                      type: boolean
                      description: 'Whether the reader is wave to unlock enabled

                        '
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the reader
                    elevator:
                      type: object
                      title: Elevator
                      description: The elevator of the reader
                      properties:
                        id:
                          type: integer
                          description: The ID of the elevator
                        resource_type:
                          type: string
                          description: The resource type of the elevator
                          const: Elevator
                        name:
                          type: string
                          description: The name of the elevator
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the reader
                    lock:
                      type: object
                      title: Lock
                      description: The lock of the reader
                      properties:
                        id:
                          type: integer
                          description: The ID of the lock
                        resource_type:
                          type: string
                          description: The resource type of the lock
                          const: Lock
                        name:
                          type: string
                          description: The name of the lock
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    place_id:
                      type: integer
                      description: The place ID of the reader
                    place:
                      type: object
                      title: Place
                      description: The place of the reader
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    zone_id:
                      type:
                      - integer
                      - 'null'
                      description: The zone ID of the reader
                    zone:
                      type: object
                      title: Zone
                      description: The zone of the reader
                      properties:
                        id:
                          type: integer
                          description: The ID of the zone
                        name:
                          type: string
                          description: The name of the zone
                      required:
                      - id
                      - name
                      additionalProperties: false
                    terminal_id:
                      type:
                      - integer
                      - 'null'
                      description: The terminal ID of the reader
                    terminal:
                      type: object
                      title: Terminal
                      description: The terminal of the reader
                      properties:
                        id:
                          type: integer
                          description: The ID of the terminal
                        resource_type:
                          type: string
                          description: The resource type of the terminal
                          const: Terminal
                        name:
                          type: string
                          description: The name of the terminal
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - name
                  - description
                  - created_at
                  - updated_at
                  - broadcast_ip_address
                  - configured
                  - device_id
                  - ethernet_mac
                  - gateway_ip_address
                  - ip_address
                  - model
                  - network_interface
                  - network
                  - online
                  - revision
                  - token
                  - wifi_mac
                  - backplate
                  - buzzer_enabled
                  - cards_enabled
                  - checkout
                  - device_unlock_restriction_enabled
                  - held_open_alarm_enabled
                  - quick_response_code_enabled
                  - tampered
                  - tamper_enabled
                  - wave_to_unlock_enabled
                  - elevator_id
                  - lock_id
                  - place_id
                  - place
                  - zone_id
                  - terminal_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/readers/{token}/assign":
    post:
      operationId: assignReader
      summary: Assign a reader by token
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: token
        in: path
        schema:
          type: string
        description: The token of the reader.
        required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Reader
              properties:
                reader:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the reader
                    place_id:
                      type: integer
                      description: The place ID of the reader
                  required:
                  - name
                  - place_id
              required:
              - reader
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/readers/{id}/deassign":
    post:
      operationId: deassignReader
      summary: Deassign a reader
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/readers/{id}/reset_tamper":
    post:
      operationId: resetTamperedState
      summary: Reset the tampered state of a reader
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/readers/{id}/reboot":
    post:
      operationId: rebootReader
      summary: Reboot a reader
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/readers/{id}":
    get:
      operationId: fetchReader
      summary: Fetch reader
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Reader
                properties:
                  id:
                    type: integer
                    description: The ID of the reader
                  resource_type:
                    type: string
                    description: The resource type of the reader
                    const: Reader
                  name:
                    type: string
                    description: The name of the reader
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the reader
                  created_at:
                    type: string
                    format: date-time
                    description: When the reader was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the reader was updated
                  broadcast_ip_address:
                    type:
                    - string
                    - 'null'
                    description: The broadcast IP address of the reader
                  configured:
                    type: boolean
                    description: Whether the reader is configured
                  device_id:
                    type: string
                    pattern: "^[a-fA-F0-9]{16}$"
                    minLength: 16
                    maxLength: 16
                    description: 'The device ID of the reader

                      '
                  ethernet_mac:
                    type: string
                    description: The ethernet MAC address of the reader
                  gateway_ip_address:
                    type:
                    - string
                    - 'null'
                    description: The gateway IP address of the reader
                  ip_address:
                    type:
                    - string
                    - 'null'
                    description: The IP address of the reader
                  model:
                    type: string
                    enum:
                    - reader-1.0
                    - reader-2.0
                    - reader-pro-2.1
                    - reader-pro-2.1-hf
                    - reader-pro-3.0
                    description: The model of the reader
                  network_interface:
                    type:
                    - string
                    - 'null'
                    enum:
                    - ethernet
                    - wifi
                    -
                    description: The network interface of the reader
                  network:
                    type:
                    - string
                    - 'null'
                    description: The network of the reader
                  online:
                    type: boolean
                    description: Whether the reader is online
                  revision:
                    type: string
                    description: The revision of the reader
                  token:
                    type: string
                    description: The token of the reader
                  wifi_mac:
                    type: string
                    description: The wifi MAC address of the reader
                  backplate:
                    type: string
                    enum:
                    - standard
                    - keypad_terminal
                    - quick_response_code_terminal
                    - keypad_and_quick_response_code_terminal
                    description: The backplate of the reader
                  buzzer_enabled:
                    type: boolean
                    description: Whether the reader is buzzer enabled
                  cards_enabled:
                    type: boolean
                    description: Whether the reader is cards enabled
                  checkout:
                    type: boolean
                    description: Whether the reader is checkout enabled
                  device_unlock_restriction_enabled:
                    type: boolean
                    description: 'Whether the reader is device unlock restriction
                      enabled

                      '
                  held_open_alarm_enabled:
                    type: boolean
                    description: 'Whether the reader is held_open_alarm enabled"

                      '
                  quick_response_code_enabled:
                    type: boolean
                    description: Whether the reader is quick response code enabled
                  tampered:
                    type: boolean
                    description: Whether the reader is in a tampered state
                  tamper_enabled:
                    type: boolean
                    description: Whether the reader is tamper enabled
                  wave_to_unlock_enabled:
                    type: boolean
                    description: 'Whether the reader is wave to unlock enabled

                      '
                  elevator_id:
                    type:
                    - integer
                    - 'null'
                    description: The elevator ID of the reader
                  elevator:
                    type: object
                    title: Elevator
                    description: The elevator of the reader
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  lock_id:
                    type:
                    - integer
                    - 'null'
                    description: The lock ID of the reader
                  lock:
                    type: object
                    title: Lock
                    description: The lock of the reader
                    properties:
                      id:
                        type: integer
                        description: The ID of the lock
                      resource_type:
                        type: string
                        description: The resource type of the lock
                        const: Lock
                      name:
                        type: string
                        description: The name of the lock
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  place_id:
                    type: integer
                    description: The place ID of the reader
                  place:
                    type: object
                    title: Place
                    description: The place of the reader
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  zone_id:
                    type:
                    - integer
                    - 'null'
                    description: The zone ID of the reader
                  zone:
                    type: object
                    title: Zone
                    description: The zone of the reader
                    properties:
                      id:
                        type: integer
                        description: The ID of the zone
                      name:
                        type: string
                        description: The name of the zone
                    required:
                    - id
                    - name
                    additionalProperties: false
                  terminal_id:
                    type:
                    - integer
                    - 'null'
                    description: The terminal ID of the reader
                  terminal:
                    type: object
                    title: Terminal
                    description: The terminal of the reader
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      resource_type:
                        type: string
                        description: The resource type of the terminal
                        const: Terminal
                      name:
                        type: string
                        description: The name of the terminal
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - name
                - description
                - created_at
                - updated_at
                - broadcast_ip_address
                - configured
                - device_id
                - ethernet_mac
                - gateway_ip_address
                - ip_address
                - model
                - network_interface
                - network
                - online
                - revision
                - token
                - wifi_mac
                - backplate
                - buzzer_enabled
                - cards_enabled
                - checkout
                - device_unlock_restriction_enabled
                - held_open_alarm_enabled
                - quick_response_code_enabled
                - tampered
                - tamper_enabled
                - wave_to_unlock_enabled
                - elevator_id
                - lock_id
                - place_id
                - place
                - zone_id
                - terminal_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateReader
      summary: Update reader
      tags:
      - Readers
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Reader
              properties:
                reader:
                  type: object
                  properties:
                    buzzer_enabled:
                      type: boolean
                      description: Whether the reader is buzzer enabled
                    checkout:
                      type: boolean
                      description: Whether the reader is checkout enabled
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the reader
                    device_unlock_restriction_enabled:
                      type: boolean
                      description: 'Whether the reader is device unlock restriction
                        enabled

                        '
                    elevator_id:
                      type:
                      - integer
                      - 'null'
                      description: The elevator ID of the reader
                    lock_id:
                      type:
                      - integer
                      - 'null'
                      description: The lock ID of the reader
                    name:
                      type: string
                      description: The name of the reader
                    tamper_enabled:
                      type: boolean
                      description: Whether the reader is tamper enabled
                    wave_to_unlock_enabled:
                      type: boolean
                      description: 'Whether the reader is wave to unlock enabled

                        '
                    zone_id:
                      type:
                      - integer
                      - 'null'
                      description: The zone ID of the reader
                    terminal_id:
                      type:
                      - integer
                      - 'null'
                      description: The terminal ID of the reader
                  required: []
              required:
              - reader
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/reports":
    get:
      operationId: fetchReports
      summary: Fetch reports
      tags:
      - Reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Report
                  properties:
                    id:
                      type: integer
                      description: The ID of the report
                    resource_type:
                      type: string
                      description: The resource type of the report
                      const: Report
                    name:
                      type: string
                      description: The name of the report
                    status:
                      type: string
                      enum:
                      - waiting
                      - in_progress
                      - finished
                      - failed
                      description: The status of the report.
                    created_at:
                      type: string
                      format: date-time
                      description: When the report was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the report was updated
                    start_date:
                      type: string
                      description: |
                        The start date of the interval used to filter the data for the report.
                        This timestamp is expected to be in date format, YYYY-MM-DD.
                        If provided, it defines the beginning of the reporting period.
                        The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                        Current minimum interval days: no limit
                        Current maximum interval days: 180
                      format: date
                      example: '2024-02-29'
                    end_date:
                      type: string
                      description: |
                        The end date of the interval used to filter the data for the report.
                        This timestamp is expected to be in date format, YYYY-MM-DD.
                        If provided, it defines the end of the reporting period.
                        The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                        Current minimum interval days: no limit
                        Current maximum interval days: 180
                      format: date
                      example: '2024-03-07'
                    time_zone:
                      type:
                      - string
                      - 'null'
                      description: |
                        The time zone used for interpreting the start and end dates of the report.
                        This should be provided as a valid time zone identifier (e.g., "America/New_York").
                        If not provided, it defaults to the organization's time zone.
                      format: time-zone
                      example: America/New_York
                    organization_id:
                      type: integer
                      description: The organization ID of the report
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the report
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the report
                    reporter_id:
                      type: integer
                      description: The reporter ID of the report
                  required:
                  - id
                  - resource_type
                  - name
                  - status
                  - created_at
                  - updated_at
                  - start_date
                  - end_date
                  - time_zone
                  - organization_id
                  - organization
                  - place_id
                  - reporter_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createReport
      summary: Create report
      tags:
      - Reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Report
              properties:
                report:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the report
                    start_date:
                      type: string
                      description: |
                        The start date of the interval used to filter the data for the report.
                        This timestamp is expected to be in date format, YYYY-MM-DD.
                        If provided, it defines the beginning of the reporting period.
                        The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                        Current minimum interval days: no limit
                        Current maximum interval days: 180
                      format: date
                      example: '2024-02-29'
                    end_date:
                      type: string
                      description: |
                        The end date of the interval used to filter the data for the report.
                        This timestamp is expected to be in date format, YYYY-MM-DD.
                        If provided, it defines the end of the reporting period.
                        The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                        Current minimum interval days: no limit
                        Current maximum interval days: 180
                      format: date
                      example: '2024-03-07'
                    time_zone:
                      type:
                      - string
                      - 'null'
                      description: |
                        The time zone used for interpreting the start and end dates of the report.
                        This should be provided as a valid time zone identifier (e.g., "America/New_York").
                        If not provided, it defaults to the organization's time zone.
                      format: time-zone
                      example: America/New_York
                    reporter_id:
                      type: integer
                      description: The reporter ID of the report
                  required:
                  - name
                  - reporter_id
              required:
              - report
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Report
                properties:
                  id:
                    type: integer
                    description: The ID of the report
                  resource_type:
                    type: string
                    description: The resource type of the report
                    const: Report
                  name:
                    type: string
                    description: The name of the report
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the report.
                  created_at:
                    type: string
                    format: date-time
                    description: When the report was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the report was updated
                  start_date:
                    type: string
                    description: |
                      The start date of the interval used to filter the data for the report.
                      This timestamp is expected to be in date format, YYYY-MM-DD.
                      If provided, it defines the beginning of the reporting period.
                      The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                      Current minimum interval days: no limit
                      Current maximum interval days: 180
                    format: date
                    example: '2024-02-29'
                  end_date:
                    type: string
                    description: |
                      The end date of the interval used to filter the data for the report.
                      This timestamp is expected to be in date format, YYYY-MM-DD.
                      If provided, it defines the end of the reporting period.
                      The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                      Current minimum interval days: no limit
                      Current maximum interval days: 180
                    format: date
                    example: '2024-03-07'
                  time_zone:
                    type:
                    - string
                    - 'null'
                    description: |
                      The time zone used for interpreting the start and end dates of the report.
                      This should be provided as a valid time zone identifier (e.g., "America/New_York").
                      If not provided, it defaults to the organization's time zone.
                    format: time-zone
                    example: America/New_York
                  organization_id:
                    type: integer
                    description: The organization ID of the report
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the report
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the report
                  reporter_id:
                    type: integer
                    description: The reporter ID of the report
                required:
                - id
                - resource_type
                - name
                - status
                - created_at
                - updated_at
                - start_date
                - end_date
                - time_zone
                - organization_id
                - organization
                - place_id
                - reporter_id
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/reports/{id}":
    get:
      operationId: fetchReport
      summary: Fetch report
      tags:
      - Reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Report
                properties:
                  id:
                    type: integer
                    description: The ID of the report
                  resource_type:
                    type: string
                    description: The resource type of the report
                    const: Report
                  name:
                    type: string
                    description: The name of the report
                  status:
                    type: string
                    enum:
                    - waiting
                    - in_progress
                    - finished
                    - failed
                    description: The status of the report.
                  created_at:
                    type: string
                    format: date-time
                    description: When the report was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the report was updated
                  start_date:
                    type: string
                    description: |
                      The start date of the interval used to filter the data for the report.
                      This timestamp is expected to be in date format, YYYY-MM-DD.
                      If provided, it defines the beginning of the reporting period.
                      The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                      Current minimum interval days: no limit
                      Current maximum interval days: 180
                    format: date
                    example: '2024-02-29'
                  end_date:
                    type: string
                    description: |
                      The end date of the interval used to filter the data for the report.
                      This timestamp is expected to be in date format, YYYY-MM-DD.
                      If provided, it defines the end of the reporting period.
                      The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                      Current minimum interval days: no limit
                      Current maximum interval days: 180
                    format: date
                    example: '2024-03-07'
                  time_zone:
                    type:
                    - string
                    - 'null'
                    description: |
                      The time zone used for interpreting the start and end dates of the report.
                      This should be provided as a valid time zone identifier (e.g., "America/New_York").
                      If not provided, it defaults to the organization's time zone.
                    format: time-zone
                    example: America/New_York
                  organization_id:
                    type: integer
                    description: The organization ID of the report
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the report
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the report
                  reporter_id:
                    type: integer
                    description: The reporter ID of the report
                required:
                - id
                - resource_type
                - name
                - status
                - created_at
                - updated_at
                - start_date
                - end_date
                - time_zone
                - organization_id
                - organization
                - place_id
                - reporter_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteReport
      summary: Delete report
      tags:
      - Reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/reports/{id}/download":
    post:
      operationId: downloadReport
      summary: Retrieves a download url for the report.
      tags:
      - Reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Report
                properties:
                  url:
                    type: string
                    format: uri
                    description: A url for downloading the report.
                required:
                - url
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/role_assignments":
    get:
      operationId: fetchRoleAssignments
      summary: Fetch role assignments
      tags:
      - Role assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `user.email`,
          `user.name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: role_id
        in: query
        schema:
          type: string
        description: Filter by role ID
      - name: assignee_type
        in: query
        schema:
          type: string
          enum:
          - User
          - Team
          - Guest
        description: Filter by assignee type
      - name: assignee_id
        in: query
        schema:
          type: integer
        description: Filter by assignee ID. Must be used with `assignee_type`
      - name: applies_to_type
        in: query
        schema:
          type: string
          enum:
          - Organization
          - Place
          - Group
        description: Filter by applies to type
      - name: applies_to_id
        in: query
        schema:
          type: integer
        description: Filter by applies to ID. Must be used with `applies_to_type`
      - name: scope
        deprecated: true
        in: query
        schema:
          type: string
          enum:
          - organization
          - place
          - group
          - team
        description: Filter by scope
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
        deprecated: true
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
        deprecated: true
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
        deprecated: true
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - user.name
          - "-user.name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.
          `user.name` - sort by user name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Organization Role Assignment
                    properties:
                      id:
                        type: integer
                        description: The ID of the role assignment
                      resource_type:
                        type: string
                        description: The resource type of the role assignment
                        const: RoleAssignment
                      created_at:
                        type: string
                        format: date-time
                        description: When the role assignment was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the role assignment was updated
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                      applies_to_type:
                        type: string
                        const: Organization
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      applies_to:
                        type: object
                        description: The applies_to of the role assignment
                        oneOf:
                        - type: object
                          title: Organization
                          properties:
                            id:
                              type: integer
                              description: The ID of the organization
                            resource_type:
                              type: string
                              description: The resource type of the organization
                              const: Organization
                            name:
                              type: string
                              description: The name of the organization
                            domain:
                              type: string
                              description: The domain of the organization.
                          required:
                          - id
                          - resource_type
                          - name
                          - domain
                          additionalProperties: false
                        - type: object
                          title: Place
                          properties:
                            id:
                              type: integer
                              description: The ID of the place
                            resource_type:
                              type: string
                              description: The resource type of the place
                              const: Place
                            name:
                              type: string
                              description: The name of the place
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Group
                          properties:
                            id:
                              type: integer
                              description: The ID of the group
                            resource_type:
                              type: string
                              description: The resource type of the group
                              const: Group
                            name:
                              type: string
                              description: The name of the group
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      assignee:
                        type: object
                        description: The assignee of the role assignment
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            id:
                              type: integer
                              description: The ID of the user
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - id
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Team
                          properties:
                            id:
                              type: integer
                              description: The ID of the team
                            resource_type:
                              type: string
                              description: The resource type of the team
                              const: Team
                            name:
                              type: string
                              description: The name of the team
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            id:
                              type: integer
                              description: The ID of the guest
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - id
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      created_by_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        -
                        - User
                        - MarketplaceInstallation
                        description: The created_by type of the role assignment
                      created_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The created_by ID of the role assignment
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      assignee_team_id:
                        type:
                        - integer
                        - 'null'
                        description: The assignee_team ID of the role assignment
                        deprecated: true
                      assignee_team:
                        type: object
                        title: Team
                        description: The assignee_team of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      guest_id:
                        type:
                        - integer
                        - 'null'
                        description: The guest ID of the role assignment
                        deprecated: true
                      guest:
                        type: object
                        title: Guest
                        description: The guest of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                      issued_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the user who created the role
                          assignment.
                        deprecated: true
                      type:
                        type: string
                        const: organization
                        deprecated: true
                      scope:
                        type: string
                        const: organization
                        deprecated: true
                      organization_id:
                        type: integer
                        description: The organization ID of the role assignment
                        deprecated: true
                      organization:
                        type: object
                        title: Organization
                        description: The organization of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - role_id
                    - notify
                    - applies_to_type
                    - applies_to_id
                    - applies_to
                    - assignee_type
                    - assignee_id
                    - assignee
                    - created_by_type
                    - created_by_id
                    - user_id
                    - assignee_team_id
                    - guest_id
                    - issued_by_id
                    - type
                    - scope
                    - organization_id
                    - organization
                    additionalProperties: false
                  - type: object
                    title: Place Role Assignment
                    properties:
                      id:
                        type: integer
                        description: The ID of the role assignment
                      resource_type:
                        type: string
                        description: The resource type of the role assignment
                        const: RoleAssignment
                      created_at:
                        type: string
                        format: date-time
                        description: When the role assignment was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the role assignment was updated
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                      applies_to_type:
                        type: string
                        const: Place
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      applies_to:
                        type: object
                        description: The applies_to of the role assignment
                        oneOf:
                        - type: object
                          title: Organization
                          properties:
                            id:
                              type: integer
                              description: The ID of the organization
                            resource_type:
                              type: string
                              description: The resource type of the organization
                              const: Organization
                            name:
                              type: string
                              description: The name of the organization
                            domain:
                              type: string
                              description: The domain of the organization.
                          required:
                          - id
                          - resource_type
                          - name
                          - domain
                          additionalProperties: false
                        - type: object
                          title: Place
                          properties:
                            id:
                              type: integer
                              description: The ID of the place
                            resource_type:
                              type: string
                              description: The resource type of the place
                              const: Place
                            name:
                              type: string
                              description: The name of the place
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Group
                          properties:
                            id:
                              type: integer
                              description: The ID of the group
                            resource_type:
                              type: string
                              description: The resource type of the group
                              const: Group
                            name:
                              type: string
                              description: The name of the group
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      assignee:
                        type: object
                        description: The assignee of the role assignment
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            id:
                              type: integer
                              description: The ID of the user
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - id
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Team
                          properties:
                            id:
                              type: integer
                              description: The ID of the team
                            resource_type:
                              type: string
                              description: The resource type of the team
                              const: Team
                            name:
                              type: string
                              description: The name of the team
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            id:
                              type: integer
                              description: The ID of the guest
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - id
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      created_by_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        -
                        - User
                        - MarketplaceInstallation
                        description: The created_by type of the role assignment
                      created_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The created_by ID of the role assignment
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      assignee_team_id:
                        type:
                        - integer
                        - 'null'
                        description: The assignee_team ID of the role assignment
                        deprecated: true
                      assignee_team:
                        type: object
                        title: Team
                        description: The assignee_team of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      guest_id:
                        type:
                        - integer
                        - 'null'
                        description: The guest ID of the role assignment
                        deprecated: true
                      guest:
                        type: object
                        title: Guest
                        description: The guest of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                      issued_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the user who created the role
                          assignment.
                        deprecated: true
                      type:
                        type: string
                        const: place
                        deprecated: true
                      scope:
                        type: string
                        const: place
                        deprecated: true
                      place_id:
                        type: integer
                        description: The place ID of the role assignment
                        deprecated: true
                      place:
                        type: object
                        title: Place
                        description: The place of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - role_id
                    - notify
                    - applies_to_type
                    - applies_to_id
                    - applies_to
                    - assignee_type
                    - assignee_id
                    - assignee
                    - created_by_type
                    - created_by_id
                    - user_id
                    - assignee_team_id
                    - guest_id
                    - issued_by_id
                    - type
                    - scope
                    - place_id
                    - place
                    additionalProperties: false
                  - type: object
                    title: Group Role Assignment
                    properties:
                      id:
                        type: integer
                        description: The ID of the role assignment
                      resource_type:
                        type: string
                        description: The resource type of the role assignment
                        const: RoleAssignment
                      created_at:
                        type: string
                        format: date-time
                        description: When the role assignment was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the role assignment was updated
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                      applies_to_type:
                        type: string
                        const: Group
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      applies_to:
                        type: object
                        description: The applies_to of the role assignment
                        oneOf:
                        - type: object
                          title: Organization
                          properties:
                            id:
                              type: integer
                              description: The ID of the organization
                            resource_type:
                              type: string
                              description: The resource type of the organization
                              const: Organization
                            name:
                              type: string
                              description: The name of the organization
                            domain:
                              type: string
                              description: The domain of the organization.
                          required:
                          - id
                          - resource_type
                          - name
                          - domain
                          additionalProperties: false
                        - type: object
                          title: Place
                          properties:
                            id:
                              type: integer
                              description: The ID of the place
                            resource_type:
                              type: string
                              description: The resource type of the place
                              const: Place
                            name:
                              type: string
                              description: The name of the place
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Group
                          properties:
                            id:
                              type: integer
                              description: The ID of the group
                            resource_type:
                              type: string
                              description: The resource type of the group
                              const: Group
                            name:
                              type: string
                              description: The name of the group
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      assignee:
                        type: object
                        description: The assignee of the role assignment
                        oneOf:
                        - type: object
                          title: User
                          properties:
                            id:
                              type: integer
                              description: The ID of the user
                            resource_type:
                              type: string
                              description: The resource type of the user
                              const: User
                            email:
                              type: string
                              format: email
                              description: The email of the user.
                            name:
                              type: string
                              description: The name of the user
                          required:
                          - id
                          - resource_type
                          - email
                          - name
                          additionalProperties: false
                        - type: object
                          title: Team
                          properties:
                            id:
                              type: integer
                              description: The ID of the team
                            resource_type:
                              type: string
                              description: The resource type of the team
                              const: Team
                            name:
                              type: string
                              description: The name of the team
                          required:
                          - id
                          - resource_type
                          - name
                          additionalProperties: false
                        - type: object
                          title: Guest
                          properties:
                            id:
                              type: integer
                              description: The ID of the guest
                            resource_type:
                              type: string
                              description: The resource type of the guest
                              const: Guest
                            name:
                              type: string
                              description: The name of the guest
                            email:
                              type:
                              - string
                              - 'null'
                              format: email
                              description: The email of the guest.
                            phone_number:
                              type:
                              - string
                              - 'null'
                              description: 'The phone number of the guest. Only US,
                                Canadian and Puerto Rican numbers in the format +11234567890
                                (E.164) are accepted.

                                '
                          required:
                          - id
                          - resource_type
                          - name
                          - email
                          - phone_number
                          additionalProperties: false
                      created_by_type:
                        type:
                        - string
                        - 'null'
                        enum:
                        -
                        - User
                        - MarketplaceInstallation
                        description: The created_by type of the role assignment
                      created_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The created_by ID of the role assignment
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      user:
                        type: object
                        title: User
                        description: The user of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      assignee_team_id:
                        type:
                        - integer
                        - 'null'
                        description: The assignee_team ID of the role assignment
                        deprecated: true
                      assignee_team:
                        type: object
                        title: Team
                        description: The assignee_team of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      guest_id:
                        type:
                        - integer
                        - 'null'
                        description: The guest ID of the role assignment
                        deprecated: true
                      guest:
                        type: object
                        title: Guest
                        description: The guest of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                      issued_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the user who created the role
                          assignment.
                        deprecated: true
                      type:
                        type: string
                        const: group
                        deprecated: true
                      scope:
                        type: string
                        const: group
                        deprecated: true
                      group_id:
                        type: integer
                        description: The group ID of the role assignment
                        deprecated: true
                      group:
                        type: object
                        title: Group
                        description: The group of the role assignment
                        deprecated: true
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      valid_from:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the role assignment starts to be valid.
                      valid_until:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the role assignment stops to be valid.
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - role_id
                    - notify
                    - applies_to_type
                    - applies_to_id
                    - applies_to
                    - assignee_type
                    - assignee_id
                    - assignee
                    - created_by_type
                    - created_by_id
                    - user_id
                    - assignee_team_id
                    - guest_id
                    - issued_by_id
                    - type
                    - scope
                    - group_id
                    - group
                    - valid_from
                    - valid_until
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createRoleAssignment
      summary: Create role assignment
      description: |
        Role assignments grant permissions to users, teams, or guests at the organization, place, or group level.
        Users with the `role_assignments_write` permission can create role assignments only for roles that do not
        grant more permissions than the creator's applicable role.
      tags:
      - Role assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Organization Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      applies_to_type:
                        type: string
                        const: Organization
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      organization_id:
                        type: integer
                        description: The organization ID of the role assignment
                        deprecated: true
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                    required:
                    - applies_to_type
                    - applies_to_id
                    - assignee_type
                    - assignee_id
                    - role_id
                required:
                - role_assignment
              - type: object
                title: Place Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      applies_to_type:
                        type: string
                        const: Place
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      place_id:
                        type: integer
                        description: The place ID of the role assignment
                        deprecated: true
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                    required:
                    - applies_to_type
                    - applies_to_id
                    - assignee_type
                    - assignee_id
                    - role_id
                required:
                - role_assignment
              - type: object
                title: Group Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      applies_to_type:
                        type: string
                        const: Group
                      applies_to_id:
                        type: integer
                        description: The applies_to ID of the role assignment
                      assignee_type:
                        type: string
                        enum:
                        - User
                        - Team
                        - Guest
                        description: The assignee type of the role assignment
                      assignee_id:
                        type: integer
                        description: The assignee ID of the role assignment
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      user_id:
                        type:
                        - integer
                        - 'null'
                        description: The user ID of the role assignment
                        deprecated: true
                      group_id:
                        type: integer
                        description: The group ID of the role assignment
                        deprecated: true
                      notify:
                        type: boolean
                        description: Whether an email should be sent to the user when
                          this role assignment is created or updated.
                      valid_from:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the role assignment starts to be valid.
                      valid_until:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the role assignment stops to be valid.
                    required:
                    - applies_to_type
                    - applies_to_id
                    - assignee_type
                    - assignee_id
                    - role_id
                required:
                - role_assignment
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Organization Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Organization
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: organization
                      deprecated: true
                    scope:
                      type: string
                      const: organization
                      deprecated: true
                    organization_id:
                      type: integer
                      description: The organization ID of the role assignment
                      deprecated: true
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - organization_id
                  - organization
                  additionalProperties: false
                - type: object
                  title: Place Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Place
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: place
                      deprecated: true
                    scope:
                      type: string
                      const: place
                      deprecated: true
                    place_id:
                      type: integer
                      description: The place ID of the role assignment
                      deprecated: true
                    place:
                      type: object
                      title: Place
                      description: The place of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Group Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Group
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: group
                      deprecated: true
                    scope:
                      type: string
                      const: group
                      deprecated: true
                    group_id:
                      type: integer
                      description: The group ID of the role assignment
                      deprecated: true
                    group:
                      type: object
                      title: Group
                      description: The group of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the role assignment starts to be valid.
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the role assignment stops to be valid.
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - group_id
                  - group
                  - valid_from
                  - valid_until
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/role_assignments/{id}":
    get:
      operationId: fetchRoleAssignment
      summary: Fetch role assignment
      tags:
      - Role assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Organization Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Organization
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: organization
                      deprecated: true
                    scope:
                      type: string
                      const: organization
                      deprecated: true
                    organization_id:
                      type: integer
                      description: The organization ID of the role assignment
                      deprecated: true
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - organization_id
                  - organization
                  additionalProperties: false
                - type: object
                  title: Place Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Place
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: place
                      deprecated: true
                    scope:
                      type: string
                      const: place
                      deprecated: true
                    place_id:
                      type: integer
                      description: The place ID of the role assignment
                      deprecated: true
                    place:
                      type: object
                      title: Place
                      description: The place of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - place_id
                  - place
                  additionalProperties: false
                - type: object
                  title: Group Role Assignment
                  properties:
                    id:
                      type: integer
                      description: The ID of the role assignment
                    resource_type:
                      type: string
                      description: The resource type of the role assignment
                      const: RoleAssignment
                    created_at:
                      type: string
                      format: date-time
                      description: When the role assignment was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the role assignment was updated
                    role_id:
                      type: string
                      description: The role ID of the role assignment.
                    notify:
                      type: boolean
                      description: Whether an email should be sent to the user when
                        this role assignment is created or updated.
                    applies_to_type:
                      type: string
                      const: Group
                    applies_to_id:
                      type: integer
                      description: The applies_to ID of the role assignment
                    applies_to:
                      type: object
                      description: The applies_to of the role assignment
                      oneOf:
                      - type: object
                        title: Organization
                        properties:
                          id:
                            type: integer
                            description: The ID of the organization
                          resource_type:
                            type: string
                            description: The resource type of the organization
                            const: Organization
                          name:
                            type: string
                            description: The name of the organization
                          domain:
                            type: string
                            description: The domain of the organization.
                        required:
                        - id
                        - resource_type
                        - name
                        - domain
                        additionalProperties: false
                      - type: object
                        title: Place
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Group
                        properties:
                          id:
                            type: integer
                            description: The ID of the group
                          resource_type:
                            type: string
                            description: The resource type of the group
                            const: Group
                          name:
                            type: string
                            description: The name of the group
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                    assignee_type:
                      type: string
                      enum:
                      - User
                      - Team
                      - Guest
                      description: The assignee type of the role assignment
                    assignee_id:
                      type: integer
                      description: The assignee ID of the role assignment
                    assignee:
                      type: object
                      description: The assignee of the role assignment
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Team
                        properties:
                          id:
                            type: integer
                            description: The ID of the team
                          resource_type:
                            type: string
                            description: The resource type of the team
                            const: Team
                          name:
                            type: string
                            description: The name of the team
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the role assignment
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the role assignment
                    user_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the role assignment
                      deprecated: true
                    user:
                      type: object
                      title: User
                      description: The user of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    assignee_team_id:
                      type:
                      - integer
                      - 'null'
                      description: The assignee_team ID of the role assignment
                      deprecated: true
                    assignee_team:
                      type: object
                      title: Team
                      description: The assignee_team of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    guest_id:
                      type:
                      - integer
                      - 'null'
                      description: The guest ID of the role assignment
                      deprecated: true
                    guest:
                      type: object
                      title: Guest
                      description: The guest of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The user ID of the user who created the role assignment.
                      deprecated: true
                    type:
                      type: string
                      const: group
                      deprecated: true
                    scope:
                      type: string
                      const: group
                      deprecated: true
                    group_id:
                      type: integer
                      description: The group ID of the role assignment
                      deprecated: true
                    group:
                      type: object
                      title: Group
                      description: The group of the role assignment
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the role assignment starts to be valid.
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the role assignment stops to be valid.
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - role_id
                  - notify
                  - applies_to_type
                  - applies_to_id
                  - applies_to
                  - assignee_type
                  - assignee_id
                  - assignee
                  - created_by_type
                  - created_by_id
                  - user_id
                  - assignee_team_id
                  - guest_id
                  - issued_by_id
                  - type
                  - scope
                  - group_id
                  - group
                  - valid_from
                  - valid_until
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateRoleAssignment
      summary: Update role assignment
      tags:
      - Role assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Organization Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type: string
                        description: The role ID of the role assignment.
                    required: []
                required:
                - role_assignment
              - type: object
                title: Place Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type: string
                        description: The role ID of the role assignment.
                    required: []
                required:
                - role_assignment
              - type: object
                title: Group Role Assignment
                properties:
                  role_assignment:
                    type: object
                    properties:
                      role_id:
                        type: string
                        description: The role ID of the role assignment.
                      notify:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the role assignment stops to be valid.
                    required: []
                required:
                - role_assignment
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteRoleAssignment
      summary: Delete role assignment
      tags:
      - Role assignments
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/roles":
    get:
      operationId: fetchRoles
      summary: Fetch roles
      tags:
      - Roles
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Role
                  properties:
                    id:
                      type: string
                    resource_type:
                      type: string
                      description: The resource type of the role
                      const: Role
                    applies_to:
                      type: string
                      enum:
                      - Organization
                      - Place
                      - Group
                    name:
                      type: string
                    description:
                      type:
                      - string
                      - 'null'
                    custom:
                      type: boolean
                    permissions:
                      type: object
                      properties:
                        access_keys_read:
                          type: boolean
                        access_keys_write:
                          type: boolean
                        amenities_read:
                          type: boolean
                        amenities_write:
                          type: boolean
                        analytics_read:
                          type: boolean
                        apple_passes_read:
                          type: boolean
                        apple_passes_write:
                          type: boolean
                        bookings_read:
                          type: boolean
                        bookings_write:
                          type: boolean
                        camera_snapshot_sets_read:
                          type: boolean
                        camera_snapshots_read:
                          type: boolean
                        camera_snapshots_write:
                          type: boolean
                        cameras_read:
                          type: boolean
                        cameras_write:
                          type: boolean
                        capacities_read:
                          type: boolean
                        capacities_write:
                          type: boolean
                        card_assignments_read:
                          type: boolean
                        card_assignments_write:
                          type: boolean
                        cards_activate:
                          type: boolean
                        cards_read:
                          type: boolean
                        cards_write:
                          type: boolean
                        communication_policies_read:
                          type: boolean
                        communication_policies_write:
                          type: boolean
                        csv_card_import_read:
                          type: boolean
                        csv_card_import_write:
                          type: boolean
                        csv_user_import_read:
                          type: boolean
                        csv_user_import_write:
                          type: boolean
                        custom_roles_read:
                          type: boolean
                        custom_roles_write:
                          type: boolean
                        dashboards_read:
                          type: boolean
                        elevator_stops_permit:
                          type: boolean
                        elevator_stops_read:
                          type: boolean
                        elevator_stops_write:
                          type: boolean
                        elevators_read:
                          type: boolean
                        elevators_write:
                          type: boolean
                        event_retention_policies_read:
                          type: boolean
                        event_retention_policies_write:
                          type: boolean
                        events_read:
                          type: boolean
                        floors_read:
                          type: boolean
                        floors_write:
                          type: boolean
                        group_elevator_stops_read:
                          type: boolean
                        group_elevator_stops_write:
                          type: boolean
                        group_links_read:
                          type: boolean
                        group_links_write:
                          type: boolean
                        group_locks_read:
                          type: boolean
                        group_locks_write:
                          type: boolean
                        group_terminals_read:
                          type: boolean
                        group_terminals_write:
                          type: boolean
                        group_zones_read:
                          type: boolean
                        group_zones_write:
                          type: boolean
                        groups_read:
                          type: boolean
                        groups_write:
                          type: boolean
                        guests_read:
                          type: boolean
                        guests_write:
                          type: boolean
                        hardware_read:
                          type: boolean
                        hardware_write:
                          type: boolean
                        third_party_hf_uid_read_configurations_read:
                          type: boolean
                        third_party_hf_uid_read_configurations_write:
                          type: boolean
                        incident_occurrences_read:
                          type: boolean
                        incident_policies_read:
                          type: boolean
                        incident_policies_write:
                          type: boolean
                        incidents_read:
                          type: boolean
                        incidents_write:
                          type: boolean
                        integrations_read:
                          type: boolean
                        integrations_write:
                          type: boolean
                        intercom_assignment_read:
                          type: boolean
                        intercom_assignment_write:
                          type: boolean
                        intercom_completed_call_stream:
                          type: boolean
                        intercom_completed_call_stream_read:
                          type: boolean
                        invites_write:
                          type: boolean
                        kiosk_shortcuts_read:
                          type: boolean
                        kiosk_shortcuts_write:
                          type: boolean
                        locks_read:
                          type: boolean
                        locks_unlock:
                          type: boolean
                        locks_write:
                          type: boolean
                        logins_read:
                          type: boolean
                        logins_write:
                          type: boolean
                        managed_devices_read:
                          type: boolean
                        managed_devices_write:
                          type: boolean
                        marketplace_app_shares_read:
                          type: boolean
                        marketplace_app_shares_write:
                          type: boolean
                        marketplace_installations_read:
                          type: boolean
                        marketplace_installations_write:
                          type: boolean
                        marketplace_shortcuts_read:
                          type: boolean
                        marketplace_shortcuts_write:
                          type: boolean
                        mobile_cache_policies_read:
                          type: boolean
                        mobile_cache_policies_write:
                          type: boolean
                        place_dashboard_read:
                          type: boolean
                        places_read:
                          type: boolean
                        places_write:
                          type: boolean
                        reports_read:
                          type: boolean
                        reports_write:
                          type: boolean
                        role_assignments_read:
                          type: boolean
                        role_assignments_write:
                          type: boolean
                        scanned_card_read:
                          type: boolean
                        scanned_card_write:
                          type: boolean
                        scheduled_report_read:
                          type: boolean
                        scheduled_report_write:
                          type: boolean
                        schedules_read:
                          type: boolean
                        schedules_write:
                          type: boolean
                        shares_read:
                          type: boolean
                        shares_write:
                          type: boolean
                        subscriptions_read:
                          type: boolean
                        team_memberships_read:
                          type: boolean
                        team_memberships_write:
                          type: boolean
                        teams_read:
                          type: boolean
                        teams_write:
                          type: boolean
                        terminals_read:
                          type: boolean
                        terminals_trigger:
                          type: boolean
                        terminals_write:
                          type: boolean
                        users_read:
                          type: boolean
                        users_write:
                          type: boolean
                        visualization_page_reporters_read:
                          type: boolean
                        visualization_page_reporters_write:
                          type: boolean
                        visualization_page_shares_read:
                          type: boolean
                        visualization_page_shares_write:
                          type: boolean
                        zones_override:
                          type: boolean
                        zones_read:
                          type: boolean
                        zones_reset:
                          type: boolean
                        zones_write:
                          type: boolean
                    custom_role_id:
                      type:
                      - integer
                      - 'null'
                      description: The custom_role ID of the role
                  required:
                  - id
                  - resource_type
                  - applies_to
                  - name
                  - description
                  - custom
                  - permissions
                  - custom_role_id
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/roles/{id}":
    get:
      operationId: fetchRole
      summary: Fetch role
      tags:
      - Roles
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: string
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Role
                properties:
                  id:
                    type: string
                  resource_type:
                    type: string
                    description: The resource type of the role
                    const: Role
                  applies_to:
                    type: string
                    enum:
                    - Organization
                    - Place
                    - Group
                  name:
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  custom:
                    type: boolean
                  permissions:
                    type: object
                    properties:
                      access_keys_read:
                        type: boolean
                      access_keys_write:
                        type: boolean
                      amenities_read:
                        type: boolean
                      amenities_write:
                        type: boolean
                      analytics_read:
                        type: boolean
                      apple_passes_read:
                        type: boolean
                      apple_passes_write:
                        type: boolean
                      bookings_read:
                        type: boolean
                      bookings_write:
                        type: boolean
                      camera_snapshot_sets_read:
                        type: boolean
                      camera_snapshots_read:
                        type: boolean
                      camera_snapshots_write:
                        type: boolean
                      cameras_read:
                        type: boolean
                      cameras_write:
                        type: boolean
                      capacities_read:
                        type: boolean
                      capacities_write:
                        type: boolean
                      card_assignments_read:
                        type: boolean
                      card_assignments_write:
                        type: boolean
                      cards_activate:
                        type: boolean
                      cards_read:
                        type: boolean
                      cards_write:
                        type: boolean
                      communication_policies_read:
                        type: boolean
                      communication_policies_write:
                        type: boolean
                      csv_card_import_read:
                        type: boolean
                      csv_card_import_write:
                        type: boolean
                      csv_user_import_read:
                        type: boolean
                      csv_user_import_write:
                        type: boolean
                      custom_roles_read:
                        type: boolean
                      custom_roles_write:
                        type: boolean
                      dashboards_read:
                        type: boolean
                      elevator_stops_permit:
                        type: boolean
                      elevator_stops_read:
                        type: boolean
                      elevator_stops_write:
                        type: boolean
                      elevators_read:
                        type: boolean
                      elevators_write:
                        type: boolean
                      event_retention_policies_read:
                        type: boolean
                      event_retention_policies_write:
                        type: boolean
                      events_read:
                        type: boolean
                      floors_read:
                        type: boolean
                      floors_write:
                        type: boolean
                      group_elevator_stops_read:
                        type: boolean
                      group_elevator_stops_write:
                        type: boolean
                      group_links_read:
                        type: boolean
                      group_links_write:
                        type: boolean
                      group_locks_read:
                        type: boolean
                      group_locks_write:
                        type: boolean
                      group_terminals_read:
                        type: boolean
                      group_terminals_write:
                        type: boolean
                      group_zones_read:
                        type: boolean
                      group_zones_write:
                        type: boolean
                      groups_read:
                        type: boolean
                      groups_write:
                        type: boolean
                      guests_read:
                        type: boolean
                      guests_write:
                        type: boolean
                      hardware_read:
                        type: boolean
                      hardware_write:
                        type: boolean
                      third_party_hf_uid_read_configurations_read:
                        type: boolean
                      third_party_hf_uid_read_configurations_write:
                        type: boolean
                      incident_occurrences_read:
                        type: boolean
                      incident_policies_read:
                        type: boolean
                      incident_policies_write:
                        type: boolean
                      incidents_read:
                        type: boolean
                      incidents_write:
                        type: boolean
                      integrations_read:
                        type: boolean
                      integrations_write:
                        type: boolean
                      intercom_assignment_read:
                        type: boolean
                      intercom_assignment_write:
                        type: boolean
                      intercom_completed_call_stream:
                        type: boolean
                      intercom_completed_call_stream_read:
                        type: boolean
                      invites_write:
                        type: boolean
                      kiosk_shortcuts_read:
                        type: boolean
                      kiosk_shortcuts_write:
                        type: boolean
                      locks_read:
                        type: boolean
                      locks_unlock:
                        type: boolean
                      locks_write:
                        type: boolean
                      logins_read:
                        type: boolean
                      logins_write:
                        type: boolean
                      managed_devices_read:
                        type: boolean
                      managed_devices_write:
                        type: boolean
                      marketplace_app_shares_read:
                        type: boolean
                      marketplace_app_shares_write:
                        type: boolean
                      marketplace_installations_read:
                        type: boolean
                      marketplace_installations_write:
                        type: boolean
                      marketplace_shortcuts_read:
                        type: boolean
                      marketplace_shortcuts_write:
                        type: boolean
                      mobile_cache_policies_read:
                        type: boolean
                      mobile_cache_policies_write:
                        type: boolean
                      place_dashboard_read:
                        type: boolean
                      places_read:
                        type: boolean
                      places_write:
                        type: boolean
                      reports_read:
                        type: boolean
                      reports_write:
                        type: boolean
                      role_assignments_read:
                        type: boolean
                      role_assignments_write:
                        type: boolean
                      scanned_card_read:
                        type: boolean
                      scanned_card_write:
                        type: boolean
                      scheduled_report_read:
                        type: boolean
                      scheduled_report_write:
                        type: boolean
                      schedules_read:
                        type: boolean
                      schedules_write:
                        type: boolean
                      shares_read:
                        type: boolean
                      shares_write:
                        type: boolean
                      subscriptions_read:
                        type: boolean
                      team_memberships_read:
                        type: boolean
                      team_memberships_write:
                        type: boolean
                      teams_read:
                        type: boolean
                      teams_write:
                        type: boolean
                      terminals_read:
                        type: boolean
                      terminals_trigger:
                        type: boolean
                      terminals_write:
                        type: boolean
                      users_read:
                        type: boolean
                      users_write:
                        type: boolean
                      visualization_page_reporters_read:
                        type: boolean
                      visualization_page_reporters_write:
                        type: boolean
                      visualization_page_shares_read:
                        type: boolean
                      visualization_page_shares_write:
                        type: boolean
                      zones_override:
                        type: boolean
                      zones_read:
                        type: boolean
                      zones_reset:
                        type: boolean
                      zones_write:
                        type: boolean
                  custom_role_id:
                    type:
                    - integer
                    - 'null'
                    description: The custom_role ID of the role
                required:
                - id
                - resource_type
                - applies_to
                - name
                - description
                - custom
                - permissions
                - custom_role_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/schedules":
    get:
      operationId: fetchSchedules
      summary: Fetch schedules
      description: |
        The schedule resource represents a simplified calendar event or event generation rule, and may be used to configure time based functionality:

        - When access is allowed or restricted ("time restrictions"), set `consequence` to `allow`
        - When elevator stops are kept accessible ("permit timer"), set `consequence` to `permit`
        - When locks are kept unlocked ("unlock timer"), set `consequence` to `unlock`
        - To override an allow, permit or unlock, set `override` to `true`. The schedule will then neutralize events of other schedules of the same consequence.

        Possible consequences for locks:
          - allow
          - unlock

        Possible consequences for elevator stops:
          - allow
          - permit

        Possible consequences for elevator groups:
          - allow

        There are four types of schedules:

        - Holiday calendar: events that are interpreted based on a region's holiday rules
        - Recurring event: events that are interpreted based on the current weekday based on the time zone of the place they are added to
        - Single event: an event that starts and ends on specific date times regardless of time zone
        - Single all day event: events that are interpreted based on the time zone of the place they're added to

        The API makes a few assumptions:

        - If `region` or `observed` are set, schedules are treated as holiday calendars
        - If `starts_at` or `ends_at` are set, events are treated as single events
        - If `starts_at_date` or `ends_at_date` are set, events are treated as single all day events
        - Else, events are treated as recurring events

        Validations:

        - Holiday calendars require both `region` and `observed` to be set
        - Single events require both `starts_at` and `ends_at` as RFC3339 timestamps
        - Single events require both `starts_at` and `ends_at` as RFC3339 timestamps
        - Single all day events require both `starts_at_date` and `ends_at_date` in the `YYYY-MM-DD` format
        - Recurring events require at least one weekday, and may specify `starts_at_time` and `ends_at_time` in the `hh:mm` format
        - Starting dates/times must be before ending dates/times

        The difference between single events and all day events are that single events are absolute, i.e. independent of
        the time zone of the place. Single all day events carry no time zone information but are always interpreted based
        on the time zone of the place.

        Note that holidays are interpreted relative to a time zone. It is therefore possible to specify e.g. US observances for a location in Europe.
      tags:
      - Schedules
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: consequence
        in: query
        schema:
          type: string
          enum:
          - allow
          - first_to_arrive
          - permit
          - unlock
        description: Filter by consequence
      - name: scheduleable_type
        in: query
        schema:
          type: string
          enum:
          - Group
          - Lock
          - ElevatorStop
        description: Filter by the scheduleable type of the schedule. Either both
          or none of `scheduleable_id` and `scheduleable_type` are required.
      - name: scheduleable_id
        in: query
        schema:
          type: integer
        description: Filter by the scheduleable id of the schedule. Either both or
          none of `scheduleable_id` and `scheduleable_type` are required.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  oneOf:
                  - type: object
                    title: Holiday Calendar
                    properties:
                      id:
                        type: integer
                        description: The ID of the schedule
                      resource_type:
                        type: string
                        description: The resource type of the schedule
                        const: Schedule
                      created_at:
                        type: string
                        format: date-time
                        description: When the schedule was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the schedule was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      scheduleable:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: The ID of the schedulable
                          type:
                            type: string
                            enum:
                            - Group
                            - Lock
                            - ElevatorStop
                            description: The type of the schedulable
                          name:
                            type: string
                            description: The name of the schedulable
                        required:
                        - id
                        - type
                        - name
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the schedule
                      place:
                        type: object
                        title: Place
                        description: The place of the schedule
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the schedule
                      type:
                        type: string
                        const: holiday_calendar
                        description: The type of the schedule
                      region:
                        type: string
                        enum:
                        - ar
                        - at
                        - au
                        - au_act
                        - au_nsw
                        - au_nt
                        - au_qld
                        - au_sa
                        - au_tas
                        - au_vic
                        - au_wa
                        - bg
                        - br
                        - by
                        - ca
                        - ca_ab
                        - ca_bc
                        - ca_mb
                        - ca_nb
                        - ca_nl
                        - ca_ns
                        - ca_nt
                        - ca_nu
                        - ca_on
                        - ca_pe
                        - ca_qc
                        - ca_sk
                        - ca_yt
                        - ch
                        - ch_ag
                        - ch_ai
                        - ch_ar
                        - ch_be
                        - ch_bl
                        - ch_bs
                        - ch_fr
                        - ch_ge
                        - ch_gl
                        - ch_gr
                        - ch_ju
                        - ch_lu
                        - ch_ne
                        - ch_nw
                        - ch_ow
                        - ch_sg
                        - ch_sh
                        - ch_so
                        - ch_sz
                        - ch_tg
                        - ch_ti
                        - ch_ur
                        - ch_vd
                        - ch_vs
                        - ch_zg
                        - ch_zh
                        - cl
                        - co
                        - cr
                        - cy
                        - cz
                        - de
                        - de_bb
                        - de_be
                        - de_bw
                        - de_by
                        - de_hb
                        - de_he
                        - de_hh
                        - de_mv
                        - de_ni
                        - de_nw
                        - de_rp
                        - de_sh
                        - de_sl
                        - de_sn
                        - de_st
                        - de_th
                        - dk
                        - ee
                        - es
                        - es_an
                        - es_ar
                        - es_ce
                        - es_cl
                        - es_cm
                        - es_cn
                        - es_ct
                        - es_ex
                        - es_ga
                        - es_ib
                        - es_lo
                        - es_m
                        - es_mu
                        - es_na
                        - es_o
                        - es_pv
                        - es_v
                        - es_vc
                        - fi
                        - fr
                        - gb
                        - gb_con
                        - gb_eng
                        - gb_nir
                        - gb_sct
                        - gb_wls
                        - ge
                        - gr
                        - hk
                        - hr
                        - hu
                        - ie
                        - il
                        - in
                        - in_ap
                        - in_ar
                        - in_as
                        - in_br
                        - in_cg
                        - in_ga
                        - in_gj
                        - in_hp
                        - in_hr
                        - in_jh
                        - in_jk
                        - in_ka
                        - in_kl
                        - in_mh
                        - in_mp
                        - in_mz
                        - in_nl
                        - in_od
                        - in_pb
                        - in_py
                        - in_sk
                        - in_tr
                        - in_ts
                        - in_wb
                        - is
                        - it
                        - it_bl
                        - it_fi
                        - it_ge
                        - it_pd
                        - it_rm
                        - it_ro
                        - it_to
                        - it_tv
                        - it_ve
                        - it_vi
                        - it_vr
                        - jp
                        - ke
                        - kr
                        - kz
                        - li
                        - lt
                        - lu
                        - lv
                        - ma
                        - mc
                        - mx
                        - mx_pue
                        - my
                        - ng
                        - nl
                        - 'no'
                        - nz
                        - pe
                        - ph
                        - pl
                        - pt
                        - ro
                        - ru
                        - se
                        - sg
                        - th
                        - tn
                        - tr
                        - ua
                        - us
                        - us_ak
                        - us_al
                        - us_ar
                        - us_az
                        - us_ca
                        - us_co
                        - us_ct
                        - us_dc
                        - us_de
                        - us_fl
                        - us_ga
                        - us_gu
                        - us_hi
                        - us_ia
                        - us_id
                        - us_il
                        - us_in
                        - us_ks
                        - us_ky
                        - us_la
                        - us_ma
                        - us_md
                        - us_me
                        - us_mi
                        - us_mn
                        - us_mo
                        - us_ms
                        - us_mt
                        - us_nc
                        - us_nd
                        - us_ne
                        - us_nh
                        - us_nj
                        - us_nm
                        - us_nv
                        - us_ny
                        - us_oh
                        - us_ok
                        - us_or
                        - us_pa
                        - us_pr
                        - us_ri
                        - us_sc
                        - us_sd
                        - us_tn
                        - us_tx
                        - us_ut
                        - us_va
                        - us_vi
                        - us_vt
                        - us_wa
                        - us_wi
                        - us_wv
                        - us_wy
                        - vn
                        - za
                        description: Which region's holiday rules to follow for event
                          generation. For details on regions, see the holiday calendar
                          endpoint for regions.
                      observed:
                        type: boolean
                        description: Whether the events should consider observances
                      ignored_holidays:
                        type: array
                        description: The names of ignored holidays
                        items:
                          type: string
                      holidays:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              format: date
                              description: When the next holiday occurs
                            name:
                              type: string
                              description: The name of the next holiday
                          required:
                          - date
                          - name
                        deprecated: true
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - enabled
                    - override
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - scheduleable
                    - place_id
                    - integration_id
                    - type
                    - region
                    - observed
                    - ignored_holidays
                    - holidays
                    additionalProperties: false
                  - type: object
                    title: Recurring Event
                    properties:
                      id:
                        type: integer
                        description: The ID of the schedule
                      resource_type:
                        type: string
                        description: The resource type of the schedule
                        const: Schedule
                      created_at:
                        type: string
                        format: date-time
                        description: When the schedule was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the schedule was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      scheduleable:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: The ID of the schedulable
                          type:
                            type: string
                            enum:
                            - Group
                            - Lock
                            - ElevatorStop
                            description: The type of the schedulable
                          name:
                            type: string
                            description: The name of the schedulable
                        required:
                        - id
                        - type
                        - name
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the schedule
                      place:
                        type: object
                        title: Place
                        description: The place of the schedule
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the schedule
                      type:
                        type: string
                        const: recurring_event
                        description: The type of the schedule
                      monday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      tuesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      wednesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      thursday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      friday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      saturday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      sunday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      starts_at_time:
                        type: string
                        description: When the schedule starts at, in the `hh:mm` format
                      ends_at_time:
                        type: string
                        description: When the schedule ends at, in the `hh:mm` format
                      next_occurence:
                        type: object
                        deprecated: true
                        properties:
                          starts_at:
                            type: string
                            format: date-time
                            description: When the next event starts at
                          ends_at:
                            type: string
                            format: date-time
                            description: When the next event ends at
                        required:
                        - starts_at
                        - ends_at
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - enabled
                    - override
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - scheduleable
                    - place_id
                    - integration_id
                    - type
                    - monday
                    - tuesday
                    - wednesday
                    - thursday
                    - friday
                    - saturday
                    - sunday
                    - starts_at_time
                    - ends_at_time
                    - next_occurence
                    additionalProperties: false
                  - type: object
                    title: Single All Day Event
                    properties:
                      id:
                        type: integer
                        description: The ID of the schedule
                      resource_type:
                        type: string
                        description: The resource type of the schedule
                        const: Schedule
                      created_at:
                        type: string
                        format: date-time
                        description: When the schedule was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the schedule was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      scheduleable:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: The ID of the schedulable
                          type:
                            type: string
                            enum:
                            - Group
                            - Lock
                            - ElevatorStop
                            description: The type of the schedulable
                          name:
                            type: string
                            description: The name of the schedulable
                        required:
                        - id
                        - type
                        - name
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the schedule
                      place:
                        type: object
                        title: Place
                        description: The place of the schedule
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the schedule
                      type:
                        type: string
                        const: single_all_day_event
                        description: The type of the schedule
                      starts_at_date:
                        type: string
                        format: date
                        description: When the schedule starts at
                      ends_at_date:
                        type: string
                        format: date
                        description: When the schedule ends at
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - enabled
                    - override
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - scheduleable
                    - place_id
                    - integration_id
                    - type
                    - starts_at_date
                    - ends_at_date
                    additionalProperties: false
                  - type: object
                    title: Single Event
                    properties:
                      id:
                        type: integer
                        description: The ID of the schedule
                      resource_type:
                        type: string
                        description: The resource type of the schedule
                        const: Schedule
                      created_at:
                        type: string
                        format: date-time
                        description: When the schedule was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the schedule was updated
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      scheduleable:
                        type: object
                        properties:
                          id:
                            type: integer
                            description: The ID of the schedulable
                          type:
                            type: string
                            enum:
                            - Group
                            - Lock
                            - ElevatorStop
                            description: The type of the schedulable
                          name:
                            type: string
                            description: The name of the schedulable
                        required:
                        - id
                        - type
                        - name
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the schedule
                      place:
                        type: object
                        title: Place
                        description: The place of the schedule
                        properties:
                          id:
                            type: integer
                            description: The ID of the place
                          resource_type:
                            type: string
                            description: The resource type of the place
                            const: Place
                          name:
                            type: string
                            description: The name of the place
                        required:
                        - id
                        - resource_type
                        - name
                        additionalProperties: false
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the schedule
                      type:
                        type: string
                        const: single_event
                        description: The type of the schedule
                      starts_at:
                        type: string
                        format: date-time
                        description: When the schedule starts at. Seconds are ignored.
                      ends_at:
                        type: string
                        format: date-time
                        description: When the schedule ends at. Seconds are ignored.
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - enabled
                    - override
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - scheduleable
                    - place_id
                    - integration_id
                    - type
                    - starts_at
                    - ends_at
                    additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createSchedule
      summary: Create schedule
      tags:
      - Schedules
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Holiday Calendar
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      type:
                        type: string
                        const: holiday_calendar
                        description: The type of the schedule
                      region:
                        type: string
                        enum:
                        - ar
                        - at
                        - au
                        - au_act
                        - au_nsw
                        - au_nt
                        - au_qld
                        - au_sa
                        - au_tas
                        - au_vic
                        - au_wa
                        - bg
                        - br
                        - by
                        - ca
                        - ca_ab
                        - ca_bc
                        - ca_mb
                        - ca_nb
                        - ca_nl
                        - ca_ns
                        - ca_nt
                        - ca_nu
                        - ca_on
                        - ca_pe
                        - ca_qc
                        - ca_sk
                        - ca_yt
                        - ch
                        - ch_ag
                        - ch_ai
                        - ch_ar
                        - ch_be
                        - ch_bl
                        - ch_bs
                        - ch_fr
                        - ch_ge
                        - ch_gl
                        - ch_gr
                        - ch_ju
                        - ch_lu
                        - ch_ne
                        - ch_nw
                        - ch_ow
                        - ch_sg
                        - ch_sh
                        - ch_so
                        - ch_sz
                        - ch_tg
                        - ch_ti
                        - ch_ur
                        - ch_vd
                        - ch_vs
                        - ch_zg
                        - ch_zh
                        - cl
                        - co
                        - cr
                        - cy
                        - cz
                        - de
                        - de_bb
                        - de_be
                        - de_bw
                        - de_by
                        - de_hb
                        - de_he
                        - de_hh
                        - de_mv
                        - de_ni
                        - de_nw
                        - de_rp
                        - de_sh
                        - de_sl
                        - de_sn
                        - de_st
                        - de_th
                        - dk
                        - ee
                        - es
                        - es_an
                        - es_ar
                        - es_ce
                        - es_cl
                        - es_cm
                        - es_cn
                        - es_ct
                        - es_ex
                        - es_ga
                        - es_ib
                        - es_lo
                        - es_m
                        - es_mu
                        - es_na
                        - es_o
                        - es_pv
                        - es_v
                        - es_vc
                        - fi
                        - fr
                        - gb
                        - gb_con
                        - gb_eng
                        - gb_nir
                        - gb_sct
                        - gb_wls
                        - ge
                        - gr
                        - hk
                        - hr
                        - hu
                        - ie
                        - il
                        - in
                        - in_ap
                        - in_ar
                        - in_as
                        - in_br
                        - in_cg
                        - in_ga
                        - in_gj
                        - in_hp
                        - in_hr
                        - in_jh
                        - in_jk
                        - in_ka
                        - in_kl
                        - in_mh
                        - in_mp
                        - in_mz
                        - in_nl
                        - in_od
                        - in_pb
                        - in_py
                        - in_sk
                        - in_tr
                        - in_ts
                        - in_wb
                        - is
                        - it
                        - it_bl
                        - it_fi
                        - it_ge
                        - it_pd
                        - it_rm
                        - it_ro
                        - it_to
                        - it_tv
                        - it_ve
                        - it_vi
                        - it_vr
                        - jp
                        - ke
                        - kr
                        - kz
                        - li
                        - lt
                        - lu
                        - lv
                        - ma
                        - mc
                        - mx
                        - mx_pue
                        - my
                        - ng
                        - nl
                        - 'no'
                        - nz
                        - pe
                        - ph
                        - pl
                        - pt
                        - ro
                        - ru
                        - se
                        - sg
                        - th
                        - tn
                        - tr
                        - ua
                        - us
                        - us_ak
                        - us_al
                        - us_ar
                        - us_az
                        - us_ca
                        - us_co
                        - us_ct
                        - us_dc
                        - us_de
                        - us_fl
                        - us_ga
                        - us_gu
                        - us_hi
                        - us_ia
                        - us_id
                        - us_il
                        - us_in
                        - us_ks
                        - us_ky
                        - us_la
                        - us_ma
                        - us_md
                        - us_me
                        - us_mi
                        - us_mn
                        - us_mo
                        - us_ms
                        - us_mt
                        - us_nc
                        - us_nd
                        - us_ne
                        - us_nh
                        - us_nj
                        - us_nm
                        - us_nv
                        - us_ny
                        - us_oh
                        - us_ok
                        - us_or
                        - us_pa
                        - us_pr
                        - us_ri
                        - us_sc
                        - us_sd
                        - us_tn
                        - us_tx
                        - us_ut
                        - us_va
                        - us_vi
                        - us_vt
                        - us_wa
                        - us_wi
                        - us_wv
                        - us_wy
                        - vn
                        - za
                        description: Which region's holiday rules to follow for event
                          generation. For details on regions, see the holiday calendar
                          endpoint for regions.
                      observed:
                        type: boolean
                        description: Whether the events should consider observances
                      ignored_holidays:
                        type: array
                        description: The names of ignored holidays
                        items:
                          type: string
                    required:
                    - enabled
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - region
                    - observed
                required:
                - schedule
              - type: object
                title: Recurring Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      type:
                        type: string
                        const: recurring_event
                        description: The type of the schedule
                      monday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      tuesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      wednesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      thursday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      friday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      saturday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      sunday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                    required:
                    - enabled
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - type
                    - monday
                    - tuesday
                    - wednesday
                    - thursday
                    - friday
                    - saturday
                    - sunday
                required:
                - schedule
              - type: object
                title: Single All Day Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      type:
                        type: string
                        const: single_all_day_event
                        description: The type of the schedule
                      starts_at_date:
                        type: string
                        format: date
                        description: When the schedule starts at
                      ends_at_date:
                        type: string
                        format: date
                        description: When the schedule ends at
                    required:
                    - enabled
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - type
                    - starts_at_date
                    - ends_at_date
                required:
                - schedule
              - type: object
                title: Single Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      consequence:
                        type: string
                        enum:
                        - allow
                        - first_to_arrive
                        - permit
                        - unlock
                        description: |
                          Defines what happens to the `scheduleable` when the schedule is occuring.
                          The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                          The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                      scheduleable_type:
                        type: string
                        enum:
                        - Group
                        - Lock
                        - ElevatorStop
                        description: The type of the schedulable
                      scheduleable_id:
                        type: integer
                        description: The ID of the schedulable
                      type:
                        type: string
                        const: single_event
                        description: The type of the schedule
                      starts_at:
                        type: string
                        format: date-time
                        description: When the schedule starts at. Seconds are ignored.
                      ends_at:
                        type: string
                        format: date-time
                        description: When the schedule ends at. Seconds are ignored.
                    required:
                    - enabled
                    - consequence
                    - scheduleable_type
                    - scheduleable_id
                    - type
                    - starts_at
                    - ends_at
                required:
                - schedule
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Holiday Calendar
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: holiday_calendar
                      description: The type of the schedule
                    region:
                      type: string
                      enum:
                      - ar
                      - at
                      - au
                      - au_act
                      - au_nsw
                      - au_nt
                      - au_qld
                      - au_sa
                      - au_tas
                      - au_vic
                      - au_wa
                      - bg
                      - br
                      - by
                      - ca
                      - ca_ab
                      - ca_bc
                      - ca_mb
                      - ca_nb
                      - ca_nl
                      - ca_ns
                      - ca_nt
                      - ca_nu
                      - ca_on
                      - ca_pe
                      - ca_qc
                      - ca_sk
                      - ca_yt
                      - ch
                      - ch_ag
                      - ch_ai
                      - ch_ar
                      - ch_be
                      - ch_bl
                      - ch_bs
                      - ch_fr
                      - ch_ge
                      - ch_gl
                      - ch_gr
                      - ch_ju
                      - ch_lu
                      - ch_ne
                      - ch_nw
                      - ch_ow
                      - ch_sg
                      - ch_sh
                      - ch_so
                      - ch_sz
                      - ch_tg
                      - ch_ti
                      - ch_ur
                      - ch_vd
                      - ch_vs
                      - ch_zg
                      - ch_zh
                      - cl
                      - co
                      - cr
                      - cy
                      - cz
                      - de
                      - de_bb
                      - de_be
                      - de_bw
                      - de_by
                      - de_hb
                      - de_he
                      - de_hh
                      - de_mv
                      - de_ni
                      - de_nw
                      - de_rp
                      - de_sh
                      - de_sl
                      - de_sn
                      - de_st
                      - de_th
                      - dk
                      - ee
                      - es
                      - es_an
                      - es_ar
                      - es_ce
                      - es_cl
                      - es_cm
                      - es_cn
                      - es_ct
                      - es_ex
                      - es_ga
                      - es_ib
                      - es_lo
                      - es_m
                      - es_mu
                      - es_na
                      - es_o
                      - es_pv
                      - es_v
                      - es_vc
                      - fi
                      - fr
                      - gb
                      - gb_con
                      - gb_eng
                      - gb_nir
                      - gb_sct
                      - gb_wls
                      - ge
                      - gr
                      - hk
                      - hr
                      - hu
                      - ie
                      - il
                      - in
                      - in_ap
                      - in_ar
                      - in_as
                      - in_br
                      - in_cg
                      - in_ga
                      - in_gj
                      - in_hp
                      - in_hr
                      - in_jh
                      - in_jk
                      - in_ka
                      - in_kl
                      - in_mh
                      - in_mp
                      - in_mz
                      - in_nl
                      - in_od
                      - in_pb
                      - in_py
                      - in_sk
                      - in_tr
                      - in_ts
                      - in_wb
                      - is
                      - it
                      - it_bl
                      - it_fi
                      - it_ge
                      - it_pd
                      - it_rm
                      - it_ro
                      - it_to
                      - it_tv
                      - it_ve
                      - it_vi
                      - it_vr
                      - jp
                      - ke
                      - kr
                      - kz
                      - li
                      - lt
                      - lu
                      - lv
                      - ma
                      - mc
                      - mx
                      - mx_pue
                      - my
                      - ng
                      - nl
                      - 'no'
                      - nz
                      - pe
                      - ph
                      - pl
                      - pt
                      - ro
                      - ru
                      - se
                      - sg
                      - th
                      - tn
                      - tr
                      - ua
                      - us
                      - us_ak
                      - us_al
                      - us_ar
                      - us_az
                      - us_ca
                      - us_co
                      - us_ct
                      - us_dc
                      - us_de
                      - us_fl
                      - us_ga
                      - us_gu
                      - us_hi
                      - us_ia
                      - us_id
                      - us_il
                      - us_in
                      - us_ks
                      - us_ky
                      - us_la
                      - us_ma
                      - us_md
                      - us_me
                      - us_mi
                      - us_mn
                      - us_mo
                      - us_ms
                      - us_mt
                      - us_nc
                      - us_nd
                      - us_ne
                      - us_nh
                      - us_nj
                      - us_nm
                      - us_nv
                      - us_ny
                      - us_oh
                      - us_ok
                      - us_or
                      - us_pa
                      - us_pr
                      - us_ri
                      - us_sc
                      - us_sd
                      - us_tn
                      - us_tx
                      - us_ut
                      - us_va
                      - us_vi
                      - us_vt
                      - us_wa
                      - us_wi
                      - us_wv
                      - us_wy
                      - vn
                      - za
                      description: Which region's holiday rules to follow for event
                        generation. For details on regions, see the holiday calendar
                        endpoint for regions.
                    observed:
                      type: boolean
                      description: Whether the events should consider observances
                    ignored_holidays:
                      type: array
                      description: The names of ignored holidays
                      items:
                        type: string
                    holidays:
                      type: array
                      items:
                        type: object
                        properties:
                          date:
                            type: string
                            format: date
                            description: When the next holiday occurs
                          name:
                            type: string
                            description: The name of the next holiday
                        required:
                        - date
                        - name
                      deprecated: true
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - region
                  - observed
                  - ignored_holidays
                  - holidays
                  additionalProperties: false
                - type: object
                  title: Recurring Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: recurring_event
                      description: The type of the schedule
                    monday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    tuesday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    wednesday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    thursday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    friday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    saturday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    sunday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    starts_at_time:
                      type: string
                      description: When the schedule starts at, in the `hh:mm` format
                    ends_at_time:
                      type: string
                      description: When the schedule ends at, in the `hh:mm` format
                    next_occurence:
                      type: object
                      deprecated: true
                      properties:
                        starts_at:
                          type: string
                          format: date-time
                          description: When the next event starts at
                        ends_at:
                          type: string
                          format: date-time
                          description: When the next event ends at
                      required:
                      - starts_at
                      - ends_at
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - monday
                  - tuesday
                  - wednesday
                  - thursday
                  - friday
                  - saturday
                  - sunday
                  - starts_at_time
                  - ends_at_time
                  - next_occurence
                  additionalProperties: false
                - type: object
                  title: Single All Day Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: single_all_day_event
                      description: The type of the schedule
                    starts_at_date:
                      type: string
                      format: date
                      description: When the schedule starts at
                    ends_at_date:
                      type: string
                      format: date
                      description: When the schedule ends at
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - starts_at_date
                  - ends_at_date
                  additionalProperties: false
                - type: object
                  title: Single Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: single_event
                      description: The type of the schedule
                    starts_at:
                      type: string
                      format: date-time
                      description: When the schedule starts at. Seconds are ignored.
                    ends_at:
                      type: string
                      format: date-time
                      description: When the schedule ends at. Seconds are ignored.
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - starts_at
                  - ends_at
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/schedules/{id}":
    get:
      operationId: fetchSchedule
      summary: Fetch schedule
      tags:
      - Schedules
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                oneOf:
                - type: object
                  title: Holiday Calendar
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: holiday_calendar
                      description: The type of the schedule
                    region:
                      type: string
                      enum:
                      - ar
                      - at
                      - au
                      - au_act
                      - au_nsw
                      - au_nt
                      - au_qld
                      - au_sa
                      - au_tas
                      - au_vic
                      - au_wa
                      - bg
                      - br
                      - by
                      - ca
                      - ca_ab
                      - ca_bc
                      - ca_mb
                      - ca_nb
                      - ca_nl
                      - ca_ns
                      - ca_nt
                      - ca_nu
                      - ca_on
                      - ca_pe
                      - ca_qc
                      - ca_sk
                      - ca_yt
                      - ch
                      - ch_ag
                      - ch_ai
                      - ch_ar
                      - ch_be
                      - ch_bl
                      - ch_bs
                      - ch_fr
                      - ch_ge
                      - ch_gl
                      - ch_gr
                      - ch_ju
                      - ch_lu
                      - ch_ne
                      - ch_nw
                      - ch_ow
                      - ch_sg
                      - ch_sh
                      - ch_so
                      - ch_sz
                      - ch_tg
                      - ch_ti
                      - ch_ur
                      - ch_vd
                      - ch_vs
                      - ch_zg
                      - ch_zh
                      - cl
                      - co
                      - cr
                      - cy
                      - cz
                      - de
                      - de_bb
                      - de_be
                      - de_bw
                      - de_by
                      - de_hb
                      - de_he
                      - de_hh
                      - de_mv
                      - de_ni
                      - de_nw
                      - de_rp
                      - de_sh
                      - de_sl
                      - de_sn
                      - de_st
                      - de_th
                      - dk
                      - ee
                      - es
                      - es_an
                      - es_ar
                      - es_ce
                      - es_cl
                      - es_cm
                      - es_cn
                      - es_ct
                      - es_ex
                      - es_ga
                      - es_ib
                      - es_lo
                      - es_m
                      - es_mu
                      - es_na
                      - es_o
                      - es_pv
                      - es_v
                      - es_vc
                      - fi
                      - fr
                      - gb
                      - gb_con
                      - gb_eng
                      - gb_nir
                      - gb_sct
                      - gb_wls
                      - ge
                      - gr
                      - hk
                      - hr
                      - hu
                      - ie
                      - il
                      - in
                      - in_ap
                      - in_ar
                      - in_as
                      - in_br
                      - in_cg
                      - in_ga
                      - in_gj
                      - in_hp
                      - in_hr
                      - in_jh
                      - in_jk
                      - in_ka
                      - in_kl
                      - in_mh
                      - in_mp
                      - in_mz
                      - in_nl
                      - in_od
                      - in_pb
                      - in_py
                      - in_sk
                      - in_tr
                      - in_ts
                      - in_wb
                      - is
                      - it
                      - it_bl
                      - it_fi
                      - it_ge
                      - it_pd
                      - it_rm
                      - it_ro
                      - it_to
                      - it_tv
                      - it_ve
                      - it_vi
                      - it_vr
                      - jp
                      - ke
                      - kr
                      - kz
                      - li
                      - lt
                      - lu
                      - lv
                      - ma
                      - mc
                      - mx
                      - mx_pue
                      - my
                      - ng
                      - nl
                      - 'no'
                      - nz
                      - pe
                      - ph
                      - pl
                      - pt
                      - ro
                      - ru
                      - se
                      - sg
                      - th
                      - tn
                      - tr
                      - ua
                      - us
                      - us_ak
                      - us_al
                      - us_ar
                      - us_az
                      - us_ca
                      - us_co
                      - us_ct
                      - us_dc
                      - us_de
                      - us_fl
                      - us_ga
                      - us_gu
                      - us_hi
                      - us_ia
                      - us_id
                      - us_il
                      - us_in
                      - us_ks
                      - us_ky
                      - us_la
                      - us_ma
                      - us_md
                      - us_me
                      - us_mi
                      - us_mn
                      - us_mo
                      - us_ms
                      - us_mt
                      - us_nc
                      - us_nd
                      - us_ne
                      - us_nh
                      - us_nj
                      - us_nm
                      - us_nv
                      - us_ny
                      - us_oh
                      - us_ok
                      - us_or
                      - us_pa
                      - us_pr
                      - us_ri
                      - us_sc
                      - us_sd
                      - us_tn
                      - us_tx
                      - us_ut
                      - us_va
                      - us_vi
                      - us_vt
                      - us_wa
                      - us_wi
                      - us_wv
                      - us_wy
                      - vn
                      - za
                      description: Which region's holiday rules to follow for event
                        generation. For details on regions, see the holiday calendar
                        endpoint for regions.
                    observed:
                      type: boolean
                      description: Whether the events should consider observances
                    ignored_holidays:
                      type: array
                      description: The names of ignored holidays
                      items:
                        type: string
                    holidays:
                      type: array
                      items:
                        type: object
                        properties:
                          date:
                            type: string
                            format: date
                            description: When the next holiday occurs
                          name:
                            type: string
                            description: The name of the next holiday
                        required:
                        - date
                        - name
                      deprecated: true
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - region
                  - observed
                  - ignored_holidays
                  - holidays
                  additionalProperties: false
                - type: object
                  title: Recurring Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: recurring_event
                      description: The type of the schedule
                    monday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    tuesday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    wednesday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    thursday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    friday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    saturday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    sunday:
                      type: boolean
                      description: Whether the schedule occurs on this day
                    starts_at_time:
                      type: string
                      description: When the schedule starts at, in the `hh:mm` format
                    ends_at_time:
                      type: string
                      description: When the schedule ends at, in the `hh:mm` format
                    next_occurence:
                      type: object
                      deprecated: true
                      properties:
                        starts_at:
                          type: string
                          format: date-time
                          description: When the next event starts at
                        ends_at:
                          type: string
                          format: date-time
                          description: When the next event ends at
                      required:
                      - starts_at
                      - ends_at
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - monday
                  - tuesday
                  - wednesday
                  - thursday
                  - friday
                  - saturday
                  - sunday
                  - starts_at_time
                  - ends_at_time
                  - next_occurence
                  additionalProperties: false
                - type: object
                  title: Single All Day Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: single_all_day_event
                      description: The type of the schedule
                    starts_at_date:
                      type: string
                      format: date
                      description: When the schedule starts at
                    ends_at_date:
                      type: string
                      format: date
                      description: When the schedule ends at
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - starts_at_date
                  - ends_at_date
                  additionalProperties: false
                - type: object
                  title: Single Event
                  properties:
                    id:
                      type: integer
                      description: The ID of the schedule
                    resource_type:
                      type: string
                      description: The resource type of the schedule
                      const: Schedule
                    created_at:
                      type: string
                      format: date-time
                      description: When the schedule was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the schedule was updated
                    name:
                      type:
                      - string
                      - 'null'
                      description: The name of the schedule
                    enabled:
                      type: boolean
                      description: Whether the schedule is enabled
                    override:
                      type: boolean
                      description: Whether to override other events of the same consequence
                    consequence:
                      type: string
                      enum:
                      - allow
                      - first_to_arrive
                      - permit
                      - unlock
                      description: |
                        Defines what happens to the `scheduleable` when the schedule is occuring.
                        The `unlock` value only applies to schedules with `scheduleable_type` set to `Lock`.
                        The `permit` value only applies to schedules with `scheduleable_type` set to `ElevatorStop`.
                    scheduleable_type:
                      type: string
                      enum:
                      - Group
                      - Lock
                      - ElevatorStop
                      description: The type of the schedulable
                    scheduleable_id:
                      type: integer
                      description: The ID of the schedulable
                    scheduleable:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: The ID of the schedulable
                        type:
                          type: string
                          enum:
                          - Group
                          - Lock
                          - ElevatorStop
                          description: The type of the schedulable
                        name:
                          type: string
                          description: The name of the schedulable
                      required:
                      - id
                      - type
                      - name
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the schedule
                    place:
                      type: object
                      title: Place
                      description: The place of the schedule
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    integration_id:
                      type:
                      - integer
                      - 'null'
                      description: The integration ID of the schedule
                    type:
                      type: string
                      const: single_event
                      description: The type of the schedule
                    starts_at:
                      type: string
                      format: date-time
                      description: When the schedule starts at. Seconds are ignored.
                    ends_at:
                      type: string
                      format: date-time
                      description: When the schedule ends at. Seconds are ignored.
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - enabled
                  - override
                  - consequence
                  - scheduleable_type
                  - scheduleable_id
                  - scheduleable
                  - place_id
                  - integration_id
                  - type
                  - starts_at
                  - ends_at
                  additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateSchedule
      summary: Update schedule
      tags:
      - Schedules
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
                title: Holiday Calendar
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      type:
                        type: string
                        const: holiday_calendar
                        description: The type of the schedule
                      region:
                        type: string
                        enum:
                        - ar
                        - at
                        - au
                        - au_act
                        - au_nsw
                        - au_nt
                        - au_qld
                        - au_sa
                        - au_tas
                        - au_vic
                        - au_wa
                        - bg
                        - br
                        - by
                        - ca
                        - ca_ab
                        - ca_bc
                        - ca_mb
                        - ca_nb
                        - ca_nl
                        - ca_ns
                        - ca_nt
                        - ca_nu
                        - ca_on
                        - ca_pe
                        - ca_qc
                        - ca_sk
                        - ca_yt
                        - ch
                        - ch_ag
                        - ch_ai
                        - ch_ar
                        - ch_be
                        - ch_bl
                        - ch_bs
                        - ch_fr
                        - ch_ge
                        - ch_gl
                        - ch_gr
                        - ch_ju
                        - ch_lu
                        - ch_ne
                        - ch_nw
                        - ch_ow
                        - ch_sg
                        - ch_sh
                        - ch_so
                        - ch_sz
                        - ch_tg
                        - ch_ti
                        - ch_ur
                        - ch_vd
                        - ch_vs
                        - ch_zg
                        - ch_zh
                        - cl
                        - co
                        - cr
                        - cy
                        - cz
                        - de
                        - de_bb
                        - de_be
                        - de_bw
                        - de_by
                        - de_hb
                        - de_he
                        - de_hh
                        - de_mv
                        - de_ni
                        - de_nw
                        - de_rp
                        - de_sh
                        - de_sl
                        - de_sn
                        - de_st
                        - de_th
                        - dk
                        - ee
                        - es
                        - es_an
                        - es_ar
                        - es_ce
                        - es_cl
                        - es_cm
                        - es_cn
                        - es_ct
                        - es_ex
                        - es_ga
                        - es_ib
                        - es_lo
                        - es_m
                        - es_mu
                        - es_na
                        - es_o
                        - es_pv
                        - es_v
                        - es_vc
                        - fi
                        - fr
                        - gb
                        - gb_con
                        - gb_eng
                        - gb_nir
                        - gb_sct
                        - gb_wls
                        - ge
                        - gr
                        - hk
                        - hr
                        - hu
                        - ie
                        - il
                        - in
                        - in_ap
                        - in_ar
                        - in_as
                        - in_br
                        - in_cg
                        - in_ga
                        - in_gj
                        - in_hp
                        - in_hr
                        - in_jh
                        - in_jk
                        - in_ka
                        - in_kl
                        - in_mh
                        - in_mp
                        - in_mz
                        - in_nl
                        - in_od
                        - in_pb
                        - in_py
                        - in_sk
                        - in_tr
                        - in_ts
                        - in_wb
                        - is
                        - it
                        - it_bl
                        - it_fi
                        - it_ge
                        - it_pd
                        - it_rm
                        - it_ro
                        - it_to
                        - it_tv
                        - it_ve
                        - it_vi
                        - it_vr
                        - jp
                        - ke
                        - kr
                        - kz
                        - li
                        - lt
                        - lu
                        - lv
                        - ma
                        - mc
                        - mx
                        - mx_pue
                        - my
                        - ng
                        - nl
                        - 'no'
                        - nz
                        - pe
                        - ph
                        - pl
                        - pt
                        - ro
                        - ru
                        - se
                        - sg
                        - th
                        - tn
                        - tr
                        - ua
                        - us
                        - us_ak
                        - us_al
                        - us_ar
                        - us_az
                        - us_ca
                        - us_co
                        - us_ct
                        - us_dc
                        - us_de
                        - us_fl
                        - us_ga
                        - us_gu
                        - us_hi
                        - us_ia
                        - us_id
                        - us_il
                        - us_in
                        - us_ks
                        - us_ky
                        - us_la
                        - us_ma
                        - us_md
                        - us_me
                        - us_mi
                        - us_mn
                        - us_mo
                        - us_ms
                        - us_mt
                        - us_nc
                        - us_nd
                        - us_ne
                        - us_nh
                        - us_nj
                        - us_nm
                        - us_nv
                        - us_ny
                        - us_oh
                        - us_ok
                        - us_or
                        - us_pa
                        - us_pr
                        - us_ri
                        - us_sc
                        - us_sd
                        - us_tn
                        - us_tx
                        - us_ut
                        - us_va
                        - us_vi
                        - us_vt
                        - us_wa
                        - us_wi
                        - us_wv
                        - us_wy
                        - vn
                        - za
                        description: Which region's holiday rules to follow for event
                          generation. For details on regions, see the holiday calendar
                          endpoint for regions.
                      observed:
                        type: boolean
                        description: Whether the events should consider observances
                      ignored_holidays:
                        type: array
                        description: The names of ignored holidays
                        items:
                          type: string
                    required: []
                required:
                - schedule
              - type: object
                title: Recurring Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      type:
                        type: string
                        const: recurring_event
                        description: The type of the schedule
                      monday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      tuesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      wednesday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      thursday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      friday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      saturday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                      sunday:
                        type: boolean
                        description: Whether the schedule occurs on this day
                    required: []
                required:
                - schedule
              - type: object
                title: Single All Day Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      type:
                        type: string
                        const: single_all_day_event
                        description: The type of the schedule
                      starts_at_date:
                        type: string
                        format: date
                        description: When the schedule starts at
                      ends_at_date:
                        type: string
                        format: date
                        description: When the schedule ends at
                    required: []
                required:
                - schedule
              - type: object
                title: Single Event
                properties:
                  schedule:
                    type: object
                    properties:
                      name:
                        type:
                        - string
                        - 'null'
                        description: The name of the schedule
                      enabled:
                        type: boolean
                        description: Whether the schedule is enabled
                      override:
                        type: boolean
                        description: Whether to override other events of the same
                          consequence
                      type:
                        type: string
                        const: single_event
                        description: The type of the schedule
                      starts_at:
                        type: string
                        format: date-time
                        description: When the schedule starts at. Seconds are ignored.
                      ends_at:
                        type: string
                        format: date-time
                        description: When the schedule ends at. Seconds are ignored.
                    required: []
                required:
                - schedule
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteSchedule
      summary: Delete schedule
      tags:
      - Schedules
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/scheduled_reports":
    get:
      operationId: fetchScheduledReports
      summary: Fetch scheduled reports
      tags:
      - Scheduled reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Scheduled Report
                  properties:
                    id:
                      type: integer
                      description: The ID of the scheduled report
                    resource_type:
                      type: string
                      description: The resource type of the scheduled report
                      const: ScheduledReport
                    name:
                      type: string
                      description: The name of the scheduled report
                    period:
                      type: string
                      enum:
                      - day
                      - week
                      - month
                      description: "The period of the scheduled report. \nIf the reporter
                        has a minimum interval days, the frequency, together with
                        the period, can't be shorter than that \nvalue. Current minimum
                        interval days: no limit\nIf the reporter has a maximum interval
                        days, the frequency, together with the period, can't be longer
                        than that \nvalue. Current maximum interval days: 180\n"
                    frequency:
                      type: integer
                      description: "The frequency of the scheduled report. \nIf the
                        reporter has a minimum interval days, the frequency, together
                        with the period, can't be shorter than that \nvalue. Current
                        minimum interval days: no limit\nIf the reporter has a maximum
                        interval days, the frequency, together with the period, can't
                        be longer than that \nvalue. Current maximum interval days:
                        180\n"
                    scheduled_at:
                      type: string
                      format: date
                      description: The date at which the schedule will start
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the scheduled report.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                    enabled:
                      type: boolean
                      default: false
                      description: Whether the scheduled report is enabled
                    emails:
                      type: array
                      minItems: 1
                      maxItems: 5
                      items:
                        type: string
                        format: email
                      description: The emails to send the reports to
                    created_at:
                      type: string
                      format: date-time
                      description: When the scheduled report was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the scheduled report was updated
                    organization_id:
                      type: integer
                      description: The organization ID of the scheduled report
                    organization:
                      type: object
                      title: Organization
                      description: The organization of the scheduled report
                      properties:
                        id:
                          type: integer
                          description: The ID of the organization
                        resource_type:
                          type: string
                          description: The resource type of the organization
                          const: Organization
                        name:
                          type: string
                          description: The name of the organization
                        domain:
                          type: string
                          description: The domain of the organization.
                      required:
                      - id
                      - resource_type
                      - name
                      - domain
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the scheduled report
                    reporter_id:
                      type: integer
                      description: The reporter ID of the scheduled report
                  required:
                  - id
                  - resource_type
                  - name
                  - period
                  - frequency
                  - scheduled_at
                  - time_zone
                  - enabled
                  - emails
                  - created_at
                  - updated_at
                  - organization_id
                  - organization
                  - place_id
                  - reporter_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createScheduledReport
      summary: Create scheduled report
      tags:
      - Scheduled reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Scheduled Report
              properties:
                scheduled_report:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the scheduled report
                    reporter_id:
                      type: integer
                      description: The reporter ID of the scheduled report
                    emails:
                      type: array
                      minItems: 1
                      maxItems: 5
                      items:
                        type: string
                        format: email
                      description: The emails to send the reports to
                    period:
                      type: string
                      enum:
                      - day
                      - week
                      - month
                      description: "The period of the scheduled report. \nIf the reporter
                        has a minimum interval days, the frequency, together with
                        the period, can't be shorter than that \nvalue. Current minimum
                        interval days: no limit\nIf the reporter has a maximum interval
                        days, the frequency, together with the period, can't be longer
                        than that \nvalue. Current maximum interval days: 180\n"
                    frequency:
                      type: integer
                      description: "The frequency of the scheduled report. \nIf the
                        reporter has a minimum interval days, the frequency, together
                        with the period, can't be shorter than that \nvalue. Current
                        minimum interval days: no limit\nIf the reporter has a maximum
                        interval days, the frequency, together with the period, can't
                        be longer than that \nvalue. Current maximum interval days:
                        180\n"
                    scheduled_at:
                      type: string
                      format: date
                      description: The date at which the schedule will start
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the scheduled report.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  required:
                  - name
                  - reporter_id
                  - period
                  - frequency
                  - scheduled_at
                  - time_zone
              required:
              - scheduled_report
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Scheduled Report
                properties:
                  id:
                    type: integer
                    description: The ID of the scheduled report
                  resource_type:
                    type: string
                    description: The resource type of the scheduled report
                    const: ScheduledReport
                  name:
                    type: string
                    description: The name of the scheduled report
                  period:
                    type: string
                    enum:
                    - day
                    - week
                    - month
                    description: "The period of the scheduled report. \nIf the reporter
                      has a minimum interval days, the frequency, together with the
                      period, can't be shorter than that \nvalue. Current minimum
                      interval days: no limit\nIf the reporter has a maximum interval
                      days, the frequency, together with the period, can't be longer
                      than that \nvalue. Current maximum interval days: 180\n"
                  frequency:
                    type: integer
                    description: "The frequency of the scheduled report. \nIf the
                      reporter has a minimum interval days, the frequency, together
                      with the period, can't be shorter than that \nvalue. Current
                      minimum interval days: no limit\nIf the reporter has a maximum
                      interval days, the frequency, together with the period, can't
                      be longer than that \nvalue. Current maximum interval days:
                      180\n"
                  scheduled_at:
                    type: string
                    format: date
                    description: The date at which the schedule will start
                  time_zone:
                    type:
                    - string
                    example: Europe/London
                    description: |
                      The time zone of the scheduled report.
                      It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  enabled:
                    type: boolean
                    default: false
                    description: Whether the scheduled report is enabled
                  emails:
                    type: array
                    minItems: 1
                    maxItems: 5
                    items:
                      type: string
                      format: email
                    description: The emails to send the reports to
                  created_at:
                    type: string
                    format: date-time
                    description: When the scheduled report was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the scheduled report was updated
                  organization_id:
                    type: integer
                    description: The organization ID of the scheduled report
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the scheduled report
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the scheduled report
                  reporter_id:
                    type: integer
                    description: The reporter ID of the scheduled report
                required:
                - id
                - resource_type
                - name
                - period
                - frequency
                - scheduled_at
                - time_zone
                - enabled
                - emails
                - created_at
                - updated_at
                - organization_id
                - organization
                - place_id
                - reporter_id
                additionalProperties: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/scheduled_reports/{id}":
    get:
      operationId: fetchScheduledReport
      summary: Fetch scheduled report
      tags:
      - Scheduled reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Scheduled Report
                properties:
                  id:
                    type: integer
                    description: The ID of the scheduled report
                  resource_type:
                    type: string
                    description: The resource type of the scheduled report
                    const: ScheduledReport
                  name:
                    type: string
                    description: The name of the scheduled report
                  period:
                    type: string
                    enum:
                    - day
                    - week
                    - month
                    description: "The period of the scheduled report. \nIf the reporter
                      has a minimum interval days, the frequency, together with the
                      period, can't be shorter than that \nvalue. Current minimum
                      interval days: no limit\nIf the reporter has a maximum interval
                      days, the frequency, together with the period, can't be longer
                      than that \nvalue. Current maximum interval days: 180\n"
                  frequency:
                    type: integer
                    description: "The frequency of the scheduled report. \nIf the
                      reporter has a minimum interval days, the frequency, together
                      with the period, can't be shorter than that \nvalue. Current
                      minimum interval days: no limit\nIf the reporter has a maximum
                      interval days, the frequency, together with the period, can't
                      be longer than that \nvalue. Current maximum interval days:
                      180\n"
                  scheduled_at:
                    type: string
                    format: date
                    description: The date at which the schedule will start
                  time_zone:
                    type:
                    - string
                    example: Europe/London
                    description: |
                      The time zone of the scheduled report.
                      It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  enabled:
                    type: boolean
                    default: false
                    description: Whether the scheduled report is enabled
                  emails:
                    type: array
                    minItems: 1
                    maxItems: 5
                    items:
                      type: string
                      format: email
                    description: The emails to send the reports to
                  created_at:
                    type: string
                    format: date-time
                    description: When the scheduled report was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the scheduled report was updated
                  organization_id:
                    type: integer
                    description: The organization ID of the scheduled report
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the scheduled report
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the scheduled report
                  reporter_id:
                    type: integer
                    description: The reporter ID of the scheduled report
                required:
                - id
                - resource_type
                - name
                - period
                - frequency
                - scheduled_at
                - time_zone
                - enabled
                - emails
                - created_at
                - updated_at
                - organization_id
                - organization
                - place_id
                - reporter_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateScheduledReport
      summary: Update scheduled report
      tags:
      - Scheduled reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Scheduled Report
              properties:
                scheduled_report:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the scheduled report
                    enabled:
                      type: boolean
                      default: false
                      description: Whether the scheduled report is enabled
                    period:
                      type: string
                      enum:
                      - day
                      - week
                      - month
                      description: "The period of the scheduled report. \nIf the reporter
                        has a minimum interval days, the frequency, together with
                        the period, can't be shorter than that \nvalue. Current minimum
                        interval days: no limit\nIf the reporter has a maximum interval
                        days, the frequency, together with the period, can't be longer
                        than that \nvalue. Current maximum interval days: 180\n"
                    frequency:
                      type: integer
                      description: "The frequency of the scheduled report. \nIf the
                        reporter has a minimum interval days, the frequency, together
                        with the period, can't be shorter than that \nvalue. Current
                        minimum interval days: no limit\nIf the reporter has a maximum
                        interval days, the frequency, together with the period, can't
                        be longer than that \nvalue. Current maximum interval days:
                        180\n"
                    scheduled_at:
                      type: string
                      format: date
                      description: The date at which the schedule will start
                    emails:
                      type: array
                      minItems: 1
                      maxItems: 5
                      items:
                        type: string
                        format: email
                      description: The emails to send the reports to
                    time_zone:
                      type:
                      - string
                      example: Europe/London
                      description: |
                        The time zone of the scheduled report.
                        It should be a <a href="https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones"> valid IANA time zone name.</a>
                  required: []
              required:
              - scheduled_report
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteScheduledReport
      summary: Delete scheduled report
      tags:
      - Scheduled reports
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/shares":
    get:
      operationId: fetchShares
      summary: Fetch shares
      description: |
        <!-- theme: info -->
        > This API is deprecated.
        > Please read our [documentation](https://docs.kisi.io/api/how_to_guides/manage_access_rights/assign_access_rights/) about how to manage access rights.
      tags:
      - Shares
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `user.email`,
          `user.name`

          '
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
      - name: member_id
        in: query
        schema:
          type: integer
        description: Filter by member ID
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: role_id
        in: query
        schema:
          type: string
          enum:
          - basic
          - manager
        description: Filter by the role of the share
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Share
                  properties:
                    id:
                      type: integer
                      description: The ID of the share
                    resource_type:
                      type: string
                      description: The resource type of the share
                      const: Share
                    created_at:
                      type: string
                      format: date-time
                      description: When the share was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the share was updated
                    email:
                      type: string
                      format: email
                      description: The email of the share's user. Cannot be changed
                        once set
                    notify:
                      type:
                      - boolean
                      - 'null'
                      description: Whether an email should be sent when this share
                        is created or updated
                    role_id:
                      type: string
                      enum:
                      - manager
                      - basic
                      default: basic
                      description: The role of the share
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share starts to be valid at
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share stops to be valid at
                    group_id:
                      type: integer
                      description: The group ID of the share
                    group:
                      type: object
                      title: Group
                      description: The group of the share
                      properties:
                        id:
                          type: integer
                          description: The ID of the group
                        resource_type:
                          type: string
                          description: The resource type of the group
                          const: Group
                        name:
                          type: string
                          description: The name of the group
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    member_id:
                      type: integer
                      description: The member ID of the share
                    member:
                      type: object
                      title: Member
                      description: The member of the share
                      properties:
                        id:
                          type: integer
                          description: The ID of the member
                        resource_type:
                          type: string
                          description: The resource type of the member
                          const: Member
                        name:
                          type: string
                          description: The name of the member
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    place_id:
                      type:
                      - integer
                      - 'null'
                      description: The place ID of the share
                    place:
                      type: object
                      title: Place
                      description: The place of the share
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    user_id:
                      type: integer
                      description: The user ID of the share
                    user:
                      type: object
                      title: User
                      description: The user of the share
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    created_by_type:
                      type:
                      - string
                      - 'null'
                      enum:
                      -
                      - User
                      - MarketplaceInstallation
                      description: The created_by type of the share
                    created_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The created_by ID of the share
                    created_by:
                      type: object
                      description: The created_by of the share
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Marketplace Installation
                        properties:
                          id:
                            type: integer
                            description: The ID of the marketplace installation
                          resource_type:
                            type: string
                            description: The resource type of the marketplace installation
                            const: MarketplaceInstallation
                        required:
                        - id
                        - resource_type
                        additionalProperties: false
                    lock_id:
                      deprecated: true
                      type: 'null'
                    apply_to_place:
                      deprecated: true
                      type: boolean
                      enum:
                      - false
                    role:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                    issued_to_id:
                      deprecated: true
                      type:
                      - integer
                      - 'null'
                      description: The ID of the share's user
                    issued_to_email:
                      deprecated: true
                      type: string
                      format: email
                      description: The email of the share's user
                    issued_by_id:
                      type:
                      - integer
                      - 'null'
                      description: The issued_by ID of the share
                      deprecated: true
                    issued_by:
                      type: object
                      title: User
                      description: The issued_by of the share
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - email
                  - notify
                  - role_id
                  - valid_from
                  - valid_until
                  - group_id
                  - group
                  - member_id
                  - member
                  - place_id
                  - user_id
                  - user
                  - created_by_type
                  - created_by_id
                  - lock_id
                  - apply_to_place
                  - role
                  - issued_to_id
                  - issued_to_email
                  - issued_by_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createShare
      summary: Create share
      description: |
        <!-- theme: info -->
        > This API is deprecated.
        > Please read our [documentation](https://docs.kisi.io/api/how_to_guides/manage_access_rights/assign_access_rights/) about how to manage access rights.
      tags:
      - Shares
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Share
              properties:
                share:
                  type: object
                  properties:
                    email:
                      type: string
                      format: email
                      description: The email of the share's user. Cannot be changed
                        once set
                    group_id:
                      type: integer
                      description: The group ID of the share
                    notify:
                      type:
                      - boolean
                      - 'null'
                      description: Whether an email should be sent when this share
                        is created or updated
                    role_id:
                      type: string
                      enum:
                      - manager
                      - basic
                      default: basic
                      description: The role of the share
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share starts to be valid at
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share stops to be valid at
                  required:
                  - email
                  - group_id
              required:
              - share
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Share
                properties:
                  id:
                    type: integer
                    description: The ID of the share
                  resource_type:
                    type: string
                    description: The resource type of the share
                    const: Share
                  created_at:
                    type: string
                    format: date-time
                    description: When the share was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the share was updated
                  email:
                    type: string
                    format: email
                    description: The email of the share's user. Cannot be changed
                      once set
                  notify:
                    type:
                    - boolean
                    - 'null'
                    description: Whether an email should be sent when this share is
                      created or updated
                  role_id:
                    type: string
                    enum:
                    - manager
                    - basic
                    default: basic
                    description: The role of the share
                  valid_from:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the share starts to be valid at
                  valid_until:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the share stops to be valid at
                  group_id:
                    type: integer
                    description: The group ID of the share
                  group:
                    type: object
                    title: Group
                    description: The group of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  member_id:
                    type: integer
                    description: The member ID of the share
                  member:
                    type: object
                    title: Member
                    description: The member of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the member
                      resource_type:
                        type: string
                        description: The resource type of the member
                        const: Member
                      name:
                        type: string
                        description: The name of the member
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the share
                  place:
                    type: object
                    title: Place
                    description: The place of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  user_id:
                    type: integer
                    description: The user ID of the share
                  user:
                    type: object
                    title: User
                    description: The user of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  created_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - User
                    - MarketplaceInstallation
                    description: The created_by type of the share
                  created_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The created_by ID of the share
                  created_by:
                    type: object
                    description: The created_by of the share
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    - type: object
                      title: Marketplace Installation
                      properties:
                        id:
                          type: integer
                          description: The ID of the marketplace installation
                        resource_type:
                          type: string
                          description: The resource type of the marketplace installation
                          const: MarketplaceInstallation
                      required:
                      - id
                      - resource_type
                      additionalProperties: false
                  lock_id:
                    deprecated: true
                    type: 'null'
                  apply_to_place:
                    deprecated: true
                    type: boolean
                    enum:
                    - false
                  role:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  issued_to_id:
                    deprecated: true
                    type:
                    - integer
                    - 'null'
                    description: The ID of the share's user
                  issued_to_email:
                    deprecated: true
                    type: string
                    format: email
                    description: The email of the share's user
                  issued_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The issued_by ID of the share
                    deprecated: true
                  issued_by:
                    type: object
                    title: User
                    description: The issued_by of the share
                    deprecated: true
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - email
                - notify
                - role_id
                - valid_from
                - valid_until
                - group_id
                - group
                - member_id
                - member
                - place_id
                - user_id
                - user
                - created_by_type
                - created_by_id
                - lock_id
                - apply_to_place
                - role
                - issued_to_id
                - issued_to_email
                - issued_by_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/shares/{id}":
    get:
      operationId: fetchShare
      summary: Fetch share
      description: |
        <!-- theme: info -->
        > This API is deprecated.
        > Please read our [documentation](https://docs.kisi.io/api/how_to_guides/manage_access_rights/assign_access_rights/) about how to manage access rights.
      tags:
      - Shares
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Share
                properties:
                  id:
                    type: integer
                    description: The ID of the share
                  resource_type:
                    type: string
                    description: The resource type of the share
                    const: Share
                  created_at:
                    type: string
                    format: date-time
                    description: When the share was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the share was updated
                  email:
                    type: string
                    format: email
                    description: The email of the share's user. Cannot be changed
                      once set
                  notify:
                    type:
                    - boolean
                    - 'null'
                    description: Whether an email should be sent when this share is
                      created or updated
                  role_id:
                    type: string
                    enum:
                    - manager
                    - basic
                    default: basic
                    description: The role of the share
                  valid_from:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the share starts to be valid at
                  valid_until:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the share stops to be valid at
                  group_id:
                    type: integer
                    description: The group ID of the share
                  group:
                    type: object
                    title: Group
                    description: The group of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the group
                      resource_type:
                        type: string
                        description: The resource type of the group
                        const: Group
                      name:
                        type: string
                        description: The name of the group
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  member_id:
                    type: integer
                    description: The member ID of the share
                  member:
                    type: object
                    title: Member
                    description: The member of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the member
                      resource_type:
                        type: string
                        description: The resource type of the member
                        const: Member
                      name:
                        type: string
                        description: The name of the member
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the share
                  place:
                    type: object
                    title: Place
                    description: The place of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  user_id:
                    type: integer
                    description: The user ID of the share
                  user:
                    type: object
                    title: User
                    description: The user of the share
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                  created_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - User
                    - MarketplaceInstallation
                    description: The created_by type of the share
                  created_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The created_by ID of the share
                  created_by:
                    type: object
                    description: The created_by of the share
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    - type: object
                      title: Marketplace Installation
                      properties:
                        id:
                          type: integer
                          description: The ID of the marketplace installation
                        resource_type:
                          type: string
                          description: The resource type of the marketplace installation
                          const: MarketplaceInstallation
                      required:
                      - id
                      - resource_type
                      additionalProperties: false
                  lock_id:
                    deprecated: true
                    type: 'null'
                  apply_to_place:
                    deprecated: true
                    type: boolean
                    enum:
                    - false
                  role:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                  issued_to_id:
                    deprecated: true
                    type:
                    - integer
                    - 'null'
                    description: The ID of the share's user
                  issued_to_email:
                    deprecated: true
                    type: string
                    format: email
                    description: The email of the share's user
                  issued_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The issued_by ID of the share
                    deprecated: true
                  issued_by:
                    type: object
                    title: User
                    description: The issued_by of the share
                    deprecated: true
                    properties:
                      id:
                        type: integer
                        description: The ID of the user
                      resource_type:
                        type: string
                        description: The resource type of the user
                        const: User
                      email:
                        type: string
                        format: email
                        description: The email of the user.
                      name:
                        type: string
                        description: The name of the user
                    required:
                    - id
                    - resource_type
                    - email
                    - name
                    additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - email
                - notify
                - role_id
                - valid_from
                - valid_until
                - group_id
                - group
                - member_id
                - member
                - place_id
                - user_id
                - user
                - created_by_type
                - created_by_id
                - lock_id
                - apply_to_place
                - role
                - issued_to_id
                - issued_to_email
                - issued_by_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateShare
      summary: Update share
      description: |
        <!-- theme: info -->
        > This API is deprecated.
        > Please read our [documentation](https://docs.kisi.io/api/how_to_guides/manage_access_rights/assign_access_rights/) about how to manage access rights.
      tags:
      - Shares
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Share
              properties:
                share:
                  type: object
                  properties:
                    notify:
                      type:
                      - boolean
                      - 'null'
                      description: Whether an email should be sent when this share
                        is created or updated
                    role_id:
                      type: string
                      enum:
                      - manager
                      - basic
                      default: basic
                      description: The role of the share
                    valid_from:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share starts to be valid at
                    valid_until:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the share stops to be valid at
                  required: []
              required:
              - share
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteShare
      summary: Delete share
      description: |
        <!-- theme: info -->
        > This API is deprecated.
        > Please read our [documentation](https://docs.kisi.io/api/how_to_guides/manage_access_rights/assign_access_rights/) about how to manage access rights.
      tags:
      - Shares
      security:
      - Kisi-Login: []
      - OAuth2: []
      deprecated: true
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/signed_upload_urls":
    post:
      operationId: createSignedUploadURL
      summary: Create signed upload URL
      tags:
      - Signed upload URLs
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Signed Upload URL
              properties:
                signed_upload_url:
                  type: object
                  properties:
                    file_name:
                      type: string
                      description: The name of the file
                    file_type:
                      type: string
                      description: The type of file
                      enum:
                      - image
                      - csv_card_import
                      - csv_user_import
                  required:
                  - file_name
              required:
              - signed_upload_url
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Signed Upload URL
                properties:
                  signed_upload_url:
                    type: string
                    format: uri
                    description: A signed url to upload the file. The file can be
                      uploaded by sending a POST request to this url.
                  file_name:
                    type: string
                    description: The file name.
                required:
                - signed_upload_url
                - file_name
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/team_memberships":
    get:
      operationId: fetchTeamMemberships
      summary: Fetch team memberships
      tags:
      - Team memberships
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: member_type
        in: query
        schema:
          type: string
          enum:
          - User
          - Guest
        description: Filter by member type
      - name: member_id
        in: query
        schema:
          type: integer
        description: Filter by member ID. Must be used with `member_type`
      - name: team_id
        in: query
        schema:
          type: integer
        description: Filter by team ID
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Team Membership
                  properties:
                    id:
                      type: integer
                      description: The ID of the team membership
                    resource_type:
                      type: string
                      description: The resource type of the team membership
                      const: TeamMembership
                    created_at:
                      type: string
                      format: date-time
                      description: When the team membership was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the team membership was updated
                    team_id:
                      type: integer
                      description: The team ID of the team membership
                    team:
                      type: object
                      title: Team
                      description: The team of the team membership
                      properties:
                        id:
                          type: integer
                          description: The ID of the team
                        resource_type:
                          type: string
                          description: The resource type of the team
                          const: Team
                        name:
                          type: string
                          description: The name of the team
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    member_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The member type of the team membership
                    member_id:
                      type: integer
                      description: The member ID of the team membership
                    member:
                      type: object
                      description: The member of the team membership
                      oneOf:
                      - type: object
                        title: User
                        properties:
                          id:
                            type: integer
                            description: The ID of the user
                          resource_type:
                            type: string
                            description: The resource type of the user
                            const: User
                          email:
                            type: string
                            format: email
                            description: The email of the user.
                          name:
                            type: string
                            description: The name of the user
                        required:
                        - id
                        - resource_type
                        - email
                        - name
                        additionalProperties: false
                      - type: object
                        title: Guest
                        properties:
                          id:
                            type: integer
                            description: The ID of the guest
                          resource_type:
                            type: string
                            description: The resource type of the guest
                            const: Guest
                          name:
                            type: string
                            description: The name of the guest
                          email:
                            type:
                            - string
                            - 'null'
                            format: email
                            description: The email of the guest.
                          phone_number:
                            type:
                            - string
                            - 'null'
                            description: 'The phone number of the guest. Only US,
                              Canadian and Puerto Rican numbers in the format +11234567890
                              (E.164) are accepted.

                              '
                        required:
                        - id
                        - resource_type
                        - name
                        - email
                        - phone_number
                        additionalProperties: false
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - team_id
                  - team
                  - member_type
                  - member_id
                  - member
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createTeamMembership
      summary: Create team membership
      tags:
      - Team memberships
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Team Membership
              properties:
                team_membership:
                  type: object
                  properties:
                    team_id:
                      type: integer
                      description: The team ID of the team membership
                    member_id:
                      type: integer
                      description: The member ID of the team membership
                    member_type:
                      type: string
                      enum:
                      - User
                      - Guest
                      description: The member type of the team membership
                  required:
                  - team_id
                  - member_id
                  - member_type
              required:
              - team_membership
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Team Membership
                properties:
                  id:
                    type: integer
                    description: The ID of the team membership
                  resource_type:
                    type: string
                    description: The resource type of the team membership
                    const: TeamMembership
                  created_at:
                    type: string
                    format: date-time
                    description: When the team membership was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the team membership was updated
                  team_id:
                    type: integer
                    description: The team ID of the team membership
                  team:
                    type: object
                    title: Team
                    description: The team of the team membership
                    properties:
                      id:
                        type: integer
                        description: The ID of the team
                      resource_type:
                        type: string
                        description: The resource type of the team
                        const: Team
                      name:
                        type: string
                        description: The name of the team
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  member_type:
                    type: string
                    enum:
                    - User
                    - Guest
                    description: The member type of the team membership
                  member_id:
                    type: integer
                    description: The member ID of the team membership
                  member:
                    type: object
                    description: The member of the team membership
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    - type: object
                      title: Guest
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - team_id
                - team
                - member_type
                - member_id
                - member
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/team_memberships/{id}":
    get:
      operationId: fetchTeamMembership
      summary: Fetch team membership
      tags:
      - Team memberships
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Team Membership
                properties:
                  id:
                    type: integer
                    description: The ID of the team membership
                  resource_type:
                    type: string
                    description: The resource type of the team membership
                    const: TeamMembership
                  created_at:
                    type: string
                    format: date-time
                    description: When the team membership was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the team membership was updated
                  team_id:
                    type: integer
                    description: The team ID of the team membership
                  team:
                    type: object
                    title: Team
                    description: The team of the team membership
                    properties:
                      id:
                        type: integer
                        description: The ID of the team
                      resource_type:
                        type: string
                        description: The resource type of the team
                        const: Team
                      name:
                        type: string
                        description: The name of the team
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  member_type:
                    type: string
                    enum:
                    - User
                    - Guest
                    description: The member type of the team membership
                  member_id:
                    type: integer
                    description: The member ID of the team membership
                  member:
                    type: object
                    description: The member of the team membership
                    oneOf:
                    - type: object
                      title: User
                      properties:
                        id:
                          type: integer
                          description: The ID of the user
                        resource_type:
                          type: string
                          description: The resource type of the user
                          const: User
                        email:
                          type: string
                          format: email
                          description: The email of the user.
                        name:
                          type: string
                          description: The name of the user
                      required:
                      - id
                      - resource_type
                      - email
                      - name
                      additionalProperties: false
                    - type: object
                      title: Guest
                      properties:
                        id:
                          type: integer
                          description: The ID of the guest
                        resource_type:
                          type: string
                          description: The resource type of the guest
                          const: Guest
                        name:
                          type: string
                          description: The name of the guest
                        email:
                          type:
                          - string
                          - 'null'
                          format: email
                          description: The email of the guest.
                        phone_number:
                          type:
                          - string
                          - 'null'
                          description: 'The phone number of the guest. Only US, Canadian
                            and Puerto Rican numbers in the format +11234567890 (E.164)
                            are accepted.

                            '
                      required:
                      - id
                      - resource_type
                      - name
                      - email
                      - phone_number
                      additionalProperties: false
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - team_id
                - team
                - member_type
                - member_id
                - member
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteTeamMembership
      summary: Delete team membership
      tags:
      - Team memberships
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/teams":
    get:
      operationId: fetchTeams
      summary: Fetch teams
      tags:
      - Teams
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      - name: scope
        in: query
        schema:
          type: string
          enum:
          - organization
          - place
        description: Filter by scope
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by team name, alphabetically
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Team
                  properties:
                    id:
                      type: integer
                      description: The ID of the team
                    resource_type:
                      type: string
                      description: The resource type of the team
                      const: Team
                    name:
                      type: string
                      description: The name of the team
                    created_at:
                      type: string
                      format: date-time
                      description: When the team was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the team was updated
                  required:
                  - id
                  - resource_type
                  - name
                  - created_at
                  - updated_at
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createTeam
      summary: Create team
      tags:
      - Teams
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Team
              properties:
                team:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the team
                  required:
                  - name
              required:
              - team
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Team
                properties:
                  id:
                    type: integer
                    description: The ID of the team
                  resource_type:
                    type: string
                    description: The resource type of the team
                    const: Team
                  name:
                    type: string
                    description: The name of the team
                  created_at:
                    type: string
                    format: date-time
                    description: When the team was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the team was updated
                required:
                - id
                - resource_type
                - name
                - created_at
                - updated_at
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/teams/{id}":
    get:
      operationId: fetchTeam
      summary: Fetch team
      tags:
      - Teams
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Team
                properties:
                  id:
                    type: integer
                    description: The ID of the team
                  resource_type:
                    type: string
                    description: The resource type of the team
                    const: Team
                  name:
                    type: string
                    description: The name of the team
                  created_at:
                    type: string
                    format: date-time
                    description: When the team was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the team was updated
                required:
                - id
                - resource_type
                - name
                - created_at
                - updated_at
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateTeam
      summary: Update team
      tags:
      - Teams
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Team
              properties:
                team:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the team
                  required: []
              required:
              - team
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteTeam
      summary: Delete team
      tags:
      - Teams
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/terminals":
    get:
      operationId: fetchTerminals
      summary: Fetch terminals
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: place_id
        in: query
        schema:
          type: integer
        description: Filter by place ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `name`

          '
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Terminal
                  properties:
                    id:
                      type: integer
                      description: The ID of the terminal
                    resource_type:
                      type: string
                      description: The resource type of the terminal
                      const: Terminal
                    created_at:
                      type: string
                      format: date-time
                      description: When the terminal was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the terminal was updated
                    name:
                      type: string
                      description: The name of the terminal
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the terminal
                    place_id:
                      type: integer
                      description: The place ID of the terminal
                    place:
                      type: object
                      title: Place
                      description: The place of the terminal
                      properties:
                        id:
                          type: integer
                          description: The ID of the place
                        resource_type:
                          type: string
                          description: The resource type of the place
                          const: Place
                        name:
                          type: string
                          description: The name of the place
                      required:
                      - id
                      - resource_type
                      - name
                      additionalProperties: false
                    marketplace_installation_id:
                      type:
                      - integer
                      - 'null'
                      description: The marketplace_installation ID of the terminal
                  required:
                  - id
                  - resource_type
                  - created_at
                  - updated_at
                  - name
                  - description
                  - place_id
                  - place
                  - marketplace_installation_id
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createTerminal
      summary: Create terminal
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Terminal
              properties:
                terminal:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the terminal
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the terminal
                    place_id:
                      type: integer
                      description: The place ID of the terminal
                    marketplace_installation_id:
                      type:
                      - integer
                      - 'null'
                      description: The marketplace_installation ID of the terminal
                  required:
                  - name
                  - place_id
              required:
              - terminal
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Terminal
                properties:
                  id:
                    type: integer
                    description: The ID of the terminal
                  resource_type:
                    type: string
                    description: The resource type of the terminal
                    const: Terminal
                  created_at:
                    type: string
                    format: date-time
                    description: When the terminal was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the terminal was updated
                  name:
                    type: string
                    description: The name of the terminal
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the terminal
                  place_id:
                    type: integer
                    description: The place ID of the terminal
                  place:
                    type: object
                    title: Place
                    description: The place of the terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  marketplace_installation_id:
                    type:
                    - integer
                    - 'null'
                    description: The marketplace_installation ID of the terminal
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - name
                - description
                - place_id
                - place
                - marketplace_installation_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/terminals/{id}":
    get:
      operationId: fetchTerminal
      summary: Fetch terminal
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: Terminal
                properties:
                  id:
                    type: integer
                    description: The ID of the terminal
                  resource_type:
                    type: string
                    description: The resource type of the terminal
                    const: Terminal
                  created_at:
                    type: string
                    format: date-time
                    description: When the terminal was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the terminal was updated
                  name:
                    type: string
                    description: The name of the terminal
                  description:
                    type:
                    - string
                    - 'null'
                    description: The description of the terminal
                  place_id:
                    type: integer
                    description: The place ID of the terminal
                  place:
                    type: object
                    title: Place
                    description: The place of the terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the place
                      resource_type:
                        type: string
                        description: The resource type of the place
                        const: Place
                      name:
                        type: string
                        description: The name of the place
                    required:
                    - id
                    - resource_type
                    - name
                    additionalProperties: false
                  marketplace_installation_id:
                    type:
                    - integer
                    - 'null'
                    description: The marketplace_installation ID of the terminal
                required:
                - id
                - resource_type
                - created_at
                - updated_at
                - name
                - description
                - place_id
                - place
                - marketplace_installation_id
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    put:
      operationId: updateTerminal
      summary: Update terminal
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Terminal
              properties:
                terminal:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the terminal
                    description:
                      type:
                      - string
                      - 'null'
                      description: The description of the terminal
                    marketplace_installation_id:
                      type:
                      - integer
                      - 'null'
                      description: The marketplace_installation ID of the terminal
                  required: []
              required:
              - terminal
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteTerminal
      summary: Delete terminal
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/terminals/{id}/trigger":
    post:
      operationId: triggerTerminal
      summary: Trigger terminal
      tags:
      - Terminals
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/users":
    get:
      operationId: fetchUsers
      summary: Fetch users
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: place_id
        in: query
        schema:
          type: integer
        description: 'Filters users that have access to given place.

          '
      - name: email
        in: query
        schema:
          type: string
        description: Filter by email.
      - name: place_id
        in: query
        schema:
          type: integer
        description: 'Filters users that have access to given place.

          '
      - name: group_id
        in: query
        schema:
          type: integer
        description: Filter by group ID
      - name: query
        in: query
        schema:
          type: string
        description: 'Filter by a freetext string. Properties searched: `email`, `name`,
          `notes`

          '
      - name: user_id
        in: query
        schema:
          type:
          - integer
          - string
        description: Filter by user ID or by current user if value is `me`.
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - name
          - "-name"
          - unlock
          - "-unlock"
          - access_enabled
          - "-access_enabled"
        description: |
          Sort the results. Prepend `-` to sort in reverse order.

          `name` - sort by user name, alphabetically<br>
          `unlock` - sort by last unlock; no unlocks first, then oldest to most recent
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 100
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: User
                  properties:
                    id:
                      type: integer
                      description: The ID of the user
                    resource_type:
                      type: string
                      description: The resource type of the user
                      const: User
                    name:
                      type: string
                      description: The name of the user
                    email:
                      type: string
                      format: email
                      description: The email of the user.
                    created_at:
                      type: string
                      format: date-time
                      description: When the user was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the user was updated
                    metadata:
                      type: object
                      description: |
                        The metadata for the user.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The url to the image of the user.
                    otp_required_for_login:
                      type: boolean
                      description: Whether OTP/2FA is required for login.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the user can login with password flow.
                        Only relevant for organizations.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the user is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    last_accessed_at:
                      type:
                      - string
                      - 'null'
                      format: date-time
                      description: When the user last accessed a door.
                    scim_access_enabled:
                      type: boolean
                      description: |
                        Whether the user is allowed to access locks and elevators.

                        This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                        It will always be set to `true` if the user is not managed by SCIM.
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the user.
                    organization_id:
                      type: integer
                      description: The organization ID of the user
                    confirmed:
                      deprecated: true
                      type: boolean
                    groups_count:
                      deprecated: true
                      type: integer
                  required:
                  - id
                  - resource_type
                  - name
                  - email
                  - created_at
                  - updated_at
                  - metadata
                  - image
                  - otp_required_for_login
                  - password_flow_enabled
                  - access_enabled
                  - last_accessed_at
                  - scim_access_enabled
                  - notes
                  - organization_id
                  - confirmed
                  - groups_count
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    post:
      operationId: createUser
      summary: Create user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the user
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The url to the image of the user.
                    send_emails:
                      type: boolean
                      description: Whether the user should receive emails. Can only
                        be specified for organization users.
                    confirm:
                      type: boolean
                      description: |
                        Whether the user's corresponding user should be auto-confirmed on creation.
                        Can only be specified for organization users.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the user is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the user can login with password flow.
                        Only relevant for organizations.
                    metadata:
                      type: object
                      description: |
                        The metadata for the user.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the user.
                    email:
                      type: string
                      format: email
                      description: The email of the user.
                  required:
                  - email
              required:
              - user
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  id:
                    type: integer
                    description: The ID of the user
                  resource_type:
                    type: string
                    description: The resource type of the user
                    const: User
                  name:
                    type: string
                    description: The name of the user
                  email:
                    type: string
                    format: email
                    description: The email of the user.
                  created_at:
                    type: string
                    format: date-time
                    description: When the user was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the user was updated
                  metadata:
                    type: object
                    description: |
                      The metadata for the user.
                      - Only basic types are allowed: string, null, integer, float, boolean.
                      - Keys have a limit of 50 characters.
                      - Values have a limit of 500 characters.
                      - Keys number is limited to 50.
                  image:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The url to the image of the user.
                  otp_required_for_login:
                    type: boolean
                    description: Whether OTP/2FA is required for login.
                  password_flow_enabled:
                    type: boolean
                    description: Whether the user can login with password flow. Only
                      relevant for organizations.
                  access_enabled:
                    type: boolean
                    description: |
                      Whether the user is allowed to access locks and elevators.

                      If the user is managed by SCIM, user access will be disabled
                      unless *both* the `access_enabled` field and
                      `scim_access_enabled` fields are set to `true`.
                  last_accessed_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the user last accessed a door.
                  scim_access_enabled:
                    type: boolean
                    description: |
                      Whether the user is allowed to access locks and elevators.

                      This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                      It will always be set to `true` if the user is not managed by SCIM.
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the user.
                  organization_id:
                    type: integer
                    description: The organization ID of the user
                  confirmed:
                    deprecated: true
                    type: boolean
                  groups_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - email
                - created_at
                - updated_at
                - metadata
                - image
                - otp_required_for_login
                - password_flow_enabled
                - access_enabled
                - last_accessed_at
                - scim_access_enabled
                - notes
                - organization_id
                - confirmed
                - groups_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/users/{id}":
    get:
      operationId: fetchUser
      summary: Fetch user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  id:
                    type: integer
                    description: The ID of the user
                  resource_type:
                    type: string
                    description: The resource type of the user
                    const: User
                  name:
                    type: string
                    description: The name of the user
                  email:
                    type: string
                    format: email
                    description: The email of the user.
                  created_at:
                    type: string
                    format: date-time
                    description: When the user was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the user was updated
                  metadata:
                    type: object
                    description: |
                      The metadata for the user.
                      - Only basic types are allowed: string, null, integer, float, boolean.
                      - Keys have a limit of 50 characters.
                      - Values have a limit of 500 characters.
                      - Keys number is limited to 50.
                  image:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The url to the image of the user.
                  otp_required_for_login:
                    type: boolean
                    description: Whether OTP/2FA is required for login.
                  password_flow_enabled:
                    type: boolean
                    description: Whether the user can login with password flow. Only
                      relevant for organizations.
                  access_enabled:
                    type: boolean
                    description: |
                      Whether the user is allowed to access locks and elevators.

                      If the user is managed by SCIM, user access will be disabled
                      unless *both* the `access_enabled` field and
                      `scim_access_enabled` fields are set to `true`.
                  last_accessed_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When the user last accessed a door.
                  scim_access_enabled:
                    type: boolean
                    description: |
                      Whether the user is allowed to access locks and elevators.

                      This field is read-only and can only be managed using SCIM. (See `access_enabled`)

                      It will always be set to `true` if the user is not managed by SCIM.
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the user.
                  organization_id:
                    type: integer
                    description: The organization ID of the user
                  confirmed:
                    deprecated: true
                    type: boolean
                  groups_count:
                    deprecated: true
                    type: integer
                required:
                - id
                - resource_type
                - name
                - email
                - created_at
                - updated_at
                - metadata
                - image
                - otp_required_for_login
                - password_flow_enabled
                - access_enabled
                - last_accessed_at
                - scim_access_enabled
                - notes
                - organization_id
                - confirmed
                - groups_count
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateUser
      summary: Update user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the user
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The url to the image of the user.
                    access_enabled:
                      type: boolean
                      description: |
                        Whether the user is allowed to access locks and elevators.

                        If the user is managed by SCIM, user access will be disabled
                        unless *both* the `access_enabled` field and
                        `scim_access_enabled` fields are set to `true`.
                    password_flow_enabled:
                      type: boolean
                      description: Whether the user can login with password flow.
                        Only relevant for organizations.
                    metadata:
                      type: object
                      description: |
                        The metadata for the user.
                        - Only basic types are allowed: string, null, integer, float, boolean.
                        - Keys have a limit of 50 characters.
                        - Values have a limit of 500 characters.
                        - Keys number is limited to 50.
                    notes:
                      type:
                      - string
                      - 'null'
                      description: The notes for the user.
                  required: []
              required:
              - user
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    delete:
      operationId: deleteUser
      summary: Delete user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: id
        in: path
        schema:
          type: integer
        required: true
        description: The ID of the object
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/user":
    get:
      operationId: fetchCurrentUser
      summary: Fetch current user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  id:
                    type: integer
                    description: The ID of the user
                  resource_type:
                    type: string
                    description: The resource type of the user
                    const: User
                  name:
                    type: string
                    description: The name of the user
                  email:
                    type: string
                    format: email
                    description: The email of the user.
                  image:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The url to the image of the user.
                  locale:
                    enum:
                    - en
                    - fr
                    - es
                    - de
                    -
                    type:
                    - string
                    - 'null'
                    description: The preferred language of the user
                  notifications_unread_count:
                    type: integer
                    minimum: 0
                    description: The count of unread notifications.
                  otp_required_for_login:
                    type: boolean
                    description: Whether OTP/2FA is required for login.
                  otp_enabled_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When was the OTP/2FA enabled.
                  primary_login_exists:
                    type: boolean
                    description: Whether the user has a primary login.
                  created_at:
                    type: string
                    format: date-time
                    description: When the user was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the user was updated
                  announcements_last_seen_at:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                    format: date-time
                  last_read_at:
                    type:
                    - object
                    - 'null'
                    maxProperties: 50
                    additionalProperties:
                      type: string
                      format: date-time
                    description: When the user read various notifications. At most
                      50 fields can be stored.
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the user.
                  organization_id:
                    type: integer
                    description: The organization ID of the user
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the user
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - resource_type
                - name
                - email
                - image
                - locale
                - notifications_unread_count
                - otp_required_for_login
                - otp_enabled_at
                - primary_login_exists
                - created_at
                - updated_at
                - announcements_last_seen_at
                - last_read_at
                - notes
                - organization_id
                - organization
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
    patch:
      operationId: updateCurrentUser
      summary: Update current user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    name:
                      type: string
                      description: The name of the user
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The url to the image of the user.
                    last_read_at:
                      type:
                      - object
                      - 'null'
                      maxProperties: 50
                      additionalProperties:
                        type: string
                        format: date-time
                      description: When the user read various notifications. At most
                        50 fields can be stored.
                    announcements_last_seen_at:
                      deprecated: true
                      type:
                      - string
                      - 'null'
                      format: date-time
                    locale:
                      enum:
                      - en
                      - fr
                      - es
                      - de
                      -
                      type:
                      - string
                      - 'null'
                      description: The preferred language of the user
                    current_password:
                      type: string
                      description: The current password of the user. Required when
                        updating password.
                      minLength: 8
                      maxLength: 128
                    password:
                      type: string
                      minLength: 8
                      maxLength: 128
                      description: |
                        The new password of the user. Required when updating password.
                        Users of organizations with sso flow enabled won't be able to update this field.
                    password_confirmation:
                      type: string
                      minLength: 8
                      maxLength: 128
                      description: The confirmation of the new password.
                  required: []
              required:
              - user
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
    delete:
      operationId: deleteCurrentUser
      summary: Delete current user
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/user/2fa/otp_secret":
    post:
      operationId: fetchOTP
      summary: Fetch user OTP secret
      description: |
        Organization users will be able to access this endpoint only if their organization has sso flow disabled.

        Requires additional `Basic` authorization. Check [Authentication section](#section/Setup/Authentication) for the details.
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  otp_secret:
                    type: string
                    description: The OTP secret.
                  uri:
                    type: string
                    format: uri
                    description: The OTP provisioning url. Used as a source for QR
                      code.
                    example: otpauth://totp/Kisi:example.com?secret=otp_secret&issuer=Kisi
                required: []
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/user/2fa/activate":
    post:
      operationId: activate2fa
      summary: Activate 2FA for user
      description: |
        Organization users will be able to access this endpoint only if their organization has sso flow disabled.

        Requires additional `Basic` authorization. Check [Authentication section](#section/Setup/Authentication) for the details.
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    otp_attempt:
                      type: integer
                      pattern: "^d{6}$"
                      description: The token provided in reset password email.
                  required:
                  - otp_attempt
              required:
              - user
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/user/2fa/deactivate":
    post:
      operationId: deactivate2fa
      summary: Deactivate 2FA for user
      description: |
        Organization users will be able to access this endpoint only if their organization has sso flow disabled.

        Requires additional `Basic` authorization. Check [Authentication section](#section/Setup/Authentication) for the details.
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    otp_attempt:
                      type: integer
                      pattern: "^d{6}$"
                      description: The token provided in reset password email.
                  required:
                  - otp_attempt
              required:
              - user
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/user/2fa/backup_codes":
    post:
      operationId: fetchBackupCodes
      summary: Fetch 2FA backup codes
      description: |
        Organization users will be able to access this endpoint only if their organization has sso flow disabled.

        Requires additional `Basic` authorization. Check [Authentication section](#section/Setup/Authentication) for the details.
      tags:
      - Users
      security:
      - Kisi-Login: []
      - OAuth2: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  backup_codes:
                    type: array
                    items:
                      type: string
                      pattern: "^[a-z0-9]{6}$"
                    description: The backup codes for 2fa authentication.
                required: []
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
  "/users/password":
    post:
      operationId: requestPasswordReset
      summary: Request password reset
      description: |
        Organization users will be able to access this endpoint only
        if their organization has sso flow disabled.
      tags:
      - Users
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    email:
                      type: string
                      format: email
                      description: The email of the user.
                    domain:
                      type: string
                      description: The domain of the organization.
                  required:
                  - email
                  - domain
              required:
              - user
      responses:
        '204':
          description: No Content
    patch:
      operationId: passwordReset
      summary: Reset password
      description: |
        Organization users will be able to access this endpoint only
        if their organization has sso flow disabled.
      tags:
      - Users
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  properties:
                    password:
                      type: string
                      description: The new password.
                      minLength: 8
                      maxLength: 128
                    password_confirmation:
                      type: string
                      description: The confirmation of the new password.
                      minLength: 8
                      maxLength: 128
                    reset_password_token:
                      type: string
                      description: The token provided in reset password email.
                  required:
                  - password
                  - password_confirmation
                  - reset_password_token
              required:
              - user
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/users/sign_up":
    post:
      operationId: signUpUser
      summary: Register user
      tags:
      - Users
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: User
              properties:
                user:
                  type: object
                  title: User
                  properties:
                    name:
                      type: string
                      description: The name of the user
                    image:
                      type:
                      - string
                      - 'null'
                      format: uri
                      description: The url to the image of the user.
                    password:
                      type: string
                      minLength: 8
                      maxLength: 128
                      description: The password of the user.
                    terms_and_conditions:
                      type: boolean
                      description: Whether the user accepted the terms and conditions.
                  required:
                  - password
                  - terms_and_conditions
                  additionalProperties: false
                token:
                  type: string
                  format: jwt
                  description: The authentication token. If provided, the user email
                    is not required.
              required:
              - user
              - token
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                title: User
                properties:
                  id:
                    type: integer
                    description: The ID of the user
                  resource_type:
                    type: string
                    description: The resource type of the user
                    const: User
                  name:
                    type: string
                    description: The name of the user
                  email:
                    type: string
                    format: email
                    description: The email of the user.
                  image:
                    type:
                    - string
                    - 'null'
                    format: uri
                    description: The url to the image of the user.
                  locale:
                    enum:
                    - en
                    - fr
                    - es
                    - de
                    -
                    type:
                    - string
                    - 'null'
                    description: The preferred language of the user
                  notifications_unread_count:
                    type: integer
                    minimum: 0
                    description: The count of unread notifications.
                  otp_required_for_login:
                    type: boolean
                    description: Whether OTP/2FA is required for login.
                  otp_enabled_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: When was the OTP/2FA enabled.
                  primary_login_exists:
                    type: boolean
                    description: Whether the user has a primary login.
                  created_at:
                    type: string
                    format: date-time
                    description: When the user was created
                  updated_at:
                    type: string
                    format: date-time
                    description: When the user was updated
                  announcements_last_seen_at:
                    deprecated: true
                    type:
                    - string
                    - 'null'
                    format: date-time
                  last_read_at:
                    type:
                    - object
                    - 'null'
                    maxProperties: 50
                    additionalProperties:
                      type: string
                      format: date-time
                    description: When the user read various notifications. At most
                      50 fields can be stored.
                  notes:
                    type:
                    - string
                    - 'null'
                    description: The notes for the user.
                  organization_id:
                    type: integer
                    description: The organization ID of the user
                  organization:
                    type: object
                    title: Organization
                    description: The organization of the user
                    properties:
                      id:
                        type: integer
                        description: The ID of the organization
                      resource_type:
                        type: string
                        description: The resource type of the organization
                        const: Organization
                      name:
                        type: string
                        description: The name of the organization
                      domain:
                        type: string
                        description: The domain of the organization.
                    required:
                    - id
                    - resource_type
                    - name
                    - domain
                    additionalProperties: false
                required:
                - id
                - resource_type
                - name
                - email
                - image
                - locale
                - notifications_unread_count
                - otp_required_for_login
                - otp_enabled_at
                - primary_login_exists
                - created_at
                - updated_at
                - announcements_last_seen_at
                - last_read_at
                - notes
                - organization_id
                - organization
                additionalProperties: false
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Errors"
  "/wireless_locks":
    get:
      operationId: fetchWirelessLocks
      summary: Fetch wireless locks
      tags:
      - Wireless locks
      security:
      - Kisi-Login: []
      - OAuth2: []
      parameters:
      - name: ids
        in: query
        schema:
          type: string
        description: Filter by object IDs
      - name: lock_id
        in: query
        schema:
          type: integer
        description: Filter by lock ID
      - name: controller_id
        in: query
        schema:
          type: integer
        description: Filter by controller ID
      - name: gateway_id
        in: query
        schema:
          type: integer
        description: Filter by gateway ID
        deprecated: true
      - name: limit
        in: query
        schema:
          type: integer
          default: 10
          maximum: 250
        description: The number of objects to return
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          maximum: 20000
        description: The number of objects to offset
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  title: Wireless Lock
                  properties:
                    id:
                      type: integer
                      description: The ID of the wireless lock
                    name:
                      type: string
                      description: The name of the wireless lock
                    online:
                      type:
                      - boolean
                      - 'null'
                      description: Whether the wireless lock is online
                    model:
                      type: string
                      const: NDE
                      description: The model of the wireless lock
                    address:
                      type: string
                      description: The address of the wireless lock
                    firmware_version:
                      type: string
                      description: The firmware version of the wireless lock
                    serial_number:
                      type: string
                    battery_level:
                      type: string
                    motor_stall:
                      type: boolean
                      description: Whether the wireless lock has a motor stall
                    loss_of_rf:
                      type: boolean
                      description: Whether the wireless lock has a loss of RF
                    loss_of_rs485:
                      type: boolean
                      description: Whether the wireless lock has a loss of RS485
                    unlocked:
                      type: boolean
                      description: Whether the wireless lock is unlocked
                    opened:
                      type: boolean
                      description: Whether the wireless lock is opened
                    created_at:
                      type: string
                      format: date-time
                      description: When the wireless lock was created
                    updated_at:
                      type: string
                      format: date-time
                      description: When the wireless lock was updated
                    channel:
                      type: integer
                      description: The channel of the wireless lock
                    controller_id:
                      type: integer
                      description: The controller ID of the wireless lock
                    controller:
                      type: object
                      title: Controller
                      description: The controller of the wireless lock
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller
                        name:
                          type: string
                          description: The name of the controller
                        online:
                          type: boolean
                          description: Whether the controller is online
                      required:
                      - id
                      - name
                      - online
                      additionalProperties: false
                    wireless_lock_connection_id:
                      type:
                      - integer
                      - 'null'
                      description: The wireless_lock_connection ID of the wireless
                        lock
                    lock_id:
                      deprecated: true
                      type:
                      - integer
                      - 'null'
                      description: The ID of the lock
                    gateway_id:
                      type: integer
                      description: The gateway ID of the wireless lock
                      deprecated: true
                    gateway:
                      type: object
                      title: Controller
                      description: The gateway of the wireless lock
                      deprecated: true
                      properties:
                        id:
                          type: integer
                          description: The ID of the controller
                        name:
                          type: string
                          description: The name of the controller
                        online:
                          type: boolean
                          description: Whether the controller is online
                      required:
                      - id
                      - name
                      - online
                      additionalProperties: false
                  required:
                  - id
                  - name
                  - online
                  - model
                  - address
                  - firmware_version
                  - serial_number
                  - battery_level
                  - motor_stall
                  - loss_of_rf
                  - loss_of_rs485
                  - unlocked
                  - opened
                  - created_at
                  - updated_at
                  - channel
                  - controller_id
                  - controller
                  - wireless_lock_connection_id
                  - lock_id
                  - gateway_id
                  - gateway
                  additionalProperties: false
          headers:
            X-Collection-Range:
              description: |
                Pagination information for offset based pagination. `start-end` represents the range
                of items requested. `total` represents the total count of items. If there is a total
                of 15 items and an offset of 10 and limit of 10 is used, the resulting header is:
                `10-19/15`.
              schema:
                type: string
                pattern: "^(?<start>\\d+)-(?<end>\\d+)/(?<total>\\d+)$"
              example: 0-9/200
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/Error"
webhooks:
  Event:
    post:
      description: 'Sent to the event webhook URL when a matching event occurs in
        the organization.

        '
      requestBody:
        content:
          application/json:
            schema:
              type: object
              oneOf:
              - type: object
                title: access_key.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: access_key.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Access Key
                    properties:
                      id:
                        type: integer
                        description: The ID of the access key
                      resource_type:
                        type: string
                        description: The resource type of the access key
                        const: AccessKey
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the access key was last used.
                      link_enabled:
                        type: boolean
                        default: true
                        description: Will generate a link that can be used for access.
                      qr_code_enabled:
                        type: boolean
                        default: false
                        description: Will generate a QR code that can be used for
                          access.
                      created_at:
                        type: string
                        format: date-time
                        description: When the access key was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the access key was updated
                      guest_id:
                        type: integer
                        description: The guest ID of the access key
                    required:
                    - id
                    - resource_type
                    - last_used_at
                    - link_enabled
                    - qr_code_enabled
                    - created_at
                    - updated_at
                    - guest_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: access_key.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: access_key.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Access Key
                    properties:
                      id:
                        type: integer
                        description: The ID of the access key
                      resource_type:
                        type: string
                        description: The resource type of the access key
                        const: AccessKey
                      last_used_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the access key was last used.
                      link_enabled:
                        type: boolean
                        default: true
                        description: Will generate a link that can be used for access.
                      qr_code_enabled:
                        type: boolean
                        default: false
                        description: Will generate a QR code that can be used for
                          access.
                      created_at:
                        type: string
                        format: date-time
                        description: When the access key was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the access key was updated
                      guest_id:
                        type: integer
                        description: The guest ID of the access key
                    required:
                    - id
                    - resource_type
                    - last_used_at
                    - link_enabled
                    - qr_code_enabled
                    - created_at
                    - updated_at
                    - guest_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: amenity.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: amenity.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: amenity.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: amenity.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: amenity.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: amenity.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: apple_pass.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: apple_pass.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: apple_pass_instance.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: apple_pass_instance.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: apple_pass_instance.resume
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: apple_pass_instance.resume
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: apple_pass_instance.suspend
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: apple_pass_instance.suspend
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: beacon.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: beacon.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: booking.cancel
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: booking.cancel
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: booking.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: booking.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera.import
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera.import
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera.rate_limited
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera.rate_limited
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera_snapshot_set.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera_snapshot_set.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: camera.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: camera.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.activate_with_token
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.activate_with_token
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.activate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.activate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.assign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.assign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.deactivate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.deactivate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.deassign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.deassign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: card.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: card.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: communication_policy.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: communication_policy.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Communication Policy
                    properties:
                      id:
                        type: integer
                        description: The ID of the communication policy
                      resource_type:
                        type: string
                        description: The resource type of the communication policy
                        const: CommunicationPolicy
                      created_at:
                        type: string
                        format: date-time
                        description: When the communication policy was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the communication policy was updated
                      send_incident_alert_emails:
                        type: boolean
                        description: Whether incident alert emails are enabled for
                          the organization.
                      send_access_assignment_emails:
                        type: boolean
                        description: Whether access assignment emails are enabled
                          for the organization.
                      send_report_emails:
                        type: boolean
                        description: Whether report emails are enabled for the organization.
                      send_credential_assignment_emails:
                        type: boolean
                        description: Whether credential assignment emails are enabled
                          for the organization.
                      send_account_security_emails:
                        type: boolean
                        description: Whether account security emails are enabled for
                          the organization.
                      organization_id:
                        type: integer
                        description: The organization ID of the communication policy
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - send_incident_alert_emails
                    - send_access_assignment_emails
                    - send_report_emails
                    - send_credential_assignment_emails
                    - send_account_security_emails
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.assign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.assign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.deassign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.deassign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input.closed
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input.closed
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input_connection.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input_connection.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input_connection.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input_connection.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input_connection.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input_connection.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input.opened
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input.opened
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input.tamper
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input.tamper
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_input.triggered
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_input.triggered
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.reboot
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.reboot
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_relay_connection.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_relay_connection.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_relay_connection.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_relay_connection.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_relay_connection.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_relay_connection.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.tamper
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.tamper
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.wiegand_board_connect
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.wiegand_board_connect
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller.wiegand_board_disconnect
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller.wiegand_board_disconnect
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_wiegand_connection.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_wiegand_connection.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_wiegand_connection.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_wiegand_connection.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_wiegand_connection.excessive_pin_attempts
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_wiegand_connection.excessive_pin_attempts
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: controller_wiegand_connection.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: controller_wiegand_connection.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: csv_card_import.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: csv_card_import.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Csv Card Import
                    properties:
                      id:
                        type: integer
                        description: The ID of the csv import
                      name:
                        type: string
                        description: The name of the csv import
                      created_at:
                        type: string
                        format: date-time
                        description: When the csv import was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the csv import was updated
                      import_errors:
                        type: object
                        description: Imported errors.
                      file_name:
                        type: string
                        description: |
                          The name of the CSV file. The file can be uploaded by first using the
                          <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                          to generate a signed URL and then using the URL to upload the file."
                      status:
                        type: string
                        enum:
                        - waiting
                        - in_progress
                        - finished
                        - failed
                        description: The status of the import.
                      organization_id:
                        type:
                        - integer
                        - 'null'
                        description: The organization ID of the csv import
                    required:
                    - id
                    - name
                    - created_at
                    - updated_at
                    - import_errors
                    - file_name
                    - status
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: csv_user_import.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: csv_user_import.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Csv User Import
                    properties:
                      id:
                        type: integer
                        description: The ID of the csv import
                      name:
                        type: string
                        description: The name of the csv import
                      created_at:
                        type: string
                        format: date-time
                        description: When the csv import was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the csv import was updated
                      import_errors:
                        type: object
                        description: Imported errors.
                      file_name:
                        type: string
                        description: |
                          The name of the CSV file. The file can be uploaded by first using the
                          <a href="/operations/createSignedUploadURL">Signed upload url endpoint</a>
                          to generate a signed URL and then using the URL to upload the file."
                      status:
                        type: string
                        enum:
                        - waiting
                        - in_progress
                        - finished
                        - failed
                        description: The status of the import.
                      organization_id:
                        type:
                        - integer
                        - 'null'
                        description: The organization ID of the csv import
                    required:
                    - id
                    - name
                    - created_at
                    - updated_at
                    - import_errors
                    - file_name
                    - status
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: custom_role.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: custom_role.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Custom Role
                    properties:
                      id:
                        type: integer
                        description: The ID of the custom role
                      resource_type:
                        type: string
                        description: The resource type of the custom role
                        const: CustomRole
                      name:
                        type: string
                        description: The name of the custom role
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the custom role
                      applies_to:
                        type: string
                        enum:
                        - Organization
                        - Place
                        - Group
                      permission_list:
                        type: array
                        items:
                          type: string
                      created_at:
                        type: string
                        format: date-time
                        description: When the custom role was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the custom role was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - applies_to
                    - permission_list
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: custom_role.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: custom_role.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Custom Role
                    properties:
                      id:
                        type: integer
                        description: The ID of the custom role
                      resource_type:
                        type: string
                        description: The resource type of the custom role
                        const: CustomRole
                      name:
                        type: string
                        description: The name of the custom role
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the custom role
                      applies_to:
                        type: string
                        enum:
                        - Organization
                        - Place
                        - Group
                      permission_list:
                        type: array
                        items:
                          type: string
                      created_at:
                        type: string
                        format: date-time
                        description: When the custom role was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the custom role was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - applies_to
                    - permission_list
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: custom_role.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: custom_role.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Custom Role
                    properties:
                      id:
                        type: integer
                        description: The ID of the custom role
                      resource_type:
                        type: string
                        description: The resource type of the custom role
                        const: CustomRole
                      name:
                        type: string
                        description: The name of the custom role
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the custom role
                      applies_to:
                        type: string
                        enum:
                        - Organization
                        - Place
                        - Group
                      permission_list:
                        type: array
                        items:
                          type: string
                      created_at:
                        type: string
                        format: date-time
                        description: When the custom role was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the custom role was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - applies_to
                    - permission_list
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the elevator
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator was updated
                      place_id:
                        type: integer
                        description: The place ID of the elevator
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the elevator
                      elevator_stops_count:
                        deprecated: true
                        type: integer
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - place_id
                    - integration_id
                    - elevator_stops_count
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the elevator
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator was updated
                      place_id:
                        type: integer
                        description: The place ID of the elevator
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the elevator
                      elevator_stops_count:
                        deprecated: true
                        type: integer
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - place_id
                    - integration_id
                    - elevator_stops_count
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator.permit
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator.permit
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.cancel_lockdown
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.cancel_lockdown
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator Stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator stop
                      resource_type:
                        type: string
                        description: The resource type of the elevator stop
                        const: ElevatorStop
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was updated
                      name:
                        type: string
                        description: The name of the elevator stop
                      locked_down:
                        type: boolean
                        description: 'Whether the elevator stop is currently locked
                          down. When locked down the elevator stop is locked for everyone

                          '
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the elevator stop has been locked
                          down

                          '
                      on_scheduled_permit:
                        type: boolean
                        description: If the elevator stop is on a scheduled unlock
                      permitted:
                        type: boolean
                        description: Whether the elevator stop is currently permitted
                      time_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether the elevator stop is time restricted.
                          Time restriction enforces that users may only permit at
                          specific hours

                          '
                      elevator_id:
                        type: integer
                        description: The elevator ID of the elevator stop
                      floor_id:
                        type: integer
                        description: The floor ID of the elevator stop
                      place_id:
                        type: integer
                        description: The place ID of the elevator stop
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - locked_down
                    - locked_down_since
                    - on_scheduled_permit
                    - permitted
                    - time_restriction_enabled
                    - elevator_id
                    - floor_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator Stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator stop
                      resource_type:
                        type: string
                        description: The resource type of the elevator stop
                        const: ElevatorStop
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was updated
                      name:
                        type: string
                        description: The name of the elevator stop
                      locked_down:
                        type: boolean
                        description: 'Whether the elevator stop is currently locked
                          down. When locked down the elevator stop is locked for everyone

                          '
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the elevator stop has been locked
                          down

                          '
                      on_scheduled_permit:
                        type: boolean
                        description: If the elevator stop is on a scheduled unlock
                      permitted:
                        type: boolean
                        description: Whether the elevator stop is currently permitted
                      time_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether the elevator stop is time restricted.
                          Time restriction enforces that users may only permit at
                          specific hours

                          '
                      elevator_id:
                        type: integer
                        description: The elevator ID of the elevator stop
                      floor_id:
                        type: integer
                        description: The floor ID of the elevator stop
                      place_id:
                        type: integer
                        description: The place ID of the elevator stop
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - locked_down
                    - locked_down_since
                    - on_scheduled_permit
                    - permitted
                    - time_restriction_enabled
                    - elevator_id
                    - floor_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.lock_down
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.lock_down
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.scheduled_permit_ended
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.scheduled_permit_ended
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.scheduled_permit_started
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.scheduled_permit_started
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator_stop.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator_stop.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator Stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator stop
                      resource_type:
                        type: string
                        description: The resource type of the elevator stop
                        const: ElevatorStop
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator stop was updated
                      name:
                        type: string
                        description: The name of the elevator stop
                      locked_down:
                        type: boolean
                        description: 'Whether the elevator stop is currently locked
                          down. When locked down the elevator stop is locked for everyone

                          '
                      locked_down_since:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: 'Since when the elevator stop has been locked
                          down

                          '
                      on_scheduled_permit:
                        type: boolean
                        description: If the elevator stop is on a scheduled unlock
                      permitted:
                        type: boolean
                        description: Whether the elevator stop is currently permitted
                      time_restriction_enabled:
                        type:
                        - boolean
                        - 'null'
                        description: 'Whether the elevator stop is time restricted.
                          Time restriction enforces that users may only permit at
                          specific hours

                          '
                      elevator_id:
                        type: integer
                        description: The elevator ID of the elevator stop
                      floor_id:
                        type: integer
                        description: The floor ID of the elevator stop
                      place_id:
                        type: integer
                        description: The place ID of the elevator stop
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - locked_down
                    - locked_down_since
                    - on_scheduled_permit
                    - permitted
                    - time_restriction_enabled
                    - elevator_id
                    - floor_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: elevator.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: elevator.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Elevator
                    properties:
                      id:
                        type: integer
                        description: The ID of the elevator
                      resource_type:
                        type: string
                        description: The resource type of the elevator
                        const: Elevator
                      name:
                        type: string
                        description: The name of the elevator
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the elevator
                      created_at:
                        type: string
                        format: date-time
                        description: When the elevator was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the elevator was updated
                      place_id:
                        type: integer
                        description: The place ID of the elevator
                      integration_id:
                        type:
                        - integer
                        - 'null'
                        description: The integration ID of the elevator
                      elevator_stops_count:
                        deprecated: true
                        type: integer
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - created_at
                    - updated_at
                    - place_id
                    - integration_id
                    - elevator_stops_count
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: event_retention_policy.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: event_retention_policy.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Event Retention Policy
                    properties:
                      id:
                        type: integer
                        description: The ID of the event retention policy
                      resource_type:
                        type: string
                        description: The resource type of the event retention policy
                        const: EventRetentionPolicy
                      name:
                        type: string
                        description: The name of the policy
                      enabled:
                        type: boolean
                        description: Whether the event retention policy is enabled
                      action:
                        type: string
                        enum:
                        - anonymize
                        - delete
                        description: The action that should be taken on the events
                      retention:
                        type: string
                        format: duration
                        description: Events older than this are affected by the policy.
                          Formatted as an ISO8601 duration.
                        examples:
                        - P30D
                        - P1M
                      priority:
                        type: integer
                        description: What priority the policy has if multiple overlap
                      event_type:
                        type:
                        - string
                        - 'null'
                        description: The event's type the event retention policy should
                          check
                      event_actor_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_actor_type:
                        type:
                        - string
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_authenticated_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's authenticated by ID the event retention
                          policy should check
                      event_authenticated_by_type:
                        type:
                        - string
                        - 'null'
                        description: The event's authenticated by type the event retention
                          policy should check
                      event_object_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's object ID the event retention policy
                          should check
                      event_object_type:
                        type:
                        - integer
                        - 'null'
                        description: The event's object type the event retention policy
                          should check
                      event_place_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's place ID the event retention policy
                          should check
                      event_success:
                        type:
                        - boolean
                        - 'null'
                        description: The event's success the event retention policy
                          should check
                      created_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was updated
                      organization_id:
                        type: integer
                        description: The organization ID of the event retention policy
                    required:
                    - id
                    - resource_type
                    - name
                    - enabled
                    - action
                    - retention
                    - priority
                    - event_type
                    - event_actor_id
                    - event_actor_type
                    - event_authenticated_by_id
                    - event_authenticated_by_type
                    - event_object_id
                    - event_object_type
                    - event_place_id
                    - event_success
                    - created_at
                    - updated_at
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: event_retention_policy.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: event_retention_policy.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Event Retention Policy
                    properties:
                      id:
                        type: integer
                        description: The ID of the event retention policy
                      resource_type:
                        type: string
                        description: The resource type of the event retention policy
                        const: EventRetentionPolicy
                      name:
                        type: string
                        description: The name of the policy
                      enabled:
                        type: boolean
                        description: Whether the event retention policy is enabled
                      action:
                        type: string
                        enum:
                        - anonymize
                        - delete
                        description: The action that should be taken on the events
                      retention:
                        type: string
                        format: duration
                        description: Events older than this are affected by the policy.
                          Formatted as an ISO8601 duration.
                        examples:
                        - P30D
                        - P1M
                      priority:
                        type: integer
                        description: What priority the policy has if multiple overlap
                      event_type:
                        type:
                        - string
                        - 'null'
                        description: The event's type the event retention policy should
                          check
                      event_actor_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_actor_type:
                        type:
                        - string
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_authenticated_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's authenticated by ID the event retention
                          policy should check
                      event_authenticated_by_type:
                        type:
                        - string
                        - 'null'
                        description: The event's authenticated by type the event retention
                          policy should check
                      event_object_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's object ID the event retention policy
                          should check
                      event_object_type:
                        type:
                        - integer
                        - 'null'
                        description: The event's object type the event retention policy
                          should check
                      event_place_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's place ID the event retention policy
                          should check
                      event_success:
                        type:
                        - boolean
                        - 'null'
                        description: The event's success the event retention policy
                          should check
                      created_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was updated
                      organization_id:
                        type: integer
                        description: The organization ID of the event retention policy
                    required:
                    - id
                    - resource_type
                    - name
                    - enabled
                    - action
                    - retention
                    - priority
                    - event_type
                    - event_actor_id
                    - event_actor_type
                    - event_authenticated_by_id
                    - event_authenticated_by_type
                    - event_object_id
                    - event_object_type
                    - event_place_id
                    - event_success
                    - created_at
                    - updated_at
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: event_retention_policy.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: event_retention_policy.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Event Retention Policy
                    properties:
                      id:
                        type: integer
                        description: The ID of the event retention policy
                      resource_type:
                        type: string
                        description: The resource type of the event retention policy
                        const: EventRetentionPolicy
                      name:
                        type: string
                        description: The name of the policy
                      enabled:
                        type: boolean
                        description: Whether the event retention policy is enabled
                      action:
                        type: string
                        enum:
                        - anonymize
                        - delete
                        description: The action that should be taken on the events
                      retention:
                        type: string
                        format: duration
                        description: Events older than this are affected by the policy.
                          Formatted as an ISO8601 duration.
                        examples:
                        - P30D
                        - P1M
                      priority:
                        type: integer
                        description: What priority the policy has if multiple overlap
                      event_type:
                        type:
                        - string
                        - 'null'
                        description: The event's type the event retention policy should
                          check
                      event_actor_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_actor_type:
                        type:
                        - string
                        - 'null'
                        description: The event's actor ID the event retention policy
                          should check
                      event_authenticated_by_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's authenticated by ID the event retention
                          policy should check
                      event_authenticated_by_type:
                        type:
                        - string
                        - 'null'
                        description: The event's authenticated by type the event retention
                          policy should check
                      event_object_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's object ID the event retention policy
                          should check
                      event_object_type:
                        type:
                        - integer
                        - 'null'
                        description: The event's object type the event retention policy
                          should check
                      event_place_id:
                        type:
                        - integer
                        - 'null'
                        description: The event's place ID the event retention policy
                          should check
                      event_success:
                        type:
                        - boolean
                        - 'null'
                        description: The event's success the event retention policy
                          should check
                      created_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the event retention policy was updated
                      organization_id:
                        type: integer
                        description: The organization ID of the event retention policy
                    required:
                    - id
                    - resource_type
                    - name
                    - enabled
                    - action
                    - retention
                    - priority
                    - event_type
                    - event_actor_id
                    - event_actor_type
                    - event_authenticated_by_id
                    - event_authenticated_by_type
                    - event_object_id
                    - event_object_type
                    - event_place_id
                    - event_success
                    - created_at
                    - updated_at
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: floor.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: floor.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Floor
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the floor
                      number:
                        type: integer
                        description: The number of the floor
                      created_at:
                        type: string
                        format: date-time
                        description: When the floor was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the floor was updated
                      place_id:
                        type: integer
                        description: The place ID of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - number
                    - created_at
                    - updated_at
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: floor.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: floor.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Floor
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the floor
                      number:
                        type: integer
                        description: The number of the floor
                      created_at:
                        type: string
                        format: date-time
                        description: When the floor was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the floor was updated
                      place_id:
                        type: integer
                        description: The place ID of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - number
                    - created_at
                    - updated_at
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: floor.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: floor.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Floor
                    properties:
                      id:
                        type: integer
                        description: The ID of the floor
                      resource_type:
                        type: string
                        description: The resource type of the floor
                        const: Floor
                      name:
                        type: string
                        description: The name of the floor
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the floor
                      number:
                        type: integer
                        description: The number of the floor
                      created_at:
                        type: string
                        format: date-time
                        description: When the floor was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the floor was updated
                      place_id:
                        type: integer
                        description: The place ID of the floor
                    required:
                    - id
                    - resource_type
                    - name
                    - description
                    - number
                    - created_at
                    - updated_at
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_elevator_stop.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_elevator_stop.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Elevator Stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the group elevator stop
                      resource_type:
                        type: string
                        description: The resource type of the group elevator stop
                        const: GroupElevatorStop
                      created_at:
                        type: string
                        format: date-time
                        description: When the group elevator stop was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group elevator stop was updated
                      elevator_id:
                        type: integer
                        description: The elevator ID of the group elevator stop
                      elevator_stop_id:
                        type: integer
                        description: The elevator_stop ID of the group elevator stop
                      floor_id:
                        type: integer
                        description: The floor ID of the group elevator stop
                      group_id:
                        type: integer
                        description: The group ID of the group elevator stop
                      place_id:
                        type: integer
                        description: The place ID of the group elevator stop
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - elevator_id
                    - elevator_stop_id
                    - floor_id
                    - group_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_elevator_stop.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_elevator_stop.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Elevator Stop
                    properties:
                      id:
                        type: integer
                        description: The ID of the group elevator stop
                      resource_type:
                        type: string
                        description: The resource type of the group elevator stop
                        const: GroupElevatorStop
                      created_at:
                        type: string
                        format: date-time
                        description: When the group elevator stop was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group elevator stop was updated
                      elevator_id:
                        type: integer
                        description: The elevator ID of the group elevator stop
                      elevator_stop_id:
                        type: integer
                        description: The elevator_stop ID of the group elevator stop
                      floor_id:
                        type: integer
                        description: The floor ID of the group elevator stop
                      group_id:
                        type: integer
                        description: The group ID of the group elevator stop
                      place_id:
                        type: integer
                        description: The place ID of the group elevator stop
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - elevator_id
                    - elevator_stop_id
                    - floor_id
                    - group_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_link.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_link.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_link.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_link.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_lock.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_lock.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the group lock
                      resource_type:
                        type: string
                        description: The resource type of the group lock
                        const: GroupLock
                      created_at:
                        type: string
                        format: date-time
                        description: When the group lock was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group lock was updated
                      group_id:
                        type: integer
                        description: The group ID of the group lock
                      lock_id:
                        type: integer
                        description: The lock ID of the group lock
                      place_id:
                        type: integer
                        description: The place ID of the group lock
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - lock_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_lock.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_lock.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Lock
                    properties:
                      id:
                        type: integer
                        description: The ID of the group lock
                      resource_type:
                        type: string
                        description: The resource type of the group lock
                        const: GroupLock
                      created_at:
                        type: string
                        format: date-time
                        description: When the group lock was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group lock was updated
                      group_id:
                        type: integer
                        description: The group ID of the group lock
                      lock_id:
                        type: integer
                        description: The lock ID of the group lock
                      place_id:
                        type: integer
                        description: The place ID of the group lock
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - lock_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_terminal.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_terminal.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the group terminal
                      resource_type:
                        type: string
                        description: The resource type of the group terminal
                        const: GroupTerminal
                      created_at:
                        type: string
                        format: date-time
                        description: When the group terminal was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group terminal was updated
                      group_id:
                        type: integer
                        description: The group ID of the group terminal
                      terminal_id:
                        type: integer
                        description: The terminal ID of the group terminal
                      place_id:
                        type: integer
                        description: The place ID of the group terminal
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - terminal_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_terminal.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_terminal.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the group terminal
                      resource_type:
                        type: string
                        description: The resource type of the group terminal
                        const: GroupTerminal
                      created_at:
                        type: string
                        format: date-time
                        description: When the group terminal was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group terminal was updated
                      group_id:
                        type: integer
                        description: The group ID of the group terminal
                      terminal_id:
                        type: integer
                        description: The terminal ID of the group terminal
                      place_id:
                        type: integer
                        description: The place ID of the group terminal
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - terminal_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_zone.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_zone.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the group zone
                      resource_type:
                        type: string
                        description: The resource type of the group zone
                        const: GroupZone
                      created_at:
                        type: string
                        format: date-time
                        description: When the group zone was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group zone was updated
                      group_id:
                        type: integer
                        description: The group ID of the group zone
                      zone_id:
                        type: integer
                        description: The zone ID of the group zone
                      place_id:
                        type: integer
                        description: The place ID of the group zone
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - zone_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: group_zone.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: group_zone.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Group Zone
                    properties:
                      id:
                        type: integer
                        description: The ID of the group zone
                      resource_type:
                        type: string
                        description: The resource type of the group zone
                        const: GroupZone
                      created_at:
                        type: string
                        format: date-time
                        description: When the group zone was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the group zone was updated
                      group_id:
                        type: integer
                        description: The group ID of the group zone
                      zone_id:
                        type: integer
                        description: The zone ID of the group zone
                      place_id:
                        type: integer
                        description: The place ID of the group zone
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - group_id
                    - zone_id
                    - place_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: guest.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: guest.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Guest
                    properties:
                      id:
                        type: integer
                        description: The ID of the guest
                      resource_type:
                        type: string
                        description: The resource type of the guest
                        const: Guest
                      name:
                        type: string
                        description: The name of the guest
                      email:
                        type:
                        - string
                        - 'null'
                        format: email
                        description: The email of the guest.
                      phone_number:
                        type:
                        - string
                        - 'null'
                        description: 'The phone number of the guest. Only US, Canadian
                          and Puerto Rican numbers in the format +11234567890 (E.164)
                          are accepted.

                          '
                      created_at:
                        type: string
                        format: date-time
                        description: When the guest was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the guest was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - email
                    - phone_number
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: guest.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: guest.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Guest
                    properties:
                      id:
                        type: integer
                        description: The ID of the guest
                      resource_type:
                        type: string
                        description: The resource type of the guest
                        const: Guest
                      name:
                        type: string
                        description: The name of the guest
                      email:
                        type:
                        - string
                        - 'null'
                        format: email
                        description: The email of the guest.
                      phone_number:
                        type:
                        - string
                        - 'null'
                        description: 'The phone number of the guest. Only US, Canadian
                          and Puerto Rican numbers in the format +11234567890 (E.164)
                          are accepted.

                          '
                      created_at:
                        type: string
                        format: date-time
                        description: When the guest was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the guest was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - email
                    - phone_number
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy_subscription.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy_subscription.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy_subscription.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy_subscription.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy_subscription.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy_subscription.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident_policy.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident_policy.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: incident.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: incident.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: integration.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: integration.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: integration.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: integration.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: integration.disable_due_to_error
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: integration.disable_due_to_error
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: integration.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: integration.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: integration.warn_due_to_error
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: integration.warn_due_to_error
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.answer_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.answer_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.assign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.assign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom_assignment.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom_assignment.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom_assignment.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom_assignment.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom_completed_call.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom_completed_call.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.deassign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.deassign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.dismiss_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.dismiss_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.finish_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.finish_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.initiate_streaming
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.initiate_streaming
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.miss_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.miss_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.timeout_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.timeout_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.trigger_call
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.trigger_call
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: intercom.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: intercom.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: invite.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: invite.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: kiosk.assign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: kiosk.assign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: kiosk.deassign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: kiosk.deassign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: kiosk_shortcut.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: kiosk_shortcut.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: kiosk_shortcut.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: kiosk_shortcut.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: kiosk.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: kiosk.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.cancel_lockdown
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.cancel_lockdown
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.closed
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.closed
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.first_to_arrive
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.first_to_arrive
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.forced_open
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.forced_open
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.held_open
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.held_open
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.last_to_leave
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.last_to_leave
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.lock_down
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.lock_down
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.locked
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.locked
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.opened
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.opened
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.scheduled_unlock_ended
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.scheduled_unlock_ended
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.scheduled_unlock_started
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.scheduled_unlock_started
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.tailgate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.tailgate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.unlock
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.unlock
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: lock.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: lock.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: login.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: login.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: login.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: login.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: login.promote
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: login.promote
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: login.resolve
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: login.resolve
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_app_share.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_app_share.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace App Share
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace app share
                      resource_type:
                        type: string
                        description: The resource type of the marketplace app share
                        const: MarketplaceAppShare
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace app share was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace app share was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace app
                          share
                      marketplace_installation_id:
                        type:
                        - integer
                        - 'null'
                        description: The marketplace_installation ID of the marketplace
                          app share
                      user_id:
                        type: integer
                        description: The user ID of the marketplace app share
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - marketplace_installation_id
                    - user_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_app_share.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_app_share.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace App Share
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace app share
                      resource_type:
                        type: string
                        description: The resource type of the marketplace app share
                        const: MarketplaceAppShare
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace app share was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace app share was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace app
                          share
                      marketplace_installation_id:
                        type:
                        - integer
                        - 'null'
                        description: The marketplace_installation ID of the marketplace
                          app share
                      user_id:
                        type: integer
                        description: The user ID of the marketplace app share
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - marketplace_installation_id
                    - user_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_installation.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_installation.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Installation
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace installation
                      resource_type:
                        type: string
                        description: The resource type of the marketplace installation
                        const: MarketplaceInstallation
                      enabled:
                        type: boolean
                        description: Whether the marketplace installation is enabled
                      status:
                        type: string
                        enum:
                        - complete
                        - incomplete
                        - uninstalling
                        description: The status of the marketplace installation
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace installation
                      organization_id:
                        type: integer
                        description: The organization ID of the marketplace installation
                    required:
                    - id
                    - resource_type
                    - enabled
                    - status
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_installation.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_installation.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Installation
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace installation
                      resource_type:
                        type: string
                        description: The resource type of the marketplace installation
                        const: MarketplaceInstallation
                      enabled:
                        type: boolean
                        description: Whether the marketplace installation is enabled
                      status:
                        type: string
                        enum:
                        - complete
                        - incomplete
                        - uninstalling
                        description: The status of the marketplace installation
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace installation
                      organization_id:
                        type: integer
                        description: The organization ID of the marketplace installation
                    required:
                    - id
                    - resource_type
                    - enabled
                    - status
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_installation.request_uninstall
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_installation.request_uninstall
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Installation
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace installation
                      resource_type:
                        type: string
                        description: The resource type of the marketplace installation
                        const: MarketplaceInstallation
                      enabled:
                        type: boolean
                        description: Whether the marketplace installation is enabled
                      status:
                        type: string
                        enum:
                        - complete
                        - incomplete
                        - uninstalling
                        description: The status of the marketplace installation
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace installation
                      organization_id:
                        type: integer
                        description: The organization ID of the marketplace installation
                    required:
                    - id
                    - resource_type
                    - enabled
                    - status
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_installation.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_installation.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Installation
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace installation
                      resource_type:
                        type: string
                        description: The resource type of the marketplace installation
                        const: MarketplaceInstallation
                      enabled:
                        type: boolean
                        description: Whether the marketplace installation is enabled
                      status:
                        type: string
                        enum:
                        - complete
                        - incomplete
                        - uninstalling
                        description: The status of the marketplace installation
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace installation was updated
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace installation
                      organization_id:
                        type: integer
                        description: The organization ID of the marketplace installation
                    required:
                    - id
                    - resource_type
                    - enabled
                    - status
                    - created_at
                    - updated_at
                    - marketplace_app_id
                    - organization_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_shortcut.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_shortcut.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Shortcut
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace shortcut
                      resource_type:
                        type: string
                        description: The resource type of the marketplace shortcut
                        const: MarketplaceShortcut
                      type:
                        type: string
                        enum:
                        - app
                        - kiosk
                        description: The type of the shortcut
                      name:
                        type: string
                        description: The name of the shortcut
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the shortcut
                      url:
                        type: string
                        format: uri
                        description: The URL for the shortcut
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was updated
                      marketplace_installation_id:
                        type: integer
                        description: The marketplace_installation ID of the marketplace
                          shortcut
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace shortcut
                    required:
                    - id
                    - resource_type
                    - type
                    - name
                    - url
                    - created_at
                    - updated_at
                    - marketplace_installation_id
                    - marketplace_app_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_shortcut.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_shortcut.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Shortcut
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace shortcut
                      resource_type:
                        type: string
                        description: The resource type of the marketplace shortcut
                        const: MarketplaceShortcut
                      type:
                        type: string
                        enum:
                        - app
                        - kiosk
                        description: The type of the shortcut
                      name:
                        type: string
                        description: The name of the shortcut
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the shortcut
                      url:
                        type: string
                        format: uri
                        description: The URL for the shortcut
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was updated
                      marketplace_installation_id:
                        type: integer
                        description: The marketplace_installation ID of the marketplace
                          shortcut
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace shortcut
                    required:
                    - id
                    - resource_type
                    - type
                    - name
                    - url
                    - created_at
                    - updated_at
                    - marketplace_installation_id
                    - marketplace_app_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: marketplace_shortcut.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: marketplace_shortcut.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Marketplace Shortcut
                    properties:
                      id:
                        type: integer
                        description: The ID of the marketplace shortcut
                      resource_type:
                        type: string
                        description: The resource type of the marketplace shortcut
                        const: MarketplaceShortcut
                      type:
                        type: string
                        enum:
                        - app
                        - kiosk
                        description: The type of the shortcut
                      name:
                        type: string
                        description: The name of the shortcut
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the shortcut
                      url:
                        type: string
                        format: uri
                        description: The URL for the shortcut
                      created_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the marketplace shortcut was updated
                      marketplace_installation_id:
                        type: integer
                        description: The marketplace_installation ID of the marketplace
                          shortcut
                      marketplace_app_id:
                        type: integer
                        description: The marketplace_app ID of the marketplace shortcut
                    required:
                    - id
                    - resource_type
                    - type
                    - name
                    - url
                    - created_at
                    - updated_at
                    - marketplace_installation_id
                    - marketplace_app_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: member.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: member.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: member.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: member.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: member.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: member.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: third_party_hf_uid_read_configuration.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: third_party_hf_uid_read_configuration.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: third_party_hf_uid_read_configuration.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: third_party_hf_uid_read_configuration.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mifare_classic_data_block_configuration.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mifare_classic_data_block_configuration.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mifare_classic_data_block_configuration.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mifare_classic_data_block_configuration.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mifare_desfire_extra_application_configuration.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mifare_desfire_extra_application_configuration.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mifare_desfire_master_key_configuration.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mifare_desfire_master_key_configuration.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mobile_cache_policy.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mobile_cache_policy.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Mobile Cache Policy
                    properties:
                      id:
                        type: integer
                        description: The ID of the mobile cache policy
                      resource_type:
                        type: string
                        description: The resource type of the mobile cache policy
                        const: MobileCachePolicy
                      minimum_cache_version:
                        type: number
                        minimum: 1
                        description: The minimum cache version of the mobile cache
                          policy.
                      certificate_validity_window:
                        type: number
                        enum:
                        - 36
                        - 48
                        - 72
                        - 96
                        - 120
                        - 144
                        description: The certificate validity window of the mobile
                          cache policy.
                      cache_usage_mode:
                        type: string
                        enum:
                        - offline
                        - always
                        - disabled
                        description: The cache usage mode of the mobile cache policy.
                      created_at:
                        type: string
                        format: date-time
                        description: When the mobile cache policy was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the mobile cache policy was updated
                    required:
                    - id
                    - resource_type
                    - minimum_cache_version
                    - certificate_validity_window
                    - cache_usage_mode
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: mobile_cache_policy.invalidate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: mobile_cache_policy.invalidate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.accept_transfer
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.accept_transfer
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.cancel_transfer
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.cancel_transfer
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.generate_next_certificate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.generate_next_certificate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.reject_transfer
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.reject_transfer
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.request_transfer
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.request_transfer
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.reset_scim_token
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.reset_scim_token
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.rotate_certificate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.rotate_certificate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: organization.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: organization.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.cancel_lockdown
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.cancel_lockdown
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place_card.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place_card.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place_card.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place_card.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.lock_down
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.lock_down
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.occupancy_rate_limit_reach
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.occupancy_rate_limit_reach
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: place.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: place.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.access
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.access
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.assign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.assign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.deassign
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.deassign
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.reboot
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.reboot
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.reset_tamper
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.reset_tamper
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.tamper
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.tamper
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: reader.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: reader.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: report.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: report.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Report
                    properties:
                      id:
                        type: integer
                        description: The ID of the report
                      resource_type:
                        type: string
                        description: The resource type of the report
                        const: Report
                      name:
                        type: string
                        description: The name of the report
                      status:
                        type: string
                        enum:
                        - waiting
                        - in_progress
                        - finished
                        - failed
                        description: The status of the report.
                      created_at:
                        type: string
                        format: date-time
                        description: When the report was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the report was updated
                      start_date:
                        type: string
                        description: |
                          The start date of the interval used to filter the data for the report.
                          This timestamp is expected to be in date format, YYYY-MM-DD.
                          If provided, it defines the beginning of the reporting period.
                          The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                          Current minimum interval days: no limit
                          Current maximum interval days: 180
                        format: date
                        example: '2024-02-29'
                      end_date:
                        type: string
                        description: |
                          The end date of the interval used to filter the data for the report.
                          This timestamp is expected to be in date format, YYYY-MM-DD.
                          If provided, it defines the end of the reporting period.
                          The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                          Current minimum interval days: no limit
                          Current maximum interval days: 180
                        format: date
                        example: '2024-03-07'
                      time_zone:
                        type:
                        - string
                        - 'null'
                        description: |
                          The time zone used for interpreting the start and end dates of the report.
                          This should be provided as a valid time zone identifier (e.g., "America/New_York").
                          If not provided, it defaults to the organization's time zone.
                        format: time-zone
                        example: America/New_York
                      organization_id:
                        type: integer
                        description: The organization ID of the report
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the report
                      reporter_id:
                        type: integer
                        description: The reporter ID of the report
                    required:
                    - id
                    - resource_type
                    - name
                    - status
                    - created_at
                    - updated_at
                    - start_date
                    - end_date
                    - time_zone
                    - organization_id
                    - place_id
                    - reporter_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: report.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: report.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Report
                    properties:
                      id:
                        type: integer
                        description: The ID of the report
                      resource_type:
                        type: string
                        description: The resource type of the report
                        const: Report
                      name:
                        type: string
                        description: The name of the report
                      status:
                        type: string
                        enum:
                        - waiting
                        - in_progress
                        - finished
                        - failed
                        description: The status of the report.
                      created_at:
                        type: string
                        format: date-time
                        description: When the report was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the report was updated
                      start_date:
                        type: string
                        description: |
                          The start date of the interval used to filter the data for the report.
                          This timestamp is expected to be in date format, YYYY-MM-DD.
                          If provided, it defines the beginning of the reporting period.
                          The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                          Current minimum interval days: no limit
                          Current maximum interval days: 180
                        format: date
                        example: '2024-02-29'
                      end_date:
                        type: string
                        description: |
                          The end date of the interval used to filter the data for the report.
                          This timestamp is expected to be in date format, YYYY-MM-DD.
                          If provided, it defines the end of the reporting period.
                          The interval cannot be shorter than the minimum and cannot be longer than the maximum, as defined by the reporter.
                          Current minimum interval days: no limit
                          Current maximum interval days: 180
                        format: date
                        example: '2024-03-07'
                      time_zone:
                        type:
                        - string
                        - 'null'
                        description: |
                          The time zone used for interpreting the start and end dates of the report.
                          This should be provided as a valid time zone identifier (e.g., "America/New_York").
                          If not provided, it defaults to the organization's time zone.
                        format: time-zone
                        example: America/New_York
                      organization_id:
                        type: integer
                        description: The organization ID of the report
                      place_id:
                        type:
                        - integer
                        - 'null'
                        description: The place ID of the report
                      reporter_id:
                        type: integer
                        description: The reporter ID of the report
                    required:
                    - id
                    - resource_type
                    - name
                    - status
                    - created_at
                    - updated_at
                    - start_date
                    - end_date
                    - time_zone
                    - organization_id
                    - place_id
                    - reporter_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: report.download
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: report.download
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: report.finish
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: report.finish
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: role_assignment.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: role_assignment.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: role_assignment.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: role_assignment.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: role_assignment.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: role_assignment.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: schedule.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: schedule.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: schedule.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: schedule.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: schedule.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: schedule.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: scheduled_report.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: scheduled_report.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: scheduled_report.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: scheduled_report.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: scheduled_report.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: scheduled_report.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: share.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: share.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: share.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: share.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: share.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: share.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: subscription.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: subscription.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: team.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: team.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Team
                    properties:
                      id:
                        type: integer
                        description: The ID of the team
                      resource_type:
                        type: string
                        description: The resource type of the team
                        const: Team
                      name:
                        type: string
                        description: The name of the team
                      created_at:
                        type: string
                        format: date-time
                        description: When the team was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the team was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: team.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: team.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Team
                    properties:
                      id:
                        type: integer
                        description: The ID of the team
                      resource_type:
                        type: string
                        description: The resource type of the team
                        const: Team
                      name:
                        type: string
                        description: The name of the team
                      created_at:
                        type: string
                        format: date-time
                        description: When the team was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the team was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: team_membership.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: team_membership.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Team Membership
                    properties:
                      id:
                        type: integer
                        description: The ID of the team membership
                      resource_type:
                        type: string
                        description: The resource type of the team membership
                        const: TeamMembership
                      created_at:
                        type: string
                        format: date-time
                        description: When the team membership was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the team membership was updated
                      team_id:
                        type: integer
                        description: The team ID of the team membership
                      member_type:
                        type: string
                        enum:
                        - User
                        - Guest
                        description: The member type of the team membership
                      member_id:
                        type: integer
                        description: The member ID of the team membership
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - team_id
                    - member_type
                    - member_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: team_membership.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: team_membership.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Team Membership
                    properties:
                      id:
                        type: integer
                        description: The ID of the team membership
                      resource_type:
                        type: string
                        description: The resource type of the team membership
                        const: TeamMembership
                      created_at:
                        type: string
                        format: date-time
                        description: When the team membership was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the team membership was updated
                      team_id:
                        type: integer
                        description: The team ID of the team membership
                      member_type:
                        type: string
                        enum:
                        - User
                        - Guest
                        description: The member type of the team membership
                      member_id:
                        type: integer
                        description: The member ID of the team membership
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - team_id
                    - member_type
                    - member_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: team.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: team.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Team
                    properties:
                      id:
                        type: integer
                        description: The ID of the team
                      resource_type:
                        type: string
                        description: The resource type of the team
                        const: Team
                      name:
                        type: string
                        description: The name of the team
                      created_at:
                        type: string
                        format: date-time
                        description: When the team was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the team was updated
                    required:
                    - id
                    - resource_type
                    - name
                    - created_at
                    - updated_at
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: terminal.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: terminal.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      resource_type:
                        type: string
                        description: The resource type of the terminal
                        const: Terminal
                      created_at:
                        type: string
                        format: date-time
                        description: When the terminal was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the terminal was updated
                      name:
                        type: string
                        description: The name of the terminal
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the terminal
                      place_id:
                        type: integer
                        description: The place ID of the terminal
                      marketplace_installation_id:
                        type:
                        - integer
                        - 'null'
                        description: The marketplace_installation ID of the terminal
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - description
                    - place_id
                    - marketplace_installation_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: terminal.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: terminal.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      resource_type:
                        type: string
                        description: The resource type of the terminal
                        const: Terminal
                      created_at:
                        type: string
                        format: date-time
                        description: When the terminal was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the terminal was updated
                      name:
                        type: string
                        description: The name of the terminal
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the terminal
                      place_id:
                        type: integer
                        description: The place ID of the terminal
                      marketplace_installation_id:
                        type:
                        - integer
                        - 'null'
                        description: The marketplace_installation ID of the terminal
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - description
                    - place_id
                    - marketplace_installation_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: terminal.trigger
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: terminal.trigger
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: terminal.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: terminal.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    title: Terminal
                    properties:
                      id:
                        type: integer
                        description: The ID of the terminal
                      resource_type:
                        type: string
                        description: The resource type of the terminal
                        const: Terminal
                      created_at:
                        type: string
                        format: date-time
                        description: When the terminal was created
                      updated_at:
                        type: string
                        format: date-time
                        description: When the terminal was updated
                      name:
                        type: string
                        description: The name of the terminal
                      description:
                        type:
                        - string
                        - 'null'
                        description: The description of the terminal
                      place_id:
                        type: integer
                        description: The place ID of the terminal
                      marketplace_installation_id:
                        type:
                        - integer
                        - 'null'
                        description: The marketplace_installation ID of the terminal
                    required:
                    - id
                    - resource_type
                    - created_at
                    - updated_at
                    - name
                    - description
                    - place_id
                    - marketplace_installation_id
                    additionalProperties: false
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - object
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.activate_2fa
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.activate_2fa
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.create_backup_codes
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.create_backup_codes
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.create_password
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.create_password
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.deactivate_2fa
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.deactivate_2fa
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.show_confirmation
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.show_confirmation
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.update_password
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.update_password
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: user.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: user.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: visualization_page_reporter.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: visualization_page_reporter.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: visualization_page_reporter.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: visualization_page_reporter.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: visualization_page_share.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: visualization_page_share.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: visualization_page_share.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: visualization_page_share.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.battery_warning
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.battery_warning
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.closed
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.closed
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock_connection.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock_connection.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock_connection.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock_connection.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock_connection.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock_connection.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.disenroll
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.disenroll
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.locked
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.locked
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.opened
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.opened
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.tampered
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.tampered
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.unlocked
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.unlocked
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: wireless_lock.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: wireless_lock.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.create
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.create
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.destroy
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.destroy
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.external_mode_override
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.external_mode_override
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.override
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.override
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.policy_activate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.policy_activate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.policy_override
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.policy_override
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.policy_transition
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.policy_transition
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.policy_violate
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.policy_violate
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.reset
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.reset
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
              - type: object
                title: zone.update
                properties:
                  uuid:
                    type: string
                    format: uuid
                    description: The UUID of the event
                  type:
                    type: string
                    const: zone.update
                  actor_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - GroupLink
                    - MarketplaceInstallation
                    - User
                    - Guest
                    description: The type of the actor of the event
                  actor_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the actor of the event
                  actor_name:
                    type:
                    - string
                    - 'null'
                    description: The name of the actor of the event
                  actor_email:
                    type:
                    - string
                    - 'null'
                    description: The email of the actor of the event
                  authenticated_by_type:
                    type:
                    - string
                    - 'null'
                    enum:
                    -
                    - ApplePassInstance
                    - Card
                    - GroupLink
                    - Login
                    - OauthAccessToken
                    - AccessKey
                    description: The type of the credential of the event
                  authenticated_by_id:
                    type:
                    - integer
                    - 'null'
                    description: The ID of the credential
                  authorized_by_type:
                    type:
                    - string
                    - 'null'
                  authorized_by_id:
                    type:
                    - integer
                    - 'null'
                  authorized_by_role_id:
                    type:
                    - string
                    - 'null'
                  object_type:
                    type: string
                    description: The type of the object of the event
                  object_id:
                    type: integer
                    description: The ID of the object of the event
                  object_name:
                    type: string
                    description: The name of the object of the event
                  object:
                    type: object
                    description: The object of the event
                  action:
                    type: string
                    description: The action of the event
                  created_at:
                    type: string
                  message:
                    type:
                    - string
                    - 'null'
                    description: The string representation of the event
                  success:
                    type: boolean
                    description: Whether the action was successful
                  code:
                    type:
                    - string
                    - 'null'
                    description: The code of the event
                  sequence:
                    type: string
                    description: The sequence used to group related events part of
                      the same action
                  organization_id:
                    type: integer
                    description: The organization ID of the event
                  place_id:
                    type:
                    - integer
                    - 'null'
                    description: The place ID of the event
                  error_code:
                    type:
                    - string
                    - 'null'
                    description: The error code of the event
                  error_message:
                    type:
                    - string
                    - 'null'
                    description: The error message of the event
                  references:
                    deprecated: true
                    type: array
                    items:
                      type: object
                required:
                - uuid
                - type
                - actor_type
                - actor_id
                - actor_name
                - actor_email
                - authenticated_by_type
                - authenticated_by_id
                - authorized_by_type
                - authorized_by_id
                - authorized_by_role_id
                - object_type
                - object_id
                - object_name
                - action
                - created_at
                - message
                - success
                - code
                - sequence
                - organization_id
                - place_id
                - error_code
                - error_message
                - references
                additionalProperties: false
      responses:
        '204':
          description: No Content
